From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [RFC] Improve installation of userspace shared libraries (was Re: [RFC] Userspace top-level Makefile) From: Stephen Smalley To: Guido Trentalancia Cc: Joshua Brindle , Eric Paris , Eric Paris , SELinux Mail List In-Reply-To: <1315858620.2223.13.camel@vortex> References: <1315587716.2170.16.camel@vortex> <1315588656.2170.26.camel@vortex> <1315590383.2170.32.camel@vortex> <1315591143.2170.36.camel@vortex> <1315603187.2482.22.camel@vortex> <4E6A8707.9080602@manicmethod.com> <1315607702.2482.28.camel@vortex> <4E6A9C4D.6010303@redhat.com> <1315609967.2482.39.camel@vortex> <4E6A9E26.9080806@redhat.com> <4E6D429A.7060403@manicmethod.com> <1315793570.2209.22.camel@vortex> <4E6DFDE5.2070709@manicmethod.com> <1315858620.2223.13.camel@vortex> Content-Type: text/plain; charset="UTF-8" Date: Tue, 13 Sep 2011 17:00:00 -0400 Message-ID: <1315947600.12522.103.camel@moss-pluto> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov 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. -- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.