[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] POPT (was Pilot link)



Hello!

I can't see a reference to the patch file in the 1.3 spec file.

Are you sure there is no line called %patch? in the spec file? If yes I'll suggest to take a look into the documentation. If you want to build/update rpm packages you need some minimum knowledge about the syntax of spec files (they are very simple in general). I'm sure there are also nice FAQs.

I thought it was unusual too. The SRPM has a tar.gz and that it what
both versions of the spec files expect to find, I think. Without
the file I just get:

I don't understand what do you do. Do you want to rebuild the 1.3 rpm? If yes you must place all required files into the right places. This means, place the original .tar.gz together with the patch file under the SOURCES dir and place the spec file under the spec file dir. Then try an rpm -ba.

bash-2.05a# rpm -ba popt.spec
File /usr/src/redhat/SOURCES/popt-1.13.tar.gz: No such file or directory

Hmm, looks like there is no file called popt-1.13.tar.gz in the directory /usr/src/redhat/SOURCES. Or what answer do you expect now? To use rpm you need a correct spec file and the sources and you need to copy this to the right places.

That't don't help much. What's the exact error message rpm produce?

It tries to cd to pop-1.13 but fails because it can't find it:

And what is the directory that is created if you unpack the popt-1.13.tar.gz? In the original source the directory is called popt-1.13. So you changed something to the wrong and wonder now that it don't work anymore. Just read the failure message and analyze what is wrong. Then correct this. And as I already said, the correct way is to use and unmodified source file and create patch files if neccessary. All other produce confusion.

Sure. Create a patch file like the popt-1.3-mintcnf.patch, copy it to the
SOURCES folder and add it to the spec file so rpm automatically apply it
while building the package. And never modify the original source archive
that is used by rpm.

Was the 1.3 patch file generated by something like diff ?

Sure. Just take a look into the patch file and you will see it.

Is it necessary to include the old patch (or parts of it) into the new
patch ?

That's something that must answer the guy that update/recompile the package (e.g. you). I don't know how the current version looks like and what patches the current version requires.


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------
http://sparemint.org/
e-Mail: fnaumann@boerde.de