Patch for rpm, 1. Hanging up in the "Finding Provides:" step (bugin win9x), 2. The "-V, --verify" option, and 3. Touching (utime) a read-onlyfile.

Anon Sricharoenchai ans@beethoven.cpe.ku.ac.th
Sat Jan 27 08:36:00 GMT 2001


I have attached 3 patches on rpm-3.0.5 for cygwin-win9x.

1. The patch for for the bug in cygwin-win9x, that it hangs
up at the finding provides step during building a package,

   Finding  Provides: (using /usr/lib/rpm/find-provides)...

, as discussed in the following forum.

   http://pub30.ezboard.com/fcygwinfrm1.showMessage?topicID=2.topic

This is because rpm will wait for EOF of the output piped from the
"find-provides" program, but win9x can't detect an EOF on that
non-blocking pipe.

2. The next patch is a fix for the problem that cygwin interprete the
path, such as "//usr/bin/abc", as a samba path, so that it can't
access the file "/usr/bin/abc".  This problem has been fixed by
Michael Ring <m.ring@ndh.net>, but with -V or --verity option, it
hasn't been fixed.  When rpm is invoked like,

   $ rpm -V <package-name>

, rpm always report every files in the package as a "missing" file.

3. Next, I have fixed calling utime() on a read-only file.  The
problem is that cygwin can't touch a read-only file.  Michael Ring has
fixed this by ignore any error return from utime(), but this will
cause the files with read-only permission been installed with an
incorrect timestamp.  So, I fixed this problem by first chmod u+w
every files before calling utime(), after utime()-ing I set the file
permission back to what it should be.



I have built my own rpm package with my patch base on
"rpm-3.0.5-27mdk.src.rpm" from Mandrake 7.2.  My package also includes
some patch about BUFSIZ, find-provides and find-requires from Michael
Ring.

The .tgz binary version is available at,

   http://naist.cpe.ku.ac.th/~ans/release/cygwin/tar/

The .rpm binary versions are available at,

   http://naist.cpe.ku.ac.th/~ans/release/cygwin/RPMS/

The .src.rpm version is available at,

   http://naist.cpe.ku.ac.th/~ans/release/cygwin/SRPMS/


More information about the Cygwin-apps mailing list