Results 1 to 10 of 10

Thread: Trouble packaging a Qt5 app "File not found"

  1. #1

    Default Trouble packaging a Qt5 app "File not found"

    Hi there,

    Sorry that I'm really quite an ignoramus when it comes to packaging. I understand the very basic high-level concepts, but I always get tripped up by the specifics every time I try.

    I'm trying to package "Birdtray" here:
    https://build.opensuse.org/package/s...ctory/birdtray

    I don't know how to work around this error:
    [ 113s] RPM build errors:
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/bin/birdtray
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/applications/birdtray.desktop
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/icons/hicolor/*/apps/birdtray.*
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/doc/packages/birdtray/README.md
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/licenses/birdtray/LICENSE


    Thanks in advance!

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    24,642
    Blog Entries
    15

    Default Re: Trouble packaging a Qt5 app "File not found"

    Quote Originally Posted by sb56637 View Post
    Hi there,

    Sorry that I'm really quite an ignoramus when it comes to packaging. I understand the very basic high-level concepts, but I always get tripped up by the specifics every time I try.

    I'm trying to package "Birdtray" here:
    https://build.opensuse.org/package/s...ctory/birdtray

    I don't know how to work around this error:
    [ 113s] RPM build errors:
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/bin/birdtray
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/applications/birdtray.desktop
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/icons/hicolor/*/apps/birdtray.*
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/doc/packages/birdtray/README.md
    [ 113s] File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-40.1.x86_64/usr/share/licenses/birdtray/LICENSE


    Thanks in advance!
    Hi
    You have no %install section in the spec file....

    The license file is installed with %license macro as well...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    Tumbleweed (x86_64) | GNOME 3.28.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: Trouble packaging a Qt5 app "File not found"

    Oops, I forgot that I removed the install section. It's there now.

    Is there any way to make it automatically generate the .desktop file? I see many packages on OBS that don't include one, and it appears to be generated on each build.

    I don't understand why it's not even finding the binary file:
    File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-43.1.x86_64/usr/bin/birdtray

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    24,642
    Blog Entries
    15

    Default Re: Trouble packaging a Qt5 app "File not found"

    Quote Originally Posted by sb56637 View Post
    Oops, I forgot that I removed the install section. It's there now.

    Is there any way to make it automatically generate the .desktop file? I see many packages on OBS that don't include one, and it appears to be generated on each build.

    I don't understand why it's not even finding the binary file:
    File not found: /home/abuild/rpmbuild/BUILDROOT/birdtray-1.1-43.1.x86_64/usr/bin/birdtray
    Hi
    Your package is linked to a package in graphics repository? This will over write it at some point?

    Desktop files can be generated on the fly if required, but you don't have update-desktop-files installed, or running the macro....

    Let me have a quick play...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    Tumbleweed (x86_64) | GNOME 3.28.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5

    Default Re: Trouble packaging a Qt5 app "File not found"

    Thanks a lot @malcolmlewis . Yes, it's linked to another similar Qt5 package that I based the spec file on. Once I get it figured out I'll delete this branch and create an independent package in my home repo.

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    24,642
    Blog Entries
    15

    Default Re: Trouble packaging a Qt5 app "File not found"

    Quote Originally Posted by sb56637 View Post
    Thanks a lot @malcolmlewis . Yes, it's linked to another similar Qt5 package that I based the spec file on. Once I get it figured out I'll delete this branch and create an independent package in my home repo.
    Hi
    Have a look at the spec file here;
    https://build.opensuse.org/package/s...STING/birdtray
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    Tumbleweed (x86_64) | GNOME 3.28.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7

    Default Re: Trouble packaging a Qt5 app "File not found"

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Have a look at the spec file here;
    https://build.opensuse.org/package/s...STING/birdtray
    Nice!! Thanks a ton, I never would have figured out this part:

    install -Dm0755 src/birdtray %{buildroot}%{_bindir}/birdtray
    install -Dm0644 src/res/thunderbird.png %{buildroot}%{_datadir}/pixmaps/birdtray.png

  8. #8

    Default Re: Trouble packaging a Qt5 app "File not found"

    I copied everything over to my home/misc project, but for some reason it's not running the script to get from GIT. Do I have to manually trigger it somehow?

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    24,642
    Blog Entries
    15

    Default Re: Trouble packaging a Qt5 app "File not found"

    Quote Originally Posted by sb56637 View Post
    I copied everything over to my home/misc project, but for some reason it's not running the script to get from GIT. Do I have to manually trigger it somehow?
    Hi
    See the comment in the spec file.... In your local build instance (eg created/checked out via osc), run;
    Code:
    sh get_from_git.sh birdtray gyunaev 1.1 master
    Or just run and upload the tarball and adjust your spec file as required...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    Tumbleweed (x86_64) | GNOME 3.28.2
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  10. #10

    Default Re: Trouble packaging a Qt5 app "File not found"

    OK, thanks again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •