delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/02/22:14:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <37F6BC4F.8D923704@ece.gatech.edu>
Date: Sat, 02 Oct 1999 22:15:43 -0400
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "A.R. Burgers" <arburgers AT hetnet DOT nl>
CC: cygwin mailing list <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Problem using rpm on Windows 98 (partly solved)
References: <NDBBLHPPKKBKPBLLMFJBMEJCCDAA DOT sssiddiqi AT ipass DOT net> <37F524BD DOT 9311B8AB AT hetnet DOT nl>

Based on my quick perusal of the source code, it appears that the
problem *is* a text/binary mount issue. The source code needs to be
patched with a lot of #ifdef CYGWIN's and O_BINARY's. Unfortunately I
can't do this right now. Workaround (for now) is to use binary mounts
for rpm.exe.

One strange thing, though - I changed all my mounts to text, and it
worked fine for me (even though, according to the source code, the files
are *not* opened correctly). Weird. 

--Chuck

"A.R. Burgers" wrote:
> 
> Suhaib Siddiqi wrote:
> 
> > Do not know about rpm, but you can get rpm2cpio script
> > from http://cygutils.netpedia.net/, extract the contents of rpm and
> > install it manually by copying the extracted files/directories to
> > the desired location.
> 
> Thanks for your fast response and your hint.
> 
> I tried both rpm2cpio from cygutils.netpedia.net and the rpm2cpio.pl
> script (from www.rpm.org).
> 
> rpm2cpio says:
> error reading header from package
> 
> rpm2cpio.pl says:
> bogus RPM.
> 
> This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and
> perl-DelimMatch-1.04-1-cygwinb20.i386.rpm
> 
> I managed to get rpm2cpio.pl to work by specifying
> binmode on the filehandle to the rpm archive.
> 
> So the problem is probably that rpm2cpio (and probably rpm)
> don't open their files in binary mode. Is something set wrong in my
> environment? Are my file opens text by default and not binary?
> 
> my $CYGWIN variable is empty.
> The output of mount is:
> 
> Device           Directory           Type        Flags
> C:               /                   native      text!=binary
> 
> Teun Burgers
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019