Subject: toolchain/34489: makesrctars removes src tarball executable bit move-if-change
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <kirk@ba23.org>
List: netbsd-bugs
Date: 09/07/2006 14:10:00
>Number: 34489
>Category: toolchain
>Synopsis: makesrctars removes src tarball executable bit move-if-change
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 07 14:10:00 +0000 2006
>Originator: Kirk Russell
>Release: NetBSD 4.0_BETA 200609020000Z
>Organization:
Bridlewood Software Testers Guild http://www.ba23.org/
>Environment:
System: NetBSD greyhawk 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
It appears that I cannot use the NetBSD 4.0_BETA source archives to
build. I get an "Permission denied" error:
nbgmake[1]: execvp: /bstg/netbsd-4/usr/src/tools/gcc/../../gnu/dist/gcc4/libcpp/../move-if-change: Permission denied
I noticed that the perms in the archives are different than in cvs.
I assume this is the root cause.
http://mail-index.netbsd.org/tech-toolchain/2006/08/15/0004.html
http://mail-index.netbsd.org/current-users/2006/09/04/0020.html
http://mail-index.netbsd.org/current-users/2006/09/07/0003.html
http://mail-index.netbsd.org/current-users/2006/09/07/0004.html
>How-To-Repeat:
Build the source sets and check the permission of the move-if-change script.
- from cvs
$ ls -rlt usr/src/gnu/dist/*/move-if-change
-rwx------ 1 kirk wsrc 880 Sep 4 18:09 usr/src/gnu/dist/binutils/move-if-change*
-rwx------ 1 kirk wsrc 880 Sep 4 18:09 usr/src/gnu/dist/gcc/move-if-change*
-rwx------ 1 kirk wsrc 884 Sep 4 18:09 usr/src/gnu/dist/gcc4/move-if-change*
-rwx------ 1 kirk wsrc 880 Sep 4 18:09 usr/src/gnu/dist/gdb/move-if-change*
-rwx------ 1 kirk wsrc 384 Sep 4 18:09 usr/src/gnu/dist/gdb6/move-if-change*
- from the archive
$ wget -q ftp://ftp.netbsd.org/pub/NetBSD-daily/netbsd-4/200609020000Z/source/sets/gnusrc.tgz
$ md5 gnusrc.tgz
MD5 (gnusrc.tgz) = a4039c9d7710bd8c6b38c61e4c92f19f
$ tar plzvtf gnusrc.tgz | fgrep if-change
-rw-rw-r-- 1 root wsrc 229 Nov 14 2001 usr/src/gnu/dist/autoconf/config/move-if-change
-rw-rw-r-- 1 root wsrc 880 Nov 26 2003 usr/src/gnu/dist/binutils/move-if-change
-rw-rw-r-- 1 root wsrc 880 Jul 25 2003 usr/src/gnu/dist/gcc/move-if-change
-rw-rw-r-- 1 root wsrc 229 Jul 22 2003 usr/src/gnu/dist/gcc/gcc/move-if-change
-rw-rw-r-- 1 root wsrc 884 Apr 20 04:21 usr/src/gnu/dist/gcc4/move-if-change
-rw-rw-r-- 1 root wsrc 880 Aug 11 2003 usr/src/gnu/dist/gdb/move-if-change
-rw-rw-r-- 1 root wsrc 384 May 15 10:08 usr/src/gnu/dist/gdb6/move-if-change
>Fix: