autotool question: script permissions

Till Straumann strauman at slac.stanford.edu
Tue Jul 15 08:28:07 UTC 2003


Ralf Corsepius wrote:

>On Fri, 2003-07-11 at 19:50, Till Straumann wrote:
>  
>
>>Hi.
>>
>>I notice that the 'install-if-change' script (in tools/build)
>>which is generated during the build process gets installed without
>>the execution permission bits set. (644 instead of 755)
>>  - what needs to be changed to correct that?
>>    
>>
>... still investigating ...
>
>Till, could you please perform this test with the tarball below:
>
>tar xzvf automake-installtest-0.1.tar.gz
>cd automake-installtest-0.1
>./configure
>make DESTDIR=/tmp install
>find /tmp/usr/local -type f -exec ls -l {} \;
>
>I am interested in the output of the find.
>

On my (mandrake 9.1) linux-ppc tibook, I get:

-rwxr-xr-x    1 till     till            0 Jul 15 00:58 
/tmp/usr/local/bin/myscript
-rw-r--r--    1 till     till            0 Jul 15 00:58 
/tmp/usr/local/share/mydata

On my redhat-7.3 machine  (linux-i386) at work I get:
-rw-r--r--    1 till     users           0 Jul 15 01:00 
/tmp/usr/local/bin/myscript
-rw-r--r--    1 till     users           0 Jul 14 23:46 
/tmp/usr/local/share/mydata

On a solaris-8 machine at work:
-rwxr-xr-x   1 strauman qa             0 Jul 15 01:08 
/tmp/usr/local/bin/myscript
-rw-r--r--   1 strauman qa             0 Jul 15 01:08 
/tmp/usr/local/share/mydata

Another linux-i386 machine:
-rwxr-xr-x    1 strauman qa              0 Jul 15 01:13 
/tmp/usr/local/bin/myscript
-rw-r--r--    1 strauman qa              0 Jul 15 01:13 
/tmp/usr/local/share/mydata

A DEC Tru64 unix (alpha) box:
-rwxr-xr-x   1 strauman system         0 Jul 15 01:16 
/tmp/usr/local/bin/myscript
-rw-r--r--   1 strauman system         0 Jul 15 01:16 
/tmp/usr/local/share/mydata

It seems that the second box (which is my main development station)'  
"install"
program caused the problem. If I replace it with a different version, I 
also
get:

-rwxr-xr-x    1 till     users           0 Jul 15 01:19 
/tmp/usr/local/bin/myscript
-rw-r--r--    1 till     users           0 Jul 15 01:19 
/tmp/usr/local/share/mydata

I 'string'ed the problematic version and found

@(#) OpenAFS stable 1.0.4 built  2001-05-23

(we use AFS a lot here) - apparently 'install' distributed with OpenAFS 
1.0.4
is to blame - it got picked up from '/usr/local/bin'.

Sorry for the hassle - was just not easy to track down.

Thanks for your help

-- T.

>
>Ralf
>  
>





More information about the users mailing list