cygport 0.3.9 bug

Yaakov (Cygwin Ports) yselkowitz@users.sourceforge.net
Sun May 4 20:52:00 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Eric Blake wrote:
| I've reported this before against earlier versions [1], but the bug is
| still present in 0.3.9, and it breaks packaging of bash.  Basically,
| cygport should NOT ignore patches to aclocal.m4 in packages that do not
| use automake, since in that case, it is a hand-maintained file and not
| generated.

I'm sorry that I missed this before.

It's slightly more complicated than that, but here's a patch that should
handle most cases.  There are a handful of packages where the autotools
are listed in a subdirectory (tcl comes to mind), but such a case would
anyways require a DIFF_EXCLUDES.  I want to test this further to see if
any regressions arise before committing.

WRT your bash cygport, it would appear that you have rendered the
aclocal patch unnecessary by setting the AC_CACHE_VAL.

As for your other "hacks":
1) I would investigate further a bug (in soelim?) that prevents ".so"
from reading a compressed file unless it is on the first line.

FWIW,  on Gentoo, the offending section is removed entirely from
bash_builtins.1, but on Debian it is present and bash.1 is compressed.
sourceware also has a compressed bash.1, and builtins.1 (and all those
which .so it) works fine.

2) Parallel make should be possible with a patch from Gentoo:
http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/app-shells/bash/files/bash-3.2-parallel-build.patch

3) With the postinstall, perhaps you could rename it and installing it
manually, e.g.:

insinto /etc/postinstall
newins 00postinstall.sh 00bash.sh

You would then have two postinstall scripts (bash.sh containing the
install-info command), *or* you could RESTRICT="postinst-info" as info
might not be set up (e.g. update-info-dir) on a fresh install.


Yaakov

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkgeIiIACgkQpiWmPGlmQSM59ACeNmSJDcU15jrC4NZOvyNyD+ti
p1QAoOU+t0EZQlSYZLhtU9EbtxBvj26k
=nIVI
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: aclocal.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20080504/98b763f9/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list