GNOME Bugzilla – Bug 722527
cp -d is not portable
Last modified: 2014-02-09 12:19:35 UTC
cp -d is used in doc/reference/doc-build.am, but the -d option is not specified in POSIX standard. This cause error when installing rygel on FreeBSD. cp -d -R ./gtkdoc/html/* /home/lantw44/gnome/devinstall/_jhbuild/root-rygel/home/lantw44/gnome/devinstall/share/gtk-doc/html/librygel-core cp: illegal option -- d 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 gmake[6]: *** [install-data-hook] Error 64 gmake[6]: Leaving directory `/usr/home/lantw44/gnome/source/rygel/doc/reference/librygel-core'
Created attachment 266649 [details] [review] build: Replace non-portable cp -d
--no-dereference is -P. Should -p be changed to -P?
I used what autotools uses...
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cp.html If the -P option was specified, cp shall copy any symbolic link specified as a source_file operand and any symbolic links encountered during traversal of a file hierarchy, and shall not follow any symbolic links. I think -d is similar to -P, not -p.
Created attachment 268572 [details] [review] build: Replace non-portable cp -d Signed-off-by: Jens Georg <mail@jensge.org>
Attachment 268572 [details] pushed as f0ae3f0 - build: Replace non-portable cp -d