GNOME Bugzilla – Bug 722479
cp -u is not portable
Last modified: 2014-02-14 16:46:15 UTC
cp -u is used in gtk-doc.make, but the -u option is not specified in POSIX standard. I see the following messages when running on FreeBSD. cp: illegal option -- u usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file ... target_directory
If you're going to try to do a patch to fix it, note that 'test -nt' is also non-POSIX....
It would be awesome if you can try a patch, I don't have a bsd system around ...
ryan, where do you see test -nt, also according to http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html it should be supported. Please reopen as needed. commit 87696c458ccc85ecbffe01a9e7b7124d0f02ac6e Author: Stefan Sauer <ensonic@users.sf.net> Date: Fri Feb 14 09:40:32 2014 +0100 make: avoid non posix options in the makefiles Use cp -pf instead of cp -pu. Use cp -pR instead of cp -pr. Fixes #722479
'test -nt' was just my first idea of how to solve this. The spec says: """ Some additional primaries newly invented or from the KornShell appeared in an early proposal as part of the conditional command ([[]]): s1 > s2, s1 < s2, str = pattern, str != pattern, f1 -nt f2, f1 -ot f2, and f1 -ef f2. They were not carried forward into the test utility when the conditional command was removed from the shell because they have not been included in the test utility built into historical implementations of the sh utility. """ ie: -nt was proposed and considered, but ultimately rejected.
Sorry I misunderstood, but thanks for the heads up on this.