Re: want tool to open RPM package on Window 95
> > > I can think of a number of uses for such a tool. For example, to read > > > the documentation of a package before installing it on a different > > > (Linux-based) system; or to unpack a source-rpm in order to build it > > > with Cygwin. > > > > Bad idea. Most RPM'S contain specific RH patches, most of them being path > > fixes. Get the tar.gz in that case. > > Some software may only (easily) be available in src-rpm format. I might > just want to build one of the binaries in it by hand. I might just want to > read the docs. I might ... > > The point is not what I might or might not want; the point is that there > are valid uses for RPM on Windows. > > > Second, there is no way to actually build on a Windows machine, so I don't > > see the use of it. > > There's no reason why RPM might not be ported to Cygwin. Would be good for consistancy. I still have to see a good decent Windows install / uninstall program. > > > > Second, I'm glad there isn't. Saves tons of bugus bug reports. > > > > Ever opened a UNIX textfile in Notepad, which is the default editor in > > most windows versions ? > > How does this relate to the current discussion? Because I got two reports with 'Hey, you'r docs are screwed in Notepad'. > By "RPM maintainer" do you mean maintainer of the .rpm package or > maintainer of the RPM package management tool? The maintainer. > I don't even use RPM myself; I use Debian. But every now and then I'm > forced to use a Windows machine and sometimes do find it very convenient to > be able to unpack Debian packages. I use about all there is in package management. I don't care if people unpack / build things on Windows, as long as I don't get bug reports. And I do get them. > - Ruud de Rooij. Igmar - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
On 2000/10/12, Igmar Palsenberg wrote: > > > I can think of a number of uses for such a tool. For example, to read > > the documentation of a package before installing it on a different > > (Linux-based) system; or to unpack a source-rpm in order to build it > > with Cygwin. > > Bad idea. Most RPM'S contain specific RH patches, most of them being path > fixes. Get the tar.gz in that case. Some software may only (easily) be available in src-rpm format. I might just want to build one of the binaries in it by hand. I might just want to read the docs. I might ... The point is not what I might or might not want; the point is that there are valid uses for RPM on Windows. > Second, there is no way to actually build on a Windows machine, so I don't > see the use of it. There's no reason why RPM might not be ported to Cygwin. > > > Second, I'm glad there isn't. Saves tons of bugus bug reports. > > Ever opened a UNIX textfile in Notepad, which is the default editor in > most windows versions ? How does this relate to the current discussion? > > Bug reports for whom? > > The RPM maintainer. By "RPM maintainer" do you mean maintainer of the .rpm package or maintainer of the RPM package management tool? I don't even use RPM myself; I use Debian. But every now and then I'm forced to use a Windows machine and sometimes do find it very convenient to be able to unpack Debian packages. - Ruud de Rooij. -- ruud de rooij | *@spam.ruud.org | http://ruud.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
> I can think of a number of uses for such a tool. For example, to read > the documentation of a package before installing it on a different > (Linux-based) system; or to unpack a source-rpm in order to build it > with Cygwin. Bad idea. Most RPM'S contain specific RH patches, most of them being path fixes. Get the tar.gz in that case. Second, there is no way to actually build on a Windows machine, so I don't see the use of it. > > Second, I'm glad there isn't. Saves tons of bugus bug reports. Ever opened a UNIX textfile in Notepad, which is the default editor in most windows versions ? > Bug reports for whom? The RPM maintainer. > > - Ruud de Rooij. Igmar - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
Igmar Palsenberg <[EMAIL PROTECTED]> writes: > On Wed, 11 Oct 2000 [EMAIL PROTECTED] wrote: > > > Can anyone tell me which tool can open RPM package on Window 95 and where to >download it? > > There isn't, and it serves no use anyway. I can think of a number of uses for such a tool. For example, to read the documentation of a package before installing it on a different (Linux-based) system; or to unpack a source-rpm in order to build it with Cygwin. > Second, I'm glad there isn't. Saves tons of bugus bug reports. Bug reports for whom? - Ruud de Rooij. -- ruud de rooij | *@spam.ruud.org | http://ruud.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
On Wed, 11 Oct 2000 [EMAIL PROTECTED] wrote: > Can anyone tell me which tool can open RPM package on Window 95 and where to >download it? There isn't, and it serves no use anyway. Second, I'm glad there isn't. Saves tons of bugus bug reports. Igmar - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
Michal Jaegermann writes: > > Somewhere floating around there is a perl version of rpm2cpio. > > This is what I wrote one day a long time ago: > > #!/usr/bin/perl -w > use strict; > > my ($buffer, $pos, $gzmagic); > $gzmagic = "\037\213"; > open OUT, "| gunzip" or die "cannot find gunzip; $!\n"; > while(1) { > exit 1 unless defined($pos = read STDIN, $buffer, 8192) and $pos > 0; > next unless ($pos = index $buffer, $gzmagic) >= 0; > print OUT substr $buffer, $pos; > last; > } > print OUT ; > exit 0; > > Yes, I know that I should not mix 'read' with stdio but it worked > every time I tried the above. :-) The good news is that "read" does use stdio (along with seek and print). The syscall ones are sys{read,write,seek}. The less good news is that your "print OUT " sucks up all the RPM file into memory before dumping it out again which is inelegant and leads those who copy the idiom without understanding it to run into problems when they use similar code on large files. One way of doing it a bit differently is #!/usr/bin/perl die "Usage: rpm2cpio foo.rpm | cpio ...\n" unless @ARGV == 1; open(RPM, $ARGV[0]) or die "$ARGV[0]: $!\n"; open(STDOUT, "| gunzip") or die "cannot find gunzip: $!\n"; while (read(RPM, $_, 8192)) { if (!$found_gzmagic) { s/^.*?(?=\037\213)//s or next; $found_gzmagic = 1; } print; } > Can we go back now to kernel issues? Oops, yes, we now return you to your regularly scheduled kgcc wars. --Malcolm -- Malcolm Beattie <[EMAIL PROTECTED]> Unix Systems Programmer Oxford University Computing Services - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
Michal Jaegermann writes: Somewhere floating around there is a perl version of rpm2cpio. This is what I wrote one day a long time ago: #!/usr/bin/perl -w use strict; my ($buffer, $pos, $gzmagic); $gzmagic = "\037\213"; open OUT, "| gunzip" or die "cannot find gunzip; $!\n"; while(1) { exit 1 unless defined($pos = read STDIN, $buffer, 8192) and $pos 0; next unless ($pos = index $buffer, $gzmagic) = 0; print OUT substr $buffer, $pos; last; } print OUT STDIN; exit 0; Yes, I know that I should not mix 'read' with stdio but it worked every time I tried the above. :-) The good news is that "read" does use stdio (along with seek and print). The syscall ones are sys{read,write,seek}. The less good news is that your "print OUT STDIN" sucks up all the RPM file into memory before dumping it out again which is inelegant and leads those who copy the idiom without understanding it to run into problems when they use similar code on large files. One way of doing it a bit differently is #!/usr/bin/perl die "Usage: rpm2cpio foo.rpm | cpio ...\n" unless @ARGV == 1; open(RPM, $ARGV[0]) or die "$ARGV[0]: $!\n"; open(STDOUT, "| gunzip") or die "cannot find gunzip: $!\n"; while (read(RPM, $_, 8192)) { if (!$found_gzmagic) { s/^.*?(?=\037\213)//s or next; $found_gzmagic = 1; } print; } Can we go back now to kernel issues? Oops, yes, we now return you to your regularly scheduled kgcc wars. --Malcolm -- Malcolm Beattie [EMAIL PROTECTED] Unix Systems Programmer Oxford University Computing Services - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
On Wed, 11 Oct 2000 [EMAIL PROTECTED] wrote: Can anyone tell me which tool can open RPM package on Window 95 and where to download it? There isn't, and it serves no use anyway. Second, I'm glad there isn't. Saves tons of bugus bug reports. Igmar - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
Igmar Palsenberg [EMAIL PROTECTED] writes: On Wed, 11 Oct 2000 [EMAIL PROTECTED] wrote: Can anyone tell me which tool can open RPM package on Window 95 and where to download it? There isn't, and it serves no use anyway. I can think of a number of uses for such a tool. For example, to read the documentation of a package before installing it on a different (Linux-based) system; or to unpack a source-rpm in order to build it with Cygwin. Second, I'm glad there isn't. Saves tons of bugus bug reports. Bug reports for whom? - Ruud de Rooij. -- ruud de rooij | *@spam.ruud.org | http://ruud.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
I can think of a number of uses for such a tool. For example, to read the documentation of a package before installing it on a different (Linux-based) system; or to unpack a source-rpm in order to build it with Cygwin. Bad idea. Most RPM'S contain specific RH patches, most of them being path fixes. Get the tar.gz in that case. Second, there is no way to actually build on a Windows machine, so I don't see the use of it. Second, I'm glad there isn't. Saves tons of bugus bug reports. Ever opened a UNIX textfile in Notepad, which is the default editor in most windows versions ? Bug reports for whom? The RPM maintainer. - Ruud de Rooij. Igmar - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
On 2000/10/12, Igmar Palsenberg wrote: I can think of a number of uses for such a tool. For example, to read the documentation of a package before installing it on a different (Linux-based) system; or to unpack a source-rpm in order to build it with Cygwin. Bad idea. Most RPM'S contain specific RH patches, most of them being path fixes. Get the tar.gz in that case. Some software may only (easily) be available in src-rpm format. I might just want to build one of the binaries in it by hand. I might just want to read the docs. I might ... The point is not what I might or might not want; the point is that there are valid uses for RPM on Windows. Second, there is no way to actually build on a Windows machine, so I don't see the use of it. There's no reason why RPM might not be ported to Cygwin. Second, I'm glad there isn't. Saves tons of bugus bug reports. Ever opened a UNIX textfile in Notepad, which is the default editor in most windows versions ? How does this relate to the current discussion? Bug reports for whom? The RPM maintainer. By "RPM maintainer" do you mean maintainer of the .rpm package or maintainer of the RPM package management tool? I don't even use RPM myself; I use Debian. But every now and then I'm forced to use a Windows machine and sometimes do find it very convenient to be able to unpack Debian packages. - Ruud de Rooij. -- ruud de rooij | *@spam.ruud.org | http://ruud.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
I can think of a number of uses for such a tool. For example, to read the documentation of a package before installing it on a different (Linux-based) system; or to unpack a source-rpm in order to build it with Cygwin. Bad idea. Most RPM'S contain specific RH patches, most of them being path fixes. Get the tar.gz in that case. Some software may only (easily) be available in src-rpm format. I might just want to build one of the binaries in it by hand. I might just want to read the docs. I might ... The point is not what I might or might not want; the point is that there are valid uses for RPM on Windows. Second, there is no way to actually build on a Windows machine, so I don't see the use of it. There's no reason why RPM might not be ported to Cygwin. Would be good for consistancy. I still have to see a good decent Windows install / uninstall program. Second, I'm glad there isn't. Saves tons of bugus bug reports. Ever opened a UNIX textfile in Notepad, which is the default editor in most windows versions ? How does this relate to the current discussion? Because I got two reports with 'Hey, you'r docs are screwed in Notepad'. By "RPM maintainer" do you mean maintainer of the .rpm package or maintainer of the RPM package management tool? The maintainer. I don't even use RPM myself; I use Debian. But every now and then I'm forced to use a Windows machine and sometimes do find it very convenient to be able to unpack Debian packages. I use about all there is in package management. I don't care if people unpack / build things on Windows, as long as I don't get bug reports. And I do get them. - Ruud de Rooij. Igmar - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
> Somewhere floating around there is a perl version of rpm2cpio. This is what I wrote one day a long time ago: #!/usr/bin/perl -w use strict; my ($buffer, $pos, $gzmagic); $gzmagic = "\037\213"; open OUT, "| gunzip" or die "cannot find gunzip; $!\n"; while(1) { exit 1 unless defined($pos = read STDIN, $buffer, 8192) and $pos > 0; next unless ($pos = index $buffer, $gzmagic) >= 0; print OUT substr $buffer, $pos; last; } print OUT ; exit 0; Yes, I know that I should not mix 'read' with stdio but it worked every time I tried the above. :-) Can we go back now to kernel issues? Michal - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
On Wed, Oct 11, 2000 at 01:51:29PM +0800, [EMAIL PROTECTED] wrote: > Can anyone tell me which tool can open RPM package on Window 95 and where to > download it? Somewhere floating around there is a perl version of rpm2cpio. If you can find this and set up the cygwin environment under W95, you should be able to do it. Jim - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
On Wed, Oct 11, 2000 at 01:51:29PM +0800, [EMAIL PROTECTED] wrote: Can anyone tell me which tool can open RPM package on Window 95 and where to download it? Somewhere floating around there is a perl version of rpm2cpio. If you can find this and set up the cygwin environment under W95, you should be able to do it. Jim - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
Re: want tool to open RPM package on Window 95
Somewhere floating around there is a perl version of rpm2cpio. This is what I wrote one day a long time ago: #!/usr/bin/perl -w use strict; my ($buffer, $pos, $gzmagic); $gzmagic = "\037\213"; open OUT, "| gunzip" or die "cannot find gunzip; $!\n"; while(1) { exit 1 unless defined($pos = read STDIN, $buffer, 8192) and $pos 0; next unless ($pos = index $buffer, $gzmagic) = 0; print OUT substr $buffer, $pos; last; } print OUT STDIN; exit 0; Yes, I know that I should not mix 'read' with stdio but it worked every time I tried the above. :-) Can we go back now to kernel issues? Michal - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/