Build fails when using BuildRoot
Owen Taylor
otaylor at redhat.com
Tue Jun 28 04:14:42 PDT 2005
On Tue, 2005-06-28 at 11:48 +0200, Stefan Dirsch wrote:
> 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 ...
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
You actually want $(DESTDIR)$(libdir) ... $(libdir) already starts with
a '/'
Regards,
Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.x.org/archives/xorg-modular/attachments/20050628/d74803b3/attachment.pgp
More information about the xorg-modular
mailing list