On Tue, Jan 07, 2020 at 05:58:46PM +0100, Arkadiusz Miśkiewicz via pld-devel-en wrote: > On 07/01/2020 17:06, Jakub Bogusz wrote: > > On Tue, Jan 07, 2020 at 01:36:44PM +0100, arekm wrote: > >> commit 2bb4da0ffecbbc08e6e25336b3e1e012b7cd61a5 > >> Author: Arkadiusz Miśkiewicz <ar...@maven.pl> > >> Date: Tue Jan 7 13:36:34 2020 +0100 > >> > >> - shadow puts everything into /bin and /sbin - that's ok but provide > >> symlinks for old (pwdutils) locations > > [...] > >> +# compatibility with old locations (and pwdutils) > >> +install -d $RPM_BUILD_ROOT%{_bindir} > >> +for f in chage chfn chsh expiry faillog gpasswd newgrp newgidmap passwd > >> newuidmap sg; do > >> + ln -s /bin/${f} $RPM_BUILD_ROOT%{_bindir}/${f} > >> +done > >> +install -d $RPM_BUILD_ROOT%{_sbindir} > >> +for f in chgpasswd chpasswd groupadd groupdel groupmems groupmod grpck > >> grpconv grpunconv logoutd newusers pwck pwconv pwunconv useradd userdel > >> usermod vigr vipw; do > >> + ln -s /sbin/${f} $RPM_BUILD_ROOT%{_sbindir}/${f} > >> +done > >> + [...] > >> +%attr(755,root,root) /sbin/groupmems > >> %attr(755,root,root) %{_sbindir}/groupmems > >> +%attr(755,root,root) /sbin/groupmod > >> %attr(755,root,root) %{_sbindir}/groupmod > > [...] > > > > Uhhh, please, no. > > It's ugly but I don't see any other solution that would work. > > > Either go traditional way and distribute binaries over directories (like > > in coreutils), > > To goal is not to diverge from upstream.
Upstream installs everything to prefix given to configure. Or /bin + /sbin, if it's told so to %configure in spec. > or maybe it's time to go merged-/usr distro-wide? > > > > Are there still any profits from using local / with network or host shared > > /usr? > > Does it matter for this case? Debian moved to merged /usr too, in such case both paths work regardless of actual install paths. -- Jakub Bogusz http://qboosh.pl/ _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en