Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230247 - lots of scripts have broken shebang lines
Summary: lots of scripts have broken shebang lines
Status: RESOLVED LATER
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 20:25 UTC by Elias Pipping
Modified: 2008-08-11 16:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Pipping 2008-06-30 20:25:16 UTC
attaching a list in a second
Comment 1 Fabian Groffen gentoo-dev 2008-06-30 20:28:24 UTC
pipping's list:

$ xargs head -1 < shebang                                                       
==> solaris/usr/bin/c89 <==                                                     
#! /bin/sh                                                                      
                                                                                
==> solaris/usr/bin/lzmore <==                                                  
#!/bin/sh                                                                       
                                                                                
==> solaris/usr/bin/autoconf-2.61 <==                                           
#! /bin/sh                                                                      
                                                                                
==> solaris/usr/bin/igawk-3.1.6 <==                                             
#! /bin/sh                                                                      
                                                                                
==> solaris/usr/bin/lddtree <==                                                 
#!/bin/bash                                                                     

==> solaris/usr/bin/lzdiff <==
#!/bin/sh

==> solaris/usr/bin/lzgrep <==
#!/bin/sh

==> solaris/usr/bin/lddtree.sh <==
#!/bin/bash

==> solaris/usr/bin/bashbug <==
#!/bin/sh -

==> solaris/usr/bin/c99 <==
#! /bin/sh

==> solaris/usr/bin/libtoolize <==
#! /bin/sh

==> solaris/usr/bin/ncurses5-config <==
#!/bin/sh

==> solaris/usr/bin/libtool <==
#! /bin/bash

==> solaris/usr/sbin/savelog <==
#! /bin/sh

==> solaris/usr/sbin/backup-tar <==
#! /bin/sh

==> solaris/usr/sbin/backup.sh <==
#! /bin/sh

==> solaris/usr/sbin/dump-remind <==
#!/bin/sh

==> solaris/usr/sbin/restore-tar <==
#! /bin/sh

==> solaris/usr/lib/perl5/5.8.8/Math/BigFloat/Trace.pm <==
#!/usr/bin/perl -w

==> solaris/usr/lib/perl5/5.8.8/Math/BigInt/Trace.pm <==
#!/usr/bin/perl -w

==> solaris/usr/lib/perl5/5.8.8/ExtUtils/xsubpp <==
#!/usr/bin/perl

==> solaris/usr/lib/python2.5/ctypes/macholib/fetch_macholib <==
#!/bin/sh

==> solaris/usr/lib/python2.5/config/makesetup <==
#! /bin/sh

==> solaris/usr/lib/python2.5/config/install-sh <==
#!/bin/sh

==> solaris/usr/lib/python2.5/cgi.py <==
#! /usr/local/bin/python

==> solaris/usr/lib/python2.5/plat-sunos5/regen <==
#! /bin/sh

==> solaris/usr/lib/python2.5/test/test_bz2.py <==
#!/usr/bin/python

==> solaris/usr/lib/portage/bin/glsa-check <==
#!/usr/bin/python

==> solaris/usr/share/automake-1.10/depcomp <==
#! /bin/sh

==> solaris/usr/share/automake-1.10/acinstall <==
#! /bin/sh

==> solaris/usr/share/automake-1.10/mdate-sh <==
#!/bin/sh

==> solaris/usr/share/automake-1.10/symlink-tree <==
#!/bin/sh

==> solaris/usr/share/automake-1.10/mkinstalldirs <==
#! /bin/sh

==> solaris/usr/share/automake-1.10/py-compile <==
#!/bin/sh

==> solaris/usr/share/automake-1.10/install-sh <==
#!/bin/sh

==> solaris/usr/share/automake-1.10/ylwrap <==
#! /bin/sh

==> solaris/usr/share/automake-1.10/elisp-comp <==
#!/bin/sh

==> solaris/usr/share/automake-1.10/missing <==
#! /bin/sh

==> solaris/usr/share/automake-1.10/compile <==
#! /bin/sh

==> solaris/usr/share/gcc-data/sparcv9-sun-solaris2.10/4.2.4/c89 <==
#! /bin/sh

==> solaris/usr/share/gcc-data/sparcv9-sun-solaris2.10/4.2.4/c99 <==
#! /bin/sh

==> solaris/usr/share/gnuconfig/config.sub <==
#! /bin/sh

==> solaris/usr/share/gnuconfig/config.guess <==
#! /bin/sh

==> solaris/usr/share/libtool/install-sh <==
#!/bin/sh

==> solaris/usr/share/libtool/libltdl/install-sh <==
#!/bin/sh

==> solaris/usr/share/libtool/libltdl/configure <==
#! /bin/sh

==> solaris/usr/share/libtool/libltdl/missing <==
#! /bin/sh

==> solaris/usr/sparcv9-sun-solaris2.10/gcc-bin/4.2.4/gccbug <==
#!/bin/sh

==> solaris/sbin/depscan.sh <==
#!/bin/bash

==> solaris/etc/ssl/misc/c_issuer <==
#!/bin/sh

==> solaris/etc/ssl/misc/c_name <==
#!/bin/sh

==> solaris/etc/ssl/misc/c_hash <==
#!/bin/sh

==> solaris/etc/ssl/misc/c_info <==
#!/bin/sh

==> solaris/etc/ssl/misc/CA.sh <==
#!/bin/sh

==> solaris/etc/init.d/pydoc-2.5 <==
#!/sbin/runscript
Comment 2 Fabian Groffen gentoo-dev 2008-06-30 20:28:45 UTC
my note: all /bin/sh entries can be ignored from my point of view.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-06-30 20:47:47 UTC
(In reply to comment #2)
> my note: all /bin/sh entries can be ignored from my point of view.
> 

From my POV, they only need to be fixed if they are broken. Are any of these packages defunct?

#! /usr/local/bin/python <- That probably won't ever work.
#!/sbin/runscript <- init scripts aren't supported in Prefix. WONTFIX (atm) 
#!/usr/bin/python <- Should probably be fixed, agreed.
#! /bin/sh <- Would require a patch to just about every configure script. Plus, no issues to date (that I am aware of), WONTFIX
#!/usr/bin/perl <- Fix most likely needed.
Comment 4 Fabian Groffen gentoo-dev 2008-07-01 07:27:29 UTC
(In reply to comment #3)
> From my POV, they only need to be fixed if they are broken. Are any of these
> packages defunct?

Agreed.

> #! /usr/local/bin/python <- That probably won't ever work.

conclusion, we probably can get away with it, as it's broken by design

> #!/sbin/runscript <- init scripts aren't supported in Prefix. WONTFIX (atm) 
> #!/usr/bin/python <- Should probably be fixed, agreed.

a *must* fix. (and it's glsa-check, so it's my fault) [FIXED]

> #! /bin/sh <- Would require a patch to just about every configure script. Plus,
> no issues to date (that I am aware of), WONTFIX
> #!/usr/bin/perl <- Fix most likely needed.

comes from perl, some includes doesn't look fatal, but we should fix it indeed.
Comment 5 Michael Haubenwallner (RETIRED) gentoo-dev 2008-07-01 09:08:25 UTC
Maybe this should be a separate bug: In prefix-launcher I apply a patch[1] to portage since ages, because $BASH is a reserved bash-environment variable, and I remember having troubles somewhere when unsetting BASH or sth. like that. Thus I renamed the configure-outcome to @CU_BASH@. "CU" stands for "commandline utility".
[1] http://prefix-launcher.svn.sourceforge.net/viewvc/prefix-launcher/prefix-launcher/trunk/portage/patches/16-cu_bash.patch?revision=159&view=markup
Comment 6 Fabian Groffen gentoo-dev 2008-07-01 09:10:39 UTC
I'll apply the portage patch later today (or a variant of it)
Comment 7 Fabian Groffen gentoo-dev 2008-08-11 16:00:16 UTC
that perl stuff I'm happy to ignore until we hit a problem.