Page 1 of 5 123 ... LastLast
Results 1 to 10 of 50

Thread: Can't build on Obs

  1. #1

    Default Can't build on Obs

    First of, Thx for reading and answering this post if you can.

    That being said, I'm trying to get my project named skylendar on Obs. Thus, I created a project as described in the doc, downloaded a spec file and the skylendar-4.1nn-.tar.xz archive via both the web interface and the command line, and launched the building process, which failed...

    But I got this in the live build log.

    Code:
    [   41s] -----------------------------------------------------------------
    [   41s] I have the following modifications for skylendar.spec:
    [   41s] 10c10
    [   41s] < Release:        1
    [   41s] ---
    [   41s] > Release:        2.1
    [   41s] -----------------------------------------------------------------
    [   41s] ----- building skylendar.spec (user abuild)
    [   41s] -----------------------------------------------------------------
    [   41s] -----------------------------------------------------------------
    [   42s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:lader1/openSUSE_Factory/048d1335137c91fdad23b91549ef4005-Skylendar' /home/abuild/rpmbuild/SOURCES/skylendar.spec
    [   42s] setting SOURCE_DATE_EPOCH=1278244800
    [   42s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sR4UTh
    [   42s] + umask 022
    [   42s] + cd /home/abuild/rpmbuild/BUILD
    [   42s] + mv /home/abuild/rpmbuild/BUILDROOT/skylendar-4.1nn-2.1.x86_64 /home/abuild/rpmbuild/tmpBBroot
    [   42s] mv: cannot stat '/home/abuild/rpmbuild/BUILDROOT/skylendar-4.1nn-2.1.x86_64': No such file or directory
    [   42s] error: Bad exit status from /var/tmp/rpm-tmp.sR4UTh (%prep)
    [   42s] 
    [   42s] 
    [   42s] RPM build errors:
    [   42s]     Bad exit status from /var/tmp/rpm-tmp.sR4UTh (%prep)
    [   42s] 
    [   42s] build32 failed "build skylendar.spec" at Fri Feb  1 16:25:00 UTC 2019.
    [   42s] 
    [   42s] ### VM INTERACTION START ###
    [   45s] [   36.858260] sysrq: SysRq : Power Off
    [   45s] [   36.862213] reboot: Power down
    [   47s] ### VM INTERACTION END ###
    [   47s] 
    [   47s] build32 failed "build skylendar.spec" at Fri Feb  1 16:25:06 UTC 2019.
    [   47s]
    Have u any idea what's wrong ?

    Thx again

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    25,920
    Blog Entries
    15

    Default Re: Can't build on Obs

    Hi
    Yikes, that's an old spec file, and not up to par

    For %prep we just extract the tarball;

    Code:
    %setup -q
    Which is if you extracted the tarball locally... then you need to setup %build, then look at %install....

    %build needs cmake to prepare etc, have a look here for an example as there are macros to do all the hard work...

    https://build.opensuse.org/package/v....spec?expand=1
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    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: Can't build on Obs

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Yikes, that's an old spec file, and not up to par

    For %prep we just extract the tarball;

    Code:
    %setup -q
    Which is if you extracted the tarball locally... then you need to setup %build, then look at %install....

    %build needs cmake to prepare etc, have a look here for an example as there are macros to do all the hard work...

    https://build.opensuse.org/package/v....spec?expand=1
    Ok, will test. Thx for the help

  4. #4

    Default Re: Can't build on Obs

    Mhh, I got the same problem. How to indicate in the .spec file where to find out the tarball, because it is already added in the source file section of the obs ?

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    25,920
    Blog Entries
    15

    Default Re: Can't build on Obs

    Quote Originally Posted by lader1 View Post
    Mhh, I got the same problem. How to indicate in the .spec file where to find out the tarball, because it is already added in the source file section of the obs ?
    Hi
    You need to add;

    Code:
    Source0: skylendar-4.1nn.tar.xz
    Get rid of the defines as well...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6

    Default Re: Can't build on Obs

    I did that, but some requirements have not been fulfilled: i.e.

    I need libQt5Svg5-devel, but only libQt5Svg5 seems to exist in the opensuse repositories. Same thing with libz1-devel. Only libz1 exists.
    Sighhhh

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    25,920
    Blog Entries
    15

    Default Re: Can't build on Obs

    Quote Originally Posted by lader1 View Post
    I did that, but some requirements have not been fulfilled: i.e.

    I need libQt5Svg5-devel, but only libQt5Svg5 seems to exist in the opensuse repositories. Same thing with libz1-devel. Only libz1 exists.
    Sighhhh
    Hi
    Best way is to use pkgconfig if possible....

    Code:
    BuildRequires: pkgconfig(Qt5Svg) 
    BuildRequires: pkgconfig(zlib)
    https://build.opensuse.org/package/b...1.2.x86_64.rpm
    https://build.opensuse.org/package/b...5.5.x86_64.rpm
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8

    Default Re: Can't build on Obs

    Problems again:

    Code:
    [   80s] -----------------------------------------------------------------
    [   80s] I have the following modifications for skylendar.spec:
    [   80s] 3c3
    [   80s] < Release:        1
    [   80s] ---
    [   80s] > Release:        13.1
    [   80s] -----------------------------------------------------------------
    [   80s] ----- building skylendar.spec (user abuild)
    [   80s] -----------------------------------------------------------------
    [   80s] -----------------------------------------------------------------
    [   80s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:lader1/openSUSE_Factory/9099587643992230705a044f56d4b302-Skylendar' /home/abuild/rpmbuild/SOURCES/skylendar.spec
    [   80s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.JTx1yx
    [   80s] + umask 022
    [   80s] + cd /home/abuild/rpmbuild/BUILD
    [   80s] + cd /home/abuild/rpmbuild/BUILD
    [   80s] + rm -rf skylendar-4.1nn
    [   80s] + /usr/bin/xz -dc /home/abuild/rpmbuild/SOURCES/skylendar-4.1nn.tar.xz
    [   80s] + /usr/bin/tar -xof -
    [   81s] + STATUS=0
    [   81s] + '[' 0 -ne 0 ']'
    [   81s] + cd skylendar-4.1nn
    [   81s] /var/tmp/rpm-tmp.JTx1yx: line 34: cd: skylendar-4.1nn: No such file or directory
    [   81s] error: Bad exit status from /var/tmp/rpm-tmp.JTx1yx (%prep)
    [   81s] 
    [   81s] 
    [   81s] RPM build errors:
    [   81s]     Bad exit status from /var/tmp/rpm-tmp.JTx1yx (%prep)
    [   81s] 
    [   81s] cloud124 failed "build skylendar.spec" at Fri Feb  1 21:30:31 UTC 2019.
    [   81s] 
    [   81s] ### VM INTERACTION START ###
    [   84s] [   56.383246] sysrq: SysRq : Power Off
    [   84s] [   56.387084] reboot: Power down
    [   92s] ### VM INTERACTION END ###
    [   92s]

  9. #9
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    3,657

    Default AW: Can't build on Obs

    Code:
    /var/tmp/rpm-tmp.JTx1yx: line 34: cd: skylendar-4.1nn: No such file or directory
    If you unpack your Source, you get files in an directory named skylendar and not skylendar-4.1nn

    So maybe you use: %setup -q -n skylendar-4.1nn


    PS:
    Maybe better to use the openSUSE rpm from skylendar?
    Last edited by Sauerland; 01-Feb-2019 at 15:22.

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    25,920
    Blog Entries
    15

    Default Re: Can't build on Obs

    Hi
    It needed to create the directory first (-c) and change to it and unpack...

    Here you go: https://build.opensuse.org/request/show/670647

    It's building, but failing.... patches needed by the looks.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Page 1 of 5 123 ... LastLast

Posting Permissions

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