[Gtk-sharp-list] Makefile.in patch

Dag Wieers dag@wieers.com
Tue, 17 Jun 2003 11:33:14 +0200 (CEST)


On 17 Jun 2003, Duncan Mak wrote:

> I know we just realized Gtk-sharp 0.10, but as I was trying to build
> packages here, I ran into the problem where every instead of
> $(DESTDIR)@prefix@ in the Makefile.in will warp into '/usr/lib' instead
> of $(DESTDIR)/usr/lib. I was having trouble in the install step because
> of this.
> 
> This patch replaces all instance of $(DESTDIR)@prefix@ with
> $(DESTDIR)$(prefix) and it fixes my problem. I tested it in my normal,
> non-packaging gtk-sharp directory, and it seems to be fine.
> 
> Is this patch ridiculously wrong? I know very little about how these
> things work... should I commit it?

It is correct. After configure I used this to fix it for me:

	%{__perl} -pi.orig -e '
	                s|\$\(DESTDIR\)/usr/bin|\$(DESTDIR)\$(bindir)|;
	                s|\$\(DESTDIR\)/usr/lib|\$(DESTDIR)\$(libdir)|;
	        ' Makefile */Makefile gconf/*/Makefile

If you could fix it, I can get rid of it in my SPEC file ;)

Thanks,
--   dag wieers,  dag@wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]