how to unzip source.patch.bz2

how to unzip source.patch.bz2

Post by Eric L » Tue, 01 Jan 2002 16:02:53



Dear linux system programmers:
  I download some source rpm from mdk8, but when I want to unzip
somesource.patch.bz2
tar xfvj  , it get error,
how do I get that source code out?

sincere

 
 
 

how to unzip source.patch.bz2

Post by Gianni Marian » Tue, 01 Jan 2002 16:33:49



> Dear linux system programmers:
>   I download some source rpm from mdk8, but when I want to unzip
> somesource.patch.bz2
> tar xfvj  , it get error,
> how do I get that source code out?

"bz2" is an extension to a bzip2 compressed file.  You'll need to run
the file through 'bunzip2'.  The tools bzip2 and bunzip2 are similar to
gzip and gunzip but they use the Burrows/Wheeler transform instead of a
modified Lempel-Ziv-Welch algorithm.  On some kinds of text, bzip will
compress much better than LZW and with some others it's about the same.

You can get bzip through http://www.veryComputer.com/
need it.

The next thing that you'll need to look at is that you have a "patch"
and not the originals.  A patch is created by using the utility "diff"
(usually with the command line "diff -Naur old_dir new_dir").  This will
record the differences from the files in "old_dir" and the files in
"new_dir".  Using this file and the "patch" utility, you will be able to
create the contents of "new_dir" starting with old_dir and the patch
file.  This is useful because the patch utility will merge changes where
possible. In short, you're not going to get much * from this file
without the original sources.

Time to RTFM.

G

> sincere



 
 
 

how to unzip source.patch.bz2

Post by Eric L » Tue, 01 Jan 2002 19:12:57


Dear G.M. or any linux-developers:

Now I get a somesource.patch.bz2.orig  file
how should I get the source code out by both?

hope to see suggestion again

> The next thing that you'll need to look at is that you have a "patch"
> and not the originals.  A patch is created by using the utility "diff"
> (usually with the command line "diff -Naur old_dir new_dir").  This will
> record the differences from the files in "old_dir" and the files in
> "new_dir".  Using this file and the "patch" utility, you will be able to
> create the contents of "new_dir" starting with old_dir and the patch
> file.  This is useful because the patch utility will merge changes where
> possible. In short, you're not going to get much * from this file
> without the original sources.

> Time to RTFM.

> G

> > sincere


 
 
 

how to unzip source.patch.bz2

Post by Chronos Tachyo » Wed, 02 Jan 2002 03:17:34



  [Snip]

Quote:

> "bz2" is an extension to a bzip2 compressed file.  You'll need to run
> the file through 'bunzip2'.  The tools bzip2 and bunzip2 are similar to
> gzip and gunzip but they use the Burrows/Wheeler transform instead of a
> modified Lempel-Ziv-Welch algorithm.  On some kinds of text, bzip will
> compress much better than LZW and with some others it's about the same.

  [Snip]

Minor point:  gzip uses the unpatented and unencumbered LZ77 (Lempel-Ziv
1977) algorithm, and not the LZW (Lempel-Ziv-Welch) algorithm that is
patented by Unisys.  The deprecated compress(1) program used LZW.

--
Chronos Tachyon
http://chronos.dyndns.org/ -- WWED?
Guardian of Eristic Paraphernalia
Gatekeeper of the Region of Thud
 12:17pm  up 64 days, 16:03,  1 user,  load average: 0.34, 0.26, 0.19

 
 
 

how to unzip source.patch.bz2

Post by Plasm » Wed, 02 Jan 2002 11:11:11



> Dear linux system programmers:
>   I download some source rpm from mdk8, but when I want to unzip
> somesource.patch.bz2
> tar xfvj  , it get error,
> how do I get that source code out?

> sincere


For the easy solution, just use "ark", the archiver program.  Nice pretty
GUI interface, and it'll handle things without annoying piping.  Just not
quite as fast IMHO as console unzipping.

--
GCS/J d s+:-- a--- C++++ UL++++S+ P+ L+++(++)>+++++$ E---- W++ N+ o? K?
w+>--- O !M-- V-- PS+(-) PE- Y-- PGP- t+>++ 5>+ X R>+ tv+ b++(+++)
DI++++ D++ G e>+++ h! r-- y?

 
 
 

how to unzip source.patch.bz2

Post by Eric L » Wed, 02 Jan 2002 15:37:08


Dear Plasma or linux programmers:

  it do sucessfully took of .bz2 on one of my source.patch.bz2 file,
then what should I do?  patch  source.patch
it keep waiting my input, but what command or file name I should type
in?

also ark seem can not unzip2 my the otther file, source.patch.bz2.orig

need help on that again


> For the easy solution, just use "ark", the archiver program.  Nice pretty
> GUI interface, and it'll handle things without annoying piping.  Just not
> quite as fast IMHO as console unzipping.

 
 
 

how to unzip source.patch.bz2

Post by bd » Wed, 02 Jan 2002 15:38:01



> Dear linux system programmers:
>   I download some source rpm from mdk8, but when I want to unzip
> somesource.patch.bz2
> tar xfvj  , it get error,
> how do I get that source code out?

> sincere


patches go _over_ the source.

Goto the dir to be patched, then do:
bzcat somesource.patch.bz2 | patch -p1

You might need to fiddle with the -p1 bit.

--
Failure is not an option. It comes bundled with your Microsoft product.

Visualize whirled peas.

 
 
 

how to unzip source.patch.bz2

Post by Markus Kossman » Wed, 02 Jan 2002 15:19:59



> Dear linux system programmers:
>   I download some source rpm from mdk8, but when I want to unzip
> somesource.patch.bz2
> tar xfvj  , it get error,

Why untar it ? This is no tar archive .
Just do a "bunzip2  somesource.patch.bz2" and then use patch to apply it
to "somesource"

--
Markus Kossmann                                    

 
 
 

how to unzip source.patch.bz2

Post by Robrecht Jacque » Wed, 02 Jan 2002 20:05:03



Quote:

>   it do sucessfully took of .bz2 on one of my source.patch.bz2 file,
> then what should I do?  patch  source.patch
> it keep waiting my input, but what command or file name I should type
> in?

Please read 'man patch' and you'll see you need to do:
        patch -p1 < source.patch
or -p0. That is: feed the patch to the program instead of mentioning it
on the commandline.

Quote:> also ark seem can not unzip2 my the otther file, source.patch.bz2.orig

Probably because the extension is 'wrong'. Remove the .orig from the
name. If that is not the problem, try 'file source.patch.bz2.orig' to
determine the filetype.

Please react under your quote.

Kr,
Robrecht

 
 
 

how to unzip source.patch.bz2

Post by Eric L » Thu, 03 Jan 2002 06:20:06




> >   it do sucessfully took of .bz2 on one of my source.patch.bz2 file,
> > then what should I do?  patch  source.patch
> > it keep waiting my input, but what command or file name I should type
> > in?

> Please read 'man patch' and you'll see you need to do:
>    patch -p1 < source.patch
> or -p0. That is: feed the patch to the program instead of mentioning it
> on the commandline.


gcc-i386-address-cost.patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------

|
|       * config/i386/i386.h (ADDRESS_COST): Fix typo.
|
|--- gcc/config/i386/i386.h.jj  Mon Oct 23 22:51:33 2000
|+++ gcc/config/i386/i386.h     Fri Oct 27 17:57:35 2000
--------------------------
File to patch: gcc-i386-address-cost.patch
patching file gcc-i386-address-cost.patch
Hunk #1 FAILED at 2097.
1 out of 1 hunk FAILED -- saving rejects to file

so it seem not work, or I need to do something different?

Quote:> > also ark seem can not unzip2 my the otther file, source.patch.bz2.orig

> Probably because the extension is 'wrong'. Remove the .orig from the
> name. If that is not the problem, try 'file source.patch.bz2.orig' to
> determine the filetype.


gcc-i386-address-cost.patch.bz2.orig: bzip2 compressed data, block
size = 900k

gcc-i386-addr
ess-cost.patch.bz2.orig0

origgcc-i386-
address-cost.patch.bz2


        * config/i386/i386.h (ADDRESS_COST): Fix typo.

--- gcc/config/i386/i386.h.jj   Mon Oct 23 22:51:33 2000

    lifetimes.  */

 #define ADDRESS_COST(RTX) \
-  ix86_address_cost (x)
+  ix86_address_cost (RTX)

 /* A C expression for the cost of moving data from a register in
class FROM to
    one in class TO.  The classes are expressed using the enumeration
values

but my origggcc-i386-address-cost.patch.bz2 still can not get rid of
bz2.

hope to see more suggestion to get source code out from source.patch
and
source.patch.bz2.orig in my usr/src/RPM/SOURCES directory.

its gcc.src.rpm  from mandrake7.2(with orig) and 8.0


Quote:

> Please react under your quote.

> Kr,
> Robrecht

 
 
 

how to unzip source.patch.bz2

Post by Nix » Thu, 03 Jan 2002 08:51:31


On 1 Jan 2002, Eric Lin spake:


> gcc-i386-address-cost.patch
> can't find file to patch at input line 7
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------

>|
>|       * config/i386/i386.h (ADDRESS_COST): Fix typo.
>|
>|--- gcc/config/i386/i386.h.jj  Mon Oct 23 22:51:33 2000
>|+++ gcc/config/i386/i386.h     Fri Oct 27 17:57:35 2000
> --------------------------

Look at the paths in the patch and reason from there.

In this case, you need to use -p0, not -p1, and from your GCC top-level
directory (the one with libiberty/, gcc/, and include/ directories in
it).

--
`Perhaps you should have asked Santa for your program as a Christmas
present.' --- Terran Melconian

 
 
 

how to unzip source.patch.bz2

Post by Eric L » Thu, 03 Jan 2002 14:24:37



> On 1 Jan 2002, Eric Lin spake:

> > gcc-i386-address-cost.patch
> > can't find file to patch at input line 7
> > Perhaps you used the wrong -p or --strip option?
> > The text leading up to this was:
> > --------------------------

> >|
> >|       * config/i386/i386.h (ADDRESS_COST): Fix typo.
> >|
> >|--- gcc/config/i386/i386.h.jj  Mon Oct 23 22:51:33 2000
> >|+++ gcc/config/i386/i386.h     Fri Oct 27 17:57:35 2000
> > --------------------------

> Look at the paths in the patch and reason from there.

> In this case, you need to use -p0, not -p1, and from your GCC top-level
> directory (the one with libiberty/, gcc/, and include/ directories in
> it).

Dear Nix:

I only can find libiberty.a in my /usr/i586-mandrake-linux/lib directory


libiberty.a

/usr/i586-mandrake-linux/lib

another problem is compiler error on simple c program hello.c,
do you have any clue?


gcc: installation problem, cannot exec `as': No such file or directory

int main() {
        printf("hello world");
        return 0;

Quote:}


hope see linux programers help

 
 
 

how to unzip source.patch.bz2

Post by Nix » Fri, 08 Feb 2002 06:28:24


[Gak. Sorry for the delay. Newsfeed problems.]

On 1 Jan 2002, Eric Lin muttered drunkenly:


> gcc: installation problem, cannot exec `as': No such file or directory

You seem not to have binutils installed (which includes the assembler).

I'd expect this to be a dependency of the C compiler in your distro...
maybe something is broken there?

--
`However, if you want to detect whether (say, 1 in 1000) cars are being
 abducted by bunnies along their route, you've got a whole new problem.'
                              - Scott James Remnant on network problems

 
 
 

1. patch for unzip sources on banjo

I've uploaded 'unzipsrc.dff.Z' to /pub/Linux/Incoming on banjo.concert.net.

The patch is relative to 'unzipsrc.tar.Z' (can also be found in the incoming
directory on banjo). The patched sources are ready to compiled with GCC 2.2.2.
All executables have been successfully tested under Linux v0.96c-pl2

What's new?:
        o Targets 'linux' 'zi_linux' 'ship_linux' added to Makefile
        o Added a shell-script called 'Make_linux' to build/install 'unzip',
          'zipinfo', 'ship' and the corresponding man-pages.

Please have a look at the README's for more infos.

Regards,
--Fabian Mueller

2. help setting up first openvpn

3. how do I unzip unzip512.zip so I can unzip unzip?

4. Hardware questions

5. how to unzip the file *.tar.bz2

6. STB nVIDIA TNT 16MB Card with Solaris 8 Intel

7. how to get souurce code from two s.patch and s.patch.bz2.orig

8. Go-JOE

9. kde bz2 source files. how to uninstall

10. problem uncompressing kde bz2 source files

11. patch-2.4.21-rc4-ac1.bz2 on kernel.org is really patch-2.4.21-rc2-ac3?

12. failed to "make xconfig" after patching patch-2.4.21-rc2.bz2

13. unzip cant unzip