Results 1 to 7 of 7

Thread: subsurface and build problem

  1. #1
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    455

    Default subsurface and build problem

    hi

    i try to build package for subsurface 4.1 (diving software)

    errror file
    https://build.opensuse.org/package/l...SE_13.1/x86_64

    in this file, i get some warning and error like
    error: Directory not found: /home/abuild/rpmbuild/BUILDROOT/Subsurface-4.1-14.1.x86_64/usr/share/doc/subsurface



    spec file
    https://build.opensuse.org/package/v....spec?expand=1

    a part of this file:
    Code:
    %prep%setup -q
    
    
    %build
    qmake
    make %{?_smp_mflags}
    
    
    %suse_update_desktop_file subsurface  Utility DesktopUtility
    
    
    
    
    %install
    export INSTALL_ROOT=%{buildroot}
    make %{?_smp_mflags} install DESTDIR=%{buildroot}
    
    
    %files
    %defattr(-,root,root,-)
    %doc gpl-2.0.txt README ReleaseNotes.txt
    %{_bindir}/subsurface
    %{_datadir}/applications/subsurface.desktop
    %{_datadir}/doc/subsurface/
    %{_datadir}/icons/hicolor/*/apps/subsurface-icon.*
    %{_datadir}/subsurface/
    %{_mandir}/man1/subsurface.1.gz
    any help would be very appreciate
    www.laboiteaprog.com

  2. #2
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    455

    Default Re: subsurface and build problem

    it's seem like the name some importance
    so insteand of using Subsurface i need ubsurface

    i saw somebody who use
    Code:
    Name:           subsurfaceVersion:        X
    Release:        0
    Summary:        Open source divelog program
    License:        GPL-2.0
    Group:          Productivity/Networking/Web/Browsers
    Url:            https://hohndel.org/
    Source0:        %{name}-%{version}.tar.xz
    BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    i don't know how to upload the needed file

    so i created a file_service (should be done i think by obs)

    Code:
    <services>  <service name="tar_scm">
        <param name="url">git://git.hohndel.org/subsurface.git</param>
        <param name="scm">git</param>
        <param name="versionprefix">4.1git</param>
      </service>
      <service name="recompress">
         <param name="file">*.tar</param>
         <param name="compression">xz</param>
      </service>
      <service name="set_version"/>
    </services>
    seem to download it

    but i got the same error

    Directory not found: /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.i386/usr/share/doc/subsurface

    link to obs
    https://build.opensuse.org/package/s...nm/subsurface#
    www.laboiteaprog.com

  3. #3
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,919
    Blog Entries
    15

    Default Re: subsurface and build problem

    On Fri 16 May 2014 12:16:01 PM CDT, collinm wrote:


    it's seem like the name some importance
    so insteand of using Subsurface i need ubsurface

    i saw somebody who use

    Code:
    --------------------
    Name: subsurfaceVersion: X
    Release: 0
    Summary: Open source divelog program
    License: GPL-2.0
    Group: Productivity/Networking/Web/Browsers
    Url: https://hohndel.org/
    Source0: %{name}-%{version}.tar.xz
    BuildRoot: %{_tmppath}/%{name}-%{version}-build
    --------------------


    i don't know how to upload the needed file

    so i created a file_service (should be done i think by obs)


    Code:
    --------------------
    <services> <service name="tar_scm">
    <param name="url">git://git.hohndel.org/subsurface.git</param>
    <param name="scm">git</param>
    <param name="versionprefix">4.1git</param>
    </service>
    <service name="recompress">
    <param name="file">*.tar</param>
    <param name="compression">xz</param>
    </service>
    <service name="set_version"/>
    </services>
    --------------------


    seem to download it

    but i got the same error

    Directory not found:
    /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.i386/usr/share/doc/subsurface

    link to obs
    https://build.opensuse.org/package/s...nm/subsurface#


    Hi
    Because the %doc macro installs in /usr/share/doc/packages/subsurface
    and in your %files section you have /usr/share/doc/subsurface, remove
    this line and see how it goes.....

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  4. #4
    Join Date
    Aug 2010
    Location
    Volgograd, Russia
    Posts
    91

    Default Re: subsurface and build problem

    16.05.2014 16:16, collinm wrote:
    >
    > it's seem like the name some importance
    > so insteand of using Subsurface i need ubsurface
    >
    > i saw somebody who use
    >
    > Code:
    > --------------------
    > Name: subsurfaceVersion: X
    > Release: 0
    > Summary: Open source divelog program
    > License: GPL-2.0
    > Group: Productivity/Networking/Web/Browsers
    > Url: https://hohndel.org/
    > Source0: %{name}-%{version}.tar.xz
    > BuildRoot: %{_tmppath}/%{name}-%{version}-build
    > --------------------
    >
    >
    > i don't know how to upload the needed file
    >
    > so i created a file_service (should be done i think by obs)
    >
    >
    > Code:
    > --------------------
    > <services> <service name="tar_scm">
    > <param name="url">git://git.hohndel.org/subsurface.git</param>
    > <param name="scm">git</param>
    > <param name="versionprefix">4.1git</param>
    > </service>
    > <service name="recompress">
    > <param name="file">*.tar</param>
    > <param name="compression">xz</param>
    > </service>
    > <service name="set_version"/>
    > </services>
    > --------------------
    >
    >
    > seem to download it
    >
    > but i got the same error
    >
    > Directory not found:
    > /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.i386/usr/share/doc/subsurface
    >
    > link to obs
    > https://build.opensuse.org/package/s...nm/subsurface#
    >
    >

    Look like directory handling call before of it's creation.
    ....
    [ 139s] Processing files: subsurface-4.1git.1399940810-8.1.x86_64
    [ 139s] error: Directory not found:
    /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.x86_64/usr/share/doc/subsurface
    ....
    [ 139s] + /usr/bin/mkdir -p
    /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.x86_64/usr/share/doc/packages/subsurface

    ....
    Try "%make_install" instead:
    "export INSTALL_ROOT=%{buildroot}
    make %{?_smp_mflags} install DESTDIR=%{buildroot}"

    or may be error in Makefile?


  5. #5
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    455

    Default Re: subsurface and build problem

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Because the %doc macro installs in /usr/share/doc/packages/subsurface
    and in your %files section you have /usr/share/doc/subsurface, remove
    this line and see how it goes.....

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

    get the same error
    www.laboiteaprog.com

  6. #6
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    455

    Default Re: subsurface and build problem

    Quote Originally Posted by svalx View Post
    16.05.2014 16:16, collinm wrote:
    >
    > it's seem like the name some importance
    > so insteand of using Subsurface i need ubsurface
    >
    > i saw somebody who use
    >
    > Code:
    > --------------------
    > Name: subsurfaceVersion: X
    > Release: 0
    > Summary: Open source divelog program
    > License: GPL-2.0
    > Group: Productivity/Networking/Web/Browsers
    > Url: https://hohndel.org/
    > Source0: %{name}-%{version}.tar.xz
    > BuildRoot: %{_tmppath}/%{name}-%{version}-build
    > --------------------
    >
    >
    > i don't know how to upload the needed file
    >
    > so i created a file_service (should be done i think by obs)
    >
    >
    > Code:
    > --------------------
    > <services> <service name="tar_scm">
    > <param name="url">git://git.hohndel.org/subsurface.git</param>
    > <param name="scm">git</param>
    > <param name="versionprefix">4.1git</param>
    > </service>
    > <service name="recompress">
    > <param name="file">*.tar</param>
    > <param name="compression">xz</param>
    > </service>
    > <service name="set_version"/>
    > </services>
    > --------------------
    >
    >
    > seem to download it
    >
    > but i got the same error
    >
    > Directory not found:
    > /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.i386/usr/share/doc/subsurface
    >
    > link to obs
    > https://build.opensuse.org/package/s...nm/subsurface#
    >
    >

    Look like directory handling call before of it's creation.
    ....
    [ 139s] Processing files: subsurface-4.1git.1399940810-8.1.x86_64
    [ 139s] error: Directory not found:
    /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.x86_64/usr/share/doc/subsurface
    ....
    [ 139s] + /usr/bin/mkdir -p
    /home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-8.1.x86_64/usr/share/doc/packages/subsurface

    ....
    Try "%make_install" instead:
    "export INSTALL_ROOT=%{buildroot}
    make %{?_smp_mflags} install DESTDIR=%{buildroot}"

    or may be error in Makefile?
    i get:

    Code:
     106s] + cd /home/abuild/rpmbuild/BUILD
    [  106s] + cd subsurface-4.1git.1399940810
    [  106s] + make install DESTDIR=/home/abuild/rpmbuild/BUILDROOT/subsurface-4.1git.1399940810-10.1.x86_64
    [  106s] test -d /home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/Documentation || mkdir -p /home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/Documentation 
    [  106s] make -C /home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/Documentation OUT=/home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/Documentation/ ENABLE_PLANNER=0 doc
    [  106s] make[1]: Entering directory `/home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/Documentation'
    [  106s] make[1]: Nothing to be done for `doc'.
    [  106s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/Documentation'
    [  106s] install -m 755 -p /home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/subsurface //usr/bin/
    [  106s] install: cannot create regular file '//usr/bin/subsurface': Permission denied
    [  106s] make: [install_target] Error 1 (ignored)
    [  106s] install -m 644 -p /home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/subsurface.desktop //usr/share/applications/
    [  106s] install: cannot create regular file '//usr/share/applications/subsurface.desktop': Permission denied
    [  106s] make: [install_desktop] Error 1 (ignored)
    [  106s] install -m 644 -p /home/abuild/rpmbuild/BUILD/subsurface-4.1git.1399940810/subsurface.1 //usr/share/man/man1/
    [  106s] install: cannot create regular file '//usr/share/man/man1/subsurface.1': Permission denied
    [  106s] make: [install_manpage] Error 1 (ignored)
    [  106s] mkdir: cannot create directory '//usr/share/subsurface': Permission denied
    [  106s] make: *** [install_doc] Error 1
    [  106s] error: Bad exit status from /var/tmp/rpm-tmp.hqSWxg (%install)
    [  106s] 
    [  106s] 
    [  106s] RPM build errors:
    [  106s]     Bad exit status from /var/tmp/rpm-tmp.hqSWxg (%install)
    [  109s] [   84.614096] SysRq : Power Off
    [  109s] [   84.617627] reboot: Power down
    www.laboiteaprog.com

  7. #7
    Join Date
    Jun 2008
    Location
    East of Podunk
    Posts
    32,919
    Blog Entries
    15

    Default Re: subsurface and build problem

    On Sat 17 May 2014 02:16:01 AM CDT, collinm wrote:


    malcolmlewis;2643608 Wrote:
    > Hi
    > Because the %doc macro installs in /usr/share/doc/packages/subsurface
    > and in your %files section you have /usr/share/doc/subsurface, remove
    > this line and see how it goes.....
    >
    > --
    > Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    > openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop
    > If you find this post helpful and are logged into the web interface,
    > please show your appreciation and click on the star below... Thanks!



    get the same error


    Hi
    I think you misunderstood which one to remove

    I branched and fixed it up so it builds, you need to add a
    subsurface.changes file...

    I see your doing RedHat stuff, we have macros for openSUSE, here is the
    spec file that works....
    http://paste.opensuse.org/c532c039

    You should also learn about osc and build locally, then you can just
    update to OBS once that you have something building and working, this
    also reduces the OBS build load....

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


Posting Permissions

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