rpmbuild screws up install path with mythtv
I have been trying to build a rpm of mythtv (with sources from Øystein <http://folk.uio.no/oeysteio/ > and a additional patch to make it compile) for my 64 bit box and am getting strange errors. I can compile it just fine using normal ./configure qmake make procedures, but when using rpmbuild after setting prefix to /usr with configure, it tries to install in the prefix ../../../../../../ which is not very helpful. I have also manually done the same things as rpmbuild is suppose to do after letting it prepare the sources and get the /usr prefix as it is supposed to have. Could anyone give me a hint? -- Guðlaugur Jóhannesson http://www.hi.is/~gudlaugu Tel: 840-8405
On Tuesday 18 October 2005 23:31, Guðlaugur Jóhannesson wrote:
I have been trying to build a rpm of mythtv (with sources from Øystein <http://folk.uio.no/oeysteio/ > and a additional patch to make it compile) for my 64 bit box and am getting strange errors. I can compile it just fine using normal ./configure qmake make procedures, but when using rpmbuild after setting prefix to /usr with configure, it tries to install in the prefix ../../../../../../ which is not very helpful. I have also manually done the same things as rpmbuild is suppose to do after letting it prepare the sources and get the /usr prefix as it is supposed to have. Could anyone give me a hint?
The Makefile for mythtv is highly screwy. For one thing, it doesn't respect DESTDIR or anything like that, you'll need to change it to make it work with rpmbuild
Anders Johansson wrote:
On Tuesday 18 October 2005 23:31, Guðlaugur Jóhannesson wrote:
I can compile it just fine using normal ./configure qmake make procedures, but when using rpmbuild after setting prefix to /usr with configure, it tries to install in the prefix ../../../../../../ which is not very helpful. I have also manually done the same things as rpmbuild is suppose to do after letting it prepare the sources and get the /usr prefix as it is supposed to have. Could anyone give me a hint?
The Makefile for mythtv is highly screwy. For one thing, it doesn't respect DESTDIR or anything like that, you'll need to change it to make it work with rpmbuild
It actually supports INSTALL_ROOT which is similar, but that does not change the fact that rpmbuild changes the behavior of the prefix usage in mythtv. It also changes /usr/include to ../../../../../../include in the Includes which is also not very nice. I have to look into how qmake works and figure this out. Thanks for your help. -- Guðlaugur Jóhannesson http://www.hi.is/~gudlaugu Tel: 849 8405
Am Dienstag 18 Oktober 2005 23:48 schrieb Guðlaugur Jóhannesson:
Anders Johansson wrote: [...] It actually supports INSTALL_ROOT which is similar, but that does not change the fact that rpmbuild changes the behavior of the prefix usage in mythtv. It also changes /usr/include to ../../../../../../include in the Includes which is also not very nice. I have to look into how qmake works and figure this out. Thanks for your help.
I had similar problems when building a RPM for kcheckers. My solution was to install this way: make INSTALL_ROOT=$RPM_BUILD_ROOT/'$(PWD)'/ install Look wired, but works. Cheers, Herbert
Herbert Graeber wrote:
make INSTALL_ROOT=$RPM_BUILD_ROOT/'$(PWD)'/ install
Look wired, but works.
Not for me unfortunately. -- Guðlaugur Jóhannesson http://www.hi.is/~gudlaugu Tel: 849 8405
Anders Johansson wrote:
The Makefile for mythtv is highly screwy. For one thing, it doesn't respect DESTDIR or anything like that, you'll need to change it to make it work with rpmbuild
I agree with that and I am changing it now. The problem, however, is that calling qmake (qt3 version) from rpmbuild results in weird behavior with both the prefix and some include paths. It seems that qmake changes some instances of the /usr directory to ../../../../../../ when called from rpmbuild. It does not do that with the qt4 version or when manually calling the qt3 version. Could this be a bug with qmake from qt3? -- Guðlaugur Jóhannesson http://www.hi.is/~gudlaugu Tel: 849 8405
participants (3)
-
Anders Johansson
-
Guðlaugur Jóhannesson
-
Herbert Graeber