This is the mail archive of the cygwin 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]

rebase: rebaseall growing pains


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

Rebaseall is subject to "growing pains".  In addition to the 500-some
packages in the distro, I have my Cygwin Ports repository installed as
well, which makes for a total of almost 1300 binary packages.

When I have to run rebase from the distro, I get the following error:

gzip: Argument list too long

This is because of the command "gzip -d -c /etc/setup/*.lst.gz".
Instead, that part could work like the following:

********************************************************************

This # Set temp file
TmpFile="$TmpDir/rebase.lst"
rm -f $TmpFile

# Create rebase list
for f in /etc/setup/*.lst.gz
do
gzip -d -c $f | grep -E "($Suffixes)\$" | \
    sed -e '/cygwin1.dll$/d' -e 's/^/\//' >>"$TmpFile" ;
done

*********************************************************************

The for,do,done loop isn't limited by argument length, so this works.


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

iD8DBQFDNEqspiWmPGlmQSMRAnd/AJ9Y6QSwHsy92LcgKRK4DlZVEReJrACgy/IV
vo+/9s6Y/Usjv0yl9b05tco=
=ktlH
-----END PGP SIGNATURE-----

--
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/


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