Re: [RFC] Improve installation of userspace shared libraries (was Re: [RFC] Userspace top-level Makefile)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2011-09-13 at 17:00 -0400, Stephen Smalley wrote:
> On Mon, 2011-09-12 at 22:17 +0200, Guido Trentalancia wrote:
> > +++ selinux-12092011-test/libsepol/src/Makefile	2011-09-12 21:53:56.414127000 +0200
> > @@ -43,7 +43,7 @@ install: all
> >  	install -m 755 $(LIBSO) $(SHLIBDIR)
> >  	test -d $(LIBDIR)/pkgconfig || install -m 755 -d $(LIBDIR)/pkgconfig
> >  	install -m 644 $(LIBPC) $(LIBDIR)/pkgconfig
> > -	cd $(LIBDIR) && ln -sf ../../`basename $(SHLIBDIR)`/$(LIBSO) $(TARGET)
> > +	cd $(SHLIBDIR) && ln -sf $(LIBSO) $(TARGET)
> >  
> >  relabel:
> >  	/sbin/restorecon $(SHLIBDIR)/$(LIBSO)
> > 
> > Is there anything else that looks odd in it ? Partial description could
> > be something like this:
> > 
> > Simply use the filename as the target instead of the full path to the
> > shared libraries when creating the links in SHLIBDIR during
> > installation.
> 
> The symlink and the shared object aren't always in the same directory,
> e.g. in Fedora the shared object may live in /lib or /lib64 while the
> symlink may live in /usr/lib or /usr/lib64.

The spec file would create the second one I suppose.

Regards,

Guido



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux