[opensuse-packaging] application don't start after rpmbuild
Hello, I try to build my first rpm package thatswhy i use an easy application. (I thougt so.) It's called tempo [1] and is anvisualization software. I can build it. (using "qmake", "make" and copy the files by hand because there is no install target) Afterwards I create a spec file. Rpmbuild is fine but the application doesn't start. I get the following error: Error type #9 (This error didn't appear on the manually build.) Something is interesting for me: /usr/src/BUILD/tempo/tempo starts but /usr/src/BUILDROOT/usr/share/tempo/tempo doesn't start You can find the files on obs home:segi [2]. What am I doing wrong? Bye Sebastian 1 http://code.google.com/p/tempo/ 2 https://build.opensuse.org/project/show?project=home%3Asegi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Sebastian, if you call macro "suse_update_desktop_file" then there should be one installed. created a sr to you project. use "osc" with: 'osc rq accept -m "message you want to say" 23550' you can have a look at 1) https://build.opensuse.org/package/show?package=tempo&project=home%3Acomputersalat%3Adevel come back on any questions. Kind Regards Chris Sebastian Gibb schrieb:
Hello,
I try to build my first rpm package thatswhy i use an easy application. (I thougt so.) It's called tempo [1] and is anvisualization software. I can build it. (using "qmake", "make" and copy the files by hand because there is no install target) Afterwards I create a spec file. Rpmbuild is fine but the application doesn't start. I get the following error: Error type #9 (This error didn't appear on the manually build.) Something is interesting for me: /usr/src/BUILD/tempo/tempo starts but /usr/src/BUILDROOT/usr/share/tempo/tempo doesn't start You can find the files on obs home:segi [2].
What am I doing wrong?
Bye
Sebastian
1 http://code.google.com/p/tempo/ 2 https://build.opensuse.org/project/show?project=home%3Asegi
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Christian, thank you for correcting my spec file.
if you call macro "suse_update_desktop_file" then there should be one installed. I create a basic desktop file with my tempo.patch file.
come back on any questions. I’ll take you up on that. Sadly, your rpm file has the same problem like my own one. I start tempo installed by your rpm file and get the following output: QTextBrowser: No document for file:///usr/bin/manual/index.html Error type #9
You changed the path of the documention: QTextBrowser: No document for file:///usr/bin/manual/index.html But that is no problem. I am able to patch the manual_widget.cpp to fix this behaviour. But why I get a "Error type #9"? Using the binary created from the tar.gz doesn't show this effect. But the %install procedure of rpmbuild seems to making crazy things which I don't understand. Btw. why did you change .tar.gz to tar.bz2? Bye, Sebastian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Sebastian, Sebastian Gibb schrieb:
Hi Christian,
thank you for correcting my spec file.
no problem
if you call macro "suse_update_desktop_file" then there should be one installed.
I create a basic desktop file with my tempo.patch file.
better add tempo.desktop as an extra source Source1: %{name}.desktop and later %{__install} -D -m 0644 %{S:1} $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
come back on any questions.
I’ll take you up on that. Sadly, your rpm file has the same problem like my own one. I start tempo installed by your rpm file and get the following output: QTextBrowser: No document for file:///usr/bin/manual/index.html Error type #9
manual was installed to doc_dir (/usr/share/doc/packages/tempo/manual) default path for docs
You changed the path of the documention: QTextBrowser: No document for file:///usr/bin/manual/index.html But that is no problem. I am able to patch the manual_widget.cpp to fix this behaviour.
ok
But why I get a "Error type #9"? Using the binary created from the tar.gz doesn't show this effect. But the %install procedure of rpmbuild seems to making crazy things which I don't understand.
I don't think so.
Btw. why did you change .tar.gz to tar.bz2?
AFAIK files > 100 K should be "tar.bz2", otherwise rpmlint would complain about that. (wasting space) best way is "bznew file.tar.gz" Regards Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Sebastian, here you can find "usable" Categories for Desktop Menu http://en.opensuse.org/Packaging/SUSE_Package_Conventions/Desktop_Menu And you need to install an Icon. I check in my mods, that you can take them over. Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello Christian,
add tempo.desktop as an extra source Source1: %{name}.desktop done
Sadly, your rpm file has the same problem like my own one. I start tempo installed by your rpm file and get the following output: [...] Error type #9 [...] But why I get a "Error type #9"? Using the binary created from the tar.gz doesn't show this effect. But the %install procedure of rpmbuild seems to making crazy things which I don't understand.
I don't think so. You are right! I contact the author who told me that I have to include some more files in the rpm. Also I patched another source file to find the path of the needed files.The error is gone. Thank you for your help.
The rpm package is ready. Can you go over it to give me some hint about the correctness of the spec file? Bye, Sebastian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Christian
-
Sebastian Gibb