Debian bug report logs - #1149
Make can't execute scripts

Package: make; Reported by: david@rem.ods.com (David Engel); 100 days old.

Message received at debian-bugs:


From pixar.com!bruce Mon Jul 24 07:28:19 1995
Return-Path: <bruce@pixar.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0saOUU-0005llC; Mon, 24 Jul 95 07:28 PDT
Received: from mongo.pixar.com by pixar.com with SMTP id AA07396
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Mon, 24 Jul 1995 07:26:46 -0700
Received: by mongo.pixar.com (Smail3.1.28.1 #15)
	id m0saOUT-0005hNC; Mon, 24 Jul 95 07:28 PDT
Message-Id: <m0saOUT-0005hNC@mongo.pixar.com>
To: david@rem.ods.com (David Engel)
Cc: bruce@Pixar.com (Bruce Perens), debian-bugs@Pixar.com,
        bug-gnu-utils@prep.ai.mit.edu
Subject: Re: Bug#1149: Make can't execute scripts 
In-Reply-To: Your message of "Sun, 23 Jul 1995 23:09:10 PDT."
             <9507240409.AA18394@rem.ods.com> 
Date: Mon, 24 Jul 1995 07:28:17 -0700
From: Bruce Perens <bruce@Pixar.com>

OK - my make is 3.71 .

	Bruce

Acknowledgement sent to Bruce Perens <bruce@Pixar.com>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1149; Package make. Full text available.

Message received at debian-bugs:


From rem.ods.com!david Sun Jul 23 21:10:00 1995
Return-Path: <david@rem.ods.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0saEq8-0003dRC; Sun, 23 Jul 95 21:10 PDT
Received: from istwok.ods.com by pixar.com with SMTP id AA06204
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 23 Jul 1995 21:08:02 -0700
Received: from rem.ods.com by istwok.ods.com (4.1/SMI-4.1)
	id AA21498; Sun, 23 Jul 95 23:08:09 CDT
Received: by rem.ods.com (4.1/SMI-4.1)
	id AA18394; Sun, 23 Jul 95 23:09:11 CDT
From: david@rem.ods.com (David Engel)
Message-Id: <9507240409.AA18394@rem.ods.com>
Subject: Re: Bug#1149: Make can't execute scripts
To: bruce@Pixar.com (Bruce Perens)
Date: Sun, 23 Jul 1995 23:09:10 -0500 (CDT)
Cc: debian-bugs@Pixar.com, bug-gnu-utils@prep.ai.mit.edu
In-Reply-To: <m0saDri-000BEEC@mongo.pixar.com> from "Bruce Perens" at Jul 23, 95 08:07:33 pm
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Content-Length: 535       

> Your test case didn't demonstrate the failure as you intended it to do
> on my Debian system (which should be a whole lot like your Debian system).
> Any idea why?

Which version of make are you using?  Don't forget to check if you are
using the one in /usr/bin.  I checked the diffs on prep.ai.mit.edu and
the bug was introduced in version 3.73.

David
-- 
David Engel                        Optical Data Systems, Inc.
david@ods.com                      1101 E. Arapaho Road
(214) 234-6400                     Richardson, TX  75081

Acknowledgement sent to david@rem.ods.com (David Engel):
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1149; Package make. Full text available.

Message received at debian-bugs:


From pixar.com!bruce Sun Jul 23 20:07:36 1995
Return-Path: <bruce@pixar.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0saDrk-000BEaC; Sun, 23 Jul 95 20:07 PDT
Received: from mongo.pixar.com by pixar.com with SMTP id AA02801
  (5.67b/IDA-1.5 for bruce@mongo.pixar.com); Sun, 23 Jul 1995 20:06:03 -0700
Received: by mongo.pixar.com (Smail3.1.28.1 #15)
	id m0saDri-000BEEC; Sun, 23 Jul 95 20:07 PDT
Message-Id: <m0saDri-000BEEC@mongo.pixar.com>
To: david@rem.ods.com (David Engel), debian-bugs@Pixar.com
Cc: bug-gnu-utils@prep.ai.mit.edu, bruce@Pixar.com
Subject: Re: Bug#1149: Make can't execute scripts 
In-Reply-To: Your message of "Sun, 23 Jul 1995 21:05:21 PDT."
             <9507240205.AA18298@rem.ods.com> 
Date: Sun, 23 Jul 1995 20:07:33 -0700
From: Bruce Perens <bruce@Pixar.com>

David,

Your test case didn't demonstrate the failure as you intended it to do
on my Debian system (which should be a whole lot like your Debian system).
Any idea why?

	Thanks

	Bruce

Acknowledgement sent to Bruce Perens <bruce@Pixar.com>:
Extra info received and forwarded. Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#1149; Package make. Full text available.

Message received at debian-bugs:


From rem.ods.com!david Sun Jul 23 19:11:47 1995
Return-Path: <david@rem.ods.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0saCzi-000B5eC; Sun, 23 Jul 95 19:11 PDT
Received: from istwok.ods.com by pixar.com with SMTP id AA29912
  (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 23 Jul 1995 19:10:12 -0700
Received: from rem.ods.com by istwok.ods.com (4.1/SMI-4.1)
	id AA19534; Sun, 23 Jul 95 21:04:20 CDT
Received: by rem.ods.com (4.1/SMI-4.1)
	id AA18298; Sun, 23 Jul 95 21:05:22 CDT
From: david@rem.ods.com (David Engel)
Message-Id: <9507240205.AA18298@rem.ods.com>
Subject: Make can't execute scripts
To: debian-bugs@pixar.com
Date: Sun, 23 Jul 1995 21:05:21 -0500 (CDT)
Cc: bug-gnu-utils@prep.ai.mit.edu
X-Mailer: ELM [version 2.4 PL23]
Content-Type: text
Content-Length: 3054      

Package: make
Version: 3.74-1

Make can't execute scripts that don't have a #! interpreter line.
Here is a shell archive containing a test case to reproduce the
problem and a patch to fix it.

David

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1995-07-23 20:47 CDT by <david@linux>.
# Source directory was `/.1/home/david/test'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#     14 -rw-rw-r-- Makefile
#    298 -rw-rw-r-- make.patch
#     13 -rwxr-xr-x runme
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  echo 'WARNING: not restoring timestamps.  Consider getting and'
  echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
# ============= Makefile ==============
if test -f 'Makefile' && test X"$1" != X"-c"; then
  echo 'x - skipping Makefile (file already exists)'
else
  echo 'x - extracting Makefile (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'Makefile' &&
all:
X	./runme
SHAR_EOF
  $shar_touch -am 0723175695 'Makefile' &&
  chmod 0664 'Makefile' ||
  echo 'restore of Makefile failed'
  shar_count="`wc -c < 'Makefile'`"
  test 14 -eq "$shar_count" ||
    echo "Makefile: original size 14, current size $shar_count"
fi
# ============= make.patch ==============
if test -f 'make.patch' && test X"$1" != X"-c"; then
  echo 'x - skipping make.patch (file already exists)'
else
  echo 'x - extracting make.patch (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'make.patch' &&
--- job.c~	Wed Apr 26 16:13:56 1995
+++ job.c	Sun Jul 23 20:38:42 1995
@@ -1102,7 +1102,7 @@
X 
X 	new_argv = (char **) alloca ((1 + argc + 1) * sizeof (char *));
X 	new_argv[0] = shell;
-	new_argv[1] = program;
+	new_argv[1] = argv[0];
X 	while (argc > 0)
X 	  {
X 	    new_argv[1 + argc] = argv[argc];
SHAR_EOF
  $shar_touch -am 0723204395 'make.patch' &&
  chmod 0664 'make.patch' ||
  echo 'restore of make.patch failed'
  shar_count="`wc -c < 'make.patch'`"
  test 298 -eq "$shar_count" ||
    echo "make.patch: original size 298, current size $shar_count"
fi
# ============= runme ==============
if test -f 'runme' && test X"$1" != X"-c"; then
  echo 'x - skipping runme (file already exists)'
else
  echo 'x - extracting runme (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'runme' &&
:
echo Howdy
SHAR_EOF
  $shar_touch -am 0723175795 'runme' &&
  chmod 0755 'runme' ||
  echo 'restore of runme failed'
  shar_count="`wc -c < 'runme'`"
  test 13 -eq "$shar_count" ||
    echo "runme: original size 13, current size $shar_count"
fi
exit 0


-- 
David Engel                        Optical Data Systems, Inc.
david@ods.com                      1101 E. Arapaho Road
(214) 234-6400                     Richardson, TX  75081

Acknowledgement sent to david@rem.ods.com (David Engel):
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#1149; Package make. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov