bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "make check-TEST" lossage on FreeBSD make (+ untested patch)


From: Alexandre Duret-Lutz
Subject: Re: "make check-TEST" lossage on FreeBSD make (+ untested patch)
Date: Fri, 14 May 2004 09:20:44 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

My feeling is that `cp -pR' is not able to copy read-only trees
on your system.  After it has copied the top-level directory,
and cannot create its subdirectories because the top-level
directory is read-only.

Could you try the following commands?

~/tmp % mkdir empty
~/tmp % cd empty
~/tmp/empty % mkdir -p dir1/dir2
~/tmp/empty % touch dir1/x dir1/dir2/x
~/tmp/empty % chmod -R a-w dir1
~/tmp/empty % ls -laR dir1
dir1:
total 12
dr-xr-xr-x    3 adl      adl          4096 May 14 09:11 ./
drwxr-xr-x    3 adl      adl          4096 May 14 09:11 ../
dr-xr-xr-x    2 adl      adl          4096 May 14 09:11 dir2/
-r--r--r--    1 adl      adl             0 May 14 09:11 x

dir1/dir2:
total 8
dr-xr-xr-x    2 adl      adl          4096 May 14 09:11 ./
dr-xr-xr-x    3 adl      adl          4096 May 14 09:11 ../
-r--r--r--    1 adl      adl             0 May 14 09:11 x
~/tmp/empty % mkdir dest
~/tmp/empty % cp -pR dir1 dest
~/tmp/empty % ls -laR dest
dest:
total 12
drwxr-xr-x    3 adl      adl          4096 May 14 09:12 ./
drwxr-xr-x    4 adl      adl          4096 May 14 09:12 ../
dr-xr-xr-x    3 adl      adl          4096 May 14 09:11 dir1/

dest/dir1:
total 12
dr-xr-xr-x    3 adl      adl          4096 May 14 09:11 ./
drwxr-xr-x    3 adl      adl          4096 May 14 09:12 ../
dr-xr-xr-x    2 adl      adl          4096 May 14 09:11 dir2/
-r--r--r--    1 adl      adl             0 May 14 09:11 x

dest/dir1/dir2:
total 8
dr-xr-xr-x    2 adl      adl          4096 May 14 09:11 ./
dr-xr-xr-x    3 adl      adl          4096 May 14 09:11 ../
-r--r--r--    1 adl      adl             0 May 14 09:11 x


If `cp -pR' didn't work, we have found the problem.  

Otherwise please apply the following patch and rerun this test case,
so we can see exactly which command complains.

--- lib/am/distdir.am   18 Apr 2004 18:36:52 -0000      1.52.2.4
+++ lib/am/distdir.am   14 May 2004 07:16:25 -0000
@@ -59,6 +59,7 @@
 ##
        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+       set -x; \
        list='$(DISTFILES)'; for file in $$list; do \
 ##
 ## Yet another hack to support SUN make.
-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]