Build fails when using BuildRoot
Stefan Dirsch
sndirsch at suse.de
Tue Jun 28 02:48:49 PDT 2005
On Tue, Jun 28, 2005 at 10:55:18AM +0200, Stefan Dirsch wrote:
> Xaw build fails when using BuildRoot (current CVS).
>
> make[3]: Entering directory `/usr/src/packages/BUILD/xorg-modular/lib/Xaw'
> cd /usr/lib && rm -f libXaw.so && ln -s libXaw8.so libXaw.so
> ln: creating symbolic link `libXaw.so' to `libXaw8.so': Permission denied
> make[3]: *** [install-exec-hook] Error 1
>
> The symlink should be made in $RPM_BUILD_ROOT/usr/lib instead of
> /usr/lib. Since I'm still not very familiar with autotool I currently
> cannot provide a patch. Sorry for this. Probably lib/Xaw/Makefile.am
> needs to be changed accordingly ...
At least the attached patch works for me ...
Regards,
Stefan
Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH
Tel: 0911-740 53 0 Maxfeldstraße 5
FAX: 0911-740 53 479 D-90409 Nürnberg
http://www.suse.de Germany
------------------------------------------------------
-------------- next part --------------
--- lib/Xaw/Makefile.am.orig 2005-06-28 11:29:01.000000000 +0200
+++ lib/Xaw/Makefile.am 2005-06-28 11:28:34.000000000 +0200
@@ -30,4 +30,4 @@
EXTRA_DIST = xaw6.pc.in xaw7.pc.in xaw8.pc.in autogen.sh xaw.m4
install-exec-hook:
- cd $(libdir) && rm -f libXaw.so && ln -s $(DEFAULT_LIB) libXaw.so
+ cd $(DESTDIR)/$(libdir) && rm -f libXaw.so && ln -s $(DEFAULT_LIB) libXaw.so
More information about the xorg-modular
mailing list