logo       

GNU cp truly "not found" on Mac OS X?: msg#00059

sysutils.backup.rsnapshot.general

Subject: GNU cp truly "not found" on Mac OS X?

Hello,

I recently made rsnapshot 1.2.9 from source on laptop running Mac OS X 10.4.6 (PowerPC). On this laptop, I have also installed the GNU coreutils version 5.92 via Darwin Ports and the GNU cp command is most definitely in my PATH as is reflected by this statement on the command line:

$ which gcp
/opt/local/bin/gcp

Running configure, the configure script is still picking up on Apple's modified BSD cp (located in /bin) as is reflected in the output from ./configure ...

$ ./configure
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking for perl... /opt/local/bin/perl
checking for rsync... /usr/bin/rsync
checking for cp... /bin/cp
checking for rm... /bin/rm
checking for ssh... /opt/local/bin/ssh
checking for logger... /usr/bin/logger
checking for du... /usr/bin/du
configure: creating ./config.status
config.status: creating Makefile
config.status: creating rsnapshot
config.status: creating rsnapshot-diff
config.status: creating rsnapshot.conf.default
config.status: creating t/support/etc/configtest.conf
config.status: creating t/support/etc/rsync.conf
config.status: creating t/support/etc/gnu_cp.conf
config.status: creating t/support/etc/relative_delete_bugfix.conf
config.status: creating t/configtest.t
config.status: creating t/rsync.t
config.status: creating t/gnu_cp.t
config.status: creating t/relative_delete_bugfix.t

Now type  "make test"    to run the regression test suite.
Then type "make install" to install the program.

After rsnapshot is installed, don't forget to copy
/usr/local/etc/rsnapshot.conf.default to /usr/local/etc/rsnapshot.conf

When I run the recursion test (make test), the complaint is reflected asserting "GNU cp not found" as in ...

$ make test
/opt/local/bin/perl -MTest::Harness -e 'runtests(glob "t/*.t")';
t/configtest................Can't open perl script "../rsnapshot": No such file or directory
t/configtest................ok                                              
t/gnu_cp....................cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
t/gnu_cp....................ok                                              
        1/1 skipped: GNU cp not found
t/relative_delete_bugfix....ok                                              
t/rsync.....................ok                                              
All tests successful, 1 subtest skipped.
Files=4, Tests=5,  2 wallclock secs ( 0.58 cusr +  0.36 csys =  0.94 CPU)

This concerns me. I am confused if I should, on a Mac OS X system, really use Apple's modified version of BSD /bin/cp (as well as Apple's instances of du, rm, rsync) or if I should substitute them (by modifying the rsnapshot configure and make scripts) to explicitly find and use the GNU installed versions of these command-line tools? I would like rsnapshot to be capable of dealing with resources on the Apple HFS+ file system which means there is no joy in the world trying to figure out the idiosyncrasies of such ( e.g., extended attributes, BSD flags, ACLs, etc. -- Apple has apparently fixed rsync with extended attributes as of a March 2006 Security Update), however I am thinking also of putting some of my data on a disk volume with UFS that mounts to the machine running Mac OS X and rsnapshot.

Are there any rsnapshot users who have built from source rsnapshot 1.2.9 on Mac OS X systems with GNU coreutils also installed on such a system and if so how should a person interpret the regression test's assertion of " GNU cp not found"?

Much thanks and best regards,

Sergio


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise