bash: preinst not a script; doesn't begin with #!

Bug #7310 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
bash (Debian)
Fix Released
Unknown
bash (Ubuntu)
Invalid
High
Matthias Klose

Bug Description

Automatically imported from Debian bug report #263747 http://bugs.debian.org/263747

Revision history for this message
In , Justin Pryzby (justinpryzby-users) wrote : sh

Of course, bash _is_ /bin/sh. I know this is intentional, maybe this is
accepted?
--
Justin
aptitude install iraf saods9 eclipse xpa sextractor x11iraf wcstools pyraf
http://www.justinpryzby.com/debian/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #263747 http://bugs.debian.org/263747

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <E1BsjPZ-0002A8-Nl@andromeda>
Date: Thu, 05 Aug 2004 10:40:05 -0400
From: Justin Pryzby <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: bash: preinst not a script; doesn't begin with #!

Package: bash
Version: 2.05b-15
Severity: serious
Justification: Policy 6.1

/var/lib/dpkg/info/bash.preinst: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (101, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=C

Versions of packages bash depends on:
ii base-files 3.1 Debian base system miscellaneous f
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libncurses5 5.4-4 Shared libraries for terminal hand

-- no debconf information

Revision history for this message
In , Colin Watson (cjwatson) wrote :

On Thu, Aug 05, 2004 at 10:40:05AM -0400, Justin Pryzby wrote:
> Package: bash
> Version: 2.05b-15
> Severity: serious
> Justification: Policy 6.1
>
>
> /var/lib/dpkg/info/bash.preinst: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped

This is not a bug, and should be closed. The section of policy you quote
says:

     These scripts are the files `preinst', `postinst', `prerm' and
     `postrm' in the control area of the package. They must be proper
     executable files; if they are scripts (which is recommended), they
     must start with the usual `#!' convention. They should be readable
     and executable by anyone, and not world-writable.

Being a script is only recommended, not required; and bash is an
exception, with a good reason why it's the way it is.

bash (2.02.1-1.7) unstable; urgency=low

  * Non-maintainer release.
  * Make bash not Pre-Depend on itself. That is, make bash's preinst
    something other than a /bin/sh script; in this case a reasonably
    simple binary.
  * Remove /bin/sh from the .deb, and reinstate it in the postinst if
    it's not already present. Hence make the postinst a /bin/bash script
    instead of a /bin/sh script.

 -- Anthony Towns <email address hidden> Sat, 28 Aug 1999 01:09:08 +1000

Also, before filing RC bugs you might want to check
http://release.debian.org/sarge_rc_policy.txt, as that's currently the
canonical reference.

Cheers,

--
Colin Watson [<email address hidden>]

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040805151016.GA8549@andromeda>
Date: Thu, 5 Aug 2004 11:10:16 -0400
From: Justin Pryzby <email address hidden>
To: <email address hidden>
Subject: sh

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Of course, bash _is_ /bin/sh. I know this is intentional, maybe this is
accepted?
--=20
Justin
aptitude install iraf saods9 eclipse xpa sextractor x11iraf wcstools pyraf
http://www.justinpryzby.com/debian/

--pf9I7BMVVzbSWLtt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBEk3Yh7yD3l4ITTYRAj/lAKCwgX/WDgcaZhKB6c/N7zwMtPfkXACeNX87
2Jikv/Q07EK6UvLrJvGsHuI=
=2kpM
-----END PGP SIGNATURE-----

--pf9I7BMVVzbSWLtt--

Revision history for this message
In , Justin Pryzby (justinpryzby-users) wrote : Re: bash is essential

Originally I sent this to the wrong bug (262747).
On Thu, Aug 05, 2004 at 12:18:21PM -0400, pryzbyj wrote:
> Bash is essential, so I guess this is accepted (plus its hard to fix:).
> Sorry for the noise.
> Justin

Revision history for this message
Matt Zimmerman (mdz) wrote :

NOTABUG

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 5 Aug 2004 17:27:18 +0100
From: Colin Watson <email address hidden>
To: Justin Pryzby <email address hidden>
Cc: <email address hidden>
Subject: Re: bash: preinst not a script; doesn't begin with #!

On Thu, Aug 05, 2004 at 10:40:05AM -0400, Justin Pryzby wrote:
> Package: bash
> Version: 2.05b-15
> Severity: serious
> Justification: Policy 6.1
>
>
> /var/lib/dpkg/info/bash.preinst: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped

This is not a bug, and should be closed. The section of policy you quote
says:

     These scripts are the files `preinst', `postinst', `prerm' and
     `postrm' in the control area of the package. They must be proper
     executable files; if they are scripts (which is recommended), they
     must start with the usual `#!' convention. They should be readable
     and executable by anyone, and not world-writable.

Being a script is only recommended, not required; and bash is an
exception, with a good reason why it's the way it is.

bash (2.02.1-1.7) unstable; urgency=low

  * Non-maintainer release.
  * Make bash not Pre-Depend on itself. That is, make bash's preinst
    something other than a /bin/sh script; in this case a reasonably
    simple binary.
  * Remove /bin/sh from the .deb, and reinstate it in the postinst if
    it's not already present. Hence make the postinst a /bin/bash script
    instead of a /bin/sh script.

 -- Anthony Towns <email address hidden> Sat, 28 Aug 1999 01:09:08 +1000

Also, before filing RC bugs you might want to check
http://release.debian.org/sarge_rc_policy.txt, as that's currently the
canonical reference.

Cheers,

--
Colin Watson [<email address hidden>]

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20040805165221.GB9295@andromeda>
Date: Thu, 5 Aug 2004 12:52:21 -0400
From: Justin Pryzby <email address hidden>
To: <email address hidden>
Subject: Re: bash is essential

--A6N2fC+uXW/VQSAv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Originally I sent this to the wrong bug (262747).
On Thu, Aug 05, 2004 at 12:18:21PM -0400, pryzbyj wrote:
> Bash is essential, so I guess this is accepted (plus its hard to fix:).
> Sorry for the noise.
> Justin

--A6N2fC+uXW/VQSAv
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBEmXFh7yD3l4ITTYRAojzAJ9nnA/kUv59m4e/NadCmF7otSAm4ACgnh9f
hcD4McRZGTHQZXa2Hq6eWXs=
=Jg/Y
-----END PGP SIGNATURE-----

--A6N2fC+uXW/VQSAv--

Changed in bash:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.