On Sat, 2003-02-15 at 15:06, Jacob Albretsen wrote: > I am trying to put some hair on my chest on compile programs from the ground > up using rpm. Since mozilla doesn't make rpms for Mandrake (9), I decided I > want to make my own from the source. I know, RH ones work (well, I have > never seen one not), but like I said, I am trying to learn and grow hair. > > I have been looking at the man pages trying to understand, but I guess I am > missing some of the terminology. Here is what I am putting (as root): > > rpm -v -ts --target i586-mandrake-linux-gnu mozilla-source-1.3b.tar.gz > > I was thinking that the -ts part means build the tarball and create the source > (.src.rpm) My assumption is that once I have the .src.rpm, I can do > > rpm --rebuild whatever.src.rpm > > and build the rpm binary. That is, if I am understanding the terminology > right. > > When I do the -ts command, I get an error: Bad File: > /home/programs/xmlterm-source-Mar7-M14.tar.gz: No such file or directory. > I did a search and installed a xmlterm-mozilla package and a libxml-devel file > that was on the Mandrake 9 disks, but I still get the error. I have also > tried -tb (I assume this just makes the RPM) and -ta (I assume this makes > .rpm and .src.rpm) > > So anyone care to enlighten me? Thanks.
Nothing like a good blanket of hair on your chest to keep you r on a lonely winter night. ;-) You're not "build[ing] the tarball", you are extracting the .spec file from the tarball, copying the tarbal to a build directory and building according to the instructions in the .spec. Some tarballs have more than one .spec and RPM will sometimes grab the wrong one. If that happens, try extracting the correct .spec and putting the tar ball in the build directory. Unhappily, you may have to "repair" the .spec if they make assumptions that aren't true for your disto. You may also have to correct the name of the tarball. (Let me give a related example: Gaim distributes it's nightly .src.rpm with the name gaim-CVS.src.rpm, but the internal .spec file expects gaim-<date>.src.rpm so the rpm has be be renamed before building.) I've occasionally had trouble with rpm -tb <tarball> with the newest versions of rpm. The recommended method is now rpmbuild -tb <tarball>. If extracting the wrong .spec file isn't your problem, please post more information. BTW, you are correct, by using -tb you can skip the creation of the .src.rpm and go straight to the ix86.rpm. That's what I normally do. -- Stuart Jansen <[EMAIL PROTECTED]> #define FALSE 0 /* This is the naked Truth */ #define TRUE 1 /* and this is the Light */ -- mailto.c ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list
