This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Upload: bash-3.0-5 [ready!]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Changes from 3.0-4:
+ provide man/man1/sh.1.gz -> bash.1.gz
+ improve postinstall/preremove scripts per yesterday's discussions

I think this version is ready for primetime, so my setup.hint no longer
mentions a test version.  You can delete 2.05b-16, and 3.0-[34], leaving
2.05b-17 as previous and 3.0-5 as current.  The following need to be done
with ash, then both packages uploaded simultaneously for minimum confusion
(although the postinstalls should ensure a success path regardless of
which one is done first in isolation):
+ repackage /bin/sh.exe as /bin/ash.exe
+ remove /usr/share/man/man1/ash.1 from the package
+ add a dependency to bash in setup.hint (needed to ensure bash is
installed to provide /bin/sh for all other packages that depended on ash
providing /bin/sh)
+ add /etc/postinstall/00ash.sh:

#!/bin/ash
# Ash postinstall script.  This ensures that /bin/sh exists and is
# runnable, favoring bash, and updating only if it is missing or ash

update=no
# Is /bin/sh missing, or have broken dependencies?
case `(cygcheck /bin/sh.exe) 2>&1` in
    *Error:\ could\ not\ find*) update=yes ;;
    *) # We can run it.  Is the version from ash?
        case `(/bin/sh.exe --version) 2>&1` in
            Illegal\ option\ --*) update=yes ;;
        esac ;;
esac
# Update, if needed, with hard link on supporting platforms.
if test $update = yes ; then
   ln -f /bin/bash.exe /bin/sh.exe || ln -f /bin/ash.exe /bin/sh.exe
fi


I also plan on putting together a list of all packages that depend on ash,
which should now update their setup.hint to depend on bash instead.

file	size	md5sum
http://home.comcast.net/~ericblake/bash-3.0-5.tar.bz2
	415035	34146180ae816c9ca23d5929740651d7
http://home.comcast.net/~ericblake/bash-3.0-5-src.tar.bz2
	2493592	df2130d5c02311ba781f2ada0361adcf
http://home.comcast.net/~ericblake/bash.setup.hint
	(prev: 2.05b-17, curr: 3.0-5)
	500	c04390db3f9a41ce0dba59eb8a94458d

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCy9iw84KuGfSFAYARAhpIAJwNqQnYQOr/XWtUH7rXX9+vbDTKegCfTaQY
p6b8TmyGyLopEkAEr8xan7o=
=nhBn
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]