# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../coreutils/install.patch # Copyright (C) 2010 - 2012 The OpenSDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- SDE-COPYRIGHT-NOTE-END --- Use install instead of ./ginstall for installing at native build stages When not cross-compiling the just-built ./ginstall is called for installing the binaries. Because this circumvents the OpenSDE install wrapper, defined install wrapper filters will not have any effect in "native" build stages. The coreutils package is heavily relying on install wrapper filters for changing the install location of certain binaries from '/usr/bin' to '/bin' to be FHS compliant. Without this fix those binaries will get installed at both locations, because on cross-stage the filter is working properly. --- coreutils-8.20/Makefile.in.orig 2012-10-23 18:26:32.000000000 +0200 +++ coreutils-8.20/Makefile.in 2012-12-23 14:20:47.680155027 +0100 @@ -3313,7 +3313,7 @@ pm = progs-makefile pr = progs-readme -@CROSS_COMPILING_FALSE@cu_install_program = src/ginstall +@CROSS_COMPILING_FALSE@cu_install_program = install # Use the just-built 'ginstall', when not cross-compiling. @CROSS_COMPILING_TRUE@cu_install_program = @INSTALL_PROGRAM@