From: jlnance@unity.ncsu.edu
To: Ben Collins <bcollins@debian.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux v2.5.43
Date: Wed, 16 Oct 2002 08:18:42 -0400 [thread overview]
Message-ID: <20021016121842.GA2292@ncsu.edu> (raw)
In-Reply-To: <20021016120528.GI5613@phunnypharm.org>
[-- Attachment #1: Type: text/plain, Size: 499 bytes --]
On Wed, Oct 16, 2002 at 08:05:29AM -0400, Ben Collins wrote:
> > The binary rpms are built on SuSE 8.1, there's a source rpm there too
> > though. This is 1.11a37 with Linus patch that allows you do to
>
> Can us non-rpm'ers get a tarball, please? Even an upstream tarball with
> patches in the topdir would be fine.
Hi Ben,
I attached a perl script to this email that will let you turn an rpm
into a cpio file. To use it do:
rpm2cpio some.file.rpm | cpio --extract
Hope this helps.
Jim
[-- Attachment #2: rpm2cpio --]
[-- Type: text/plain, Size: 1416 bytes --]
#! /usr/bin/env perl
# why does the world need another rpm2cpio? because the existing one
# won't build unless you have half a ton of things that aren't really
# required for it, since it uses the same library used to extract RPM's.
# in particular, it won't build on the HPsUX box i'm on.
# add a path if desired
$gzip = "gzip";
sub printhelp {
print "rpm2cpio, perl version by orabidoo <odar\@pobox.com>\n";
print "use: rpm2cpio [file.rpm]\n";
print "dumps the contents to stdout as a GNU cpio archive\n";
exit 0;
}
if ($#ARGV == -1) {
printhelp if -t STDIN;
$f = "STDIN";
} elsif ($#ARGV == 0) {
open(F, "< $ARGV[0]") or die "Can't read file $ARGV[0]\n";
$f = 'F';
} else {
printhelp;
}
printhelp if -t STDOUT;
# gobble the file up
undef $/;
$|=1;
$rpm = <$f>;
close ($f);
($magic, $major, $minor, $crap) = unpack("NCC C90", $rpm);
die "Not an RPM\n" if $magic != 0xedabeedb;
die "Not a version 3 RPM\n" if $major != 3;
$rpm = substr($rpm, 96);
while ($rpm ne '') {
$rpm =~ s/^\c@*//s;
($magic, $crap, $sections, $bytes) = unpack("N4", $rpm);
$smagic = unpack("n", $rpm);
last if $smagic eq 0x1f8b;
die "Error: header not recognized\n" if $magic != 0x8eade801;
$rpm = substr($rpm, 16*(1+$sections) + $bytes);
}
die "bogus RPM\n" if $rpm eq '';
open(ZCAT, "|gzip -cd") || die "can't pipe to gzip\n";
print STDERR "CPIO archive found!\n";
print ZCAT $rpm;
close ZCAT;
next prev parent reply other threads:[~2002-10-16 12:14 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-16 3:44 Linus Torvalds
2002-10-16 4:41 ` Andrew Morton
2002-10-16 4:48 ` Andrew Morton
2002-10-16 7:01 ` Martin J. Bligh
2002-10-16 17:41 ` Martin J. Bligh
2002-10-17 0:10 ` Thomas Molina
2002-10-16 7:28 ` Adrian Bunk
2002-10-16 8:25 ` Linux v2.5.43 nfs fails to boot, fix george anzinger
2002-10-16 7:31 ` Linux v2.5.43 Jens Axboe
2002-10-16 12:05 ` Ben Collins
2002-10-16 12:09 ` Jens Axboe
2002-10-16 12:16 ` Ben Collins
2002-10-16 12:17 ` Jens Axboe
2002-10-16 12:22 ` Ben Collins
2002-10-16 12:25 ` Jens Axboe
2002-10-16 12:18 ` jlnance [this message]
2002-10-16 12:27 ` Ben Collins
2002-10-16 22:48 ` jbradford
2002-10-16 12:01 ` v2.5.43 patch: fix device_suspend() please apply Eric Blade
2002-10-16 14:57 ` Linux v2.5.43 John Levon
2002-10-16 15:02 ` Matthew Wilcox
2002-10-16 21:05 ` Bill Davidsen
2002-10-16 21:35 ` Shawn
2002-10-16 21:48 ` Linus Torvalds
2002-10-17 13:14 ` Bill Davidsen
2002-10-18 19:34 ` Bill Davidsen
2002-10-19 17:43 ` bill davidsen
2002-10-18 7:08 ` Andres Salomon
2002-10-18 7:02 ` David S. Miller
2002-10-18 17:00 ` Adrian Bunk
2002-10-18 17:03 ` Ben Collins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021016121842.GA2292@ncsu.edu \
--to=jlnance@unity.ncsu.edu \
--cc=bcollins@debian.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome