Page 9 of 29 FirstFirst ... 789101119 ... LastLast
Results 81 to 90 of 285

Thread: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

  1. #81
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    I am trying to backport ircd-hybrid, which works fine using simply

    $ prevu ircd-hybrid

    However I would like to enable SSL, too, so I tried the following:

    $ USE_OPENSSL="1" prevu ircd-hybrid

    This does not work though, giving the following error:

    dpkg-checkbuilddeps
    dpkg-checkbuilddeps: Unmet build dependencies: libssl-dev
    make: *** [configure-stamp] Error 1

    I have libssl-dev installed on the actual machine so I assume that this is a problem within the build environment. No version numbers are mentioned so I assume that any version would do.

    Is it possible to tell prevu to install the dependency inside the build environment? Or is there another problem that I have missed?

    Thanks!

  2. #82
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    To tell a build dependency to install, you must unpack the source archive for your package, edit debian/control, and add the name of the package to the Build-Depends: list.
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  3. #83
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    To tell a build dependency to install, you must unpack the source archive for your package, edit debian/control, and add the name of the package to the Build-Depends: list.
    Thanks for this, that makes it build fine. I used apt-get source ircd-hybrid, edited debian/control then ran USE_OPENSSL="1" prevu in the build directory. The compile goes fine, but then this error occurs:

    Code:
    dpkg-deb: building package `ircd-hybrid' in `../ircd-hybrid_7.2.2.dfsg.1-2~6.06prevu1.ssl1_i386.deb'.
     dpkg-genchanges
    dpkg-genchanges: error: cannot open .dsc file ../ircd-hybrid_7.2.2.dfsg.1-2~6.06prevu1.ssl1.dsc: No such file or directory
    Is there anything that can be done to fix this?

    Thanks.

  4. #84
    Join Date
    Apr 2005
    Beans
    1,395

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    I tried to backport libnfnetlink from Feisty but it failed to build a debian package:
    Code:
    mkdir /var/cache/prevu/src/20898/libnfnetlink-0.0.16/debian/tmp/usr/lib/pkgconfig
     /usr/bin/install -c -m 644 libnfnetlink.pc /var/cache/prevu/src/20898/libnfnetlink-0.0.16/debian/tmp/usr/lib/pkgconfig/libnfnetlink.pc
    make[3]: Leaving directory `/var/cache/prevu/src/20898/libnfnetlink-0.0.16'
    make[2]: Leaving directory `/var/cache/prevu/src/20898/libnfnetlink-0.0.16'
    make[1]: Leaving directory `/var/cache/prevu/src/20898/libnfnetlink-0.0.16'
    touch install-stamp
    dh_testdir -i
    dh_testdir: I have no package to build
    make: *** [binary-indep] Error 1
    Copying back the cached apt archive contents
     -> unmounting dev/pts filesystem
     -> unmounting proc filesystem
     -> unmounting /var/cache/prevu/src/20898 filesystem
     -> unmounting /var/cache/prevu/dapper-debs filesystem
     -> cleaning the build env
        -> removing directory /var/cache/prevu/builds/20976 and its subdirectories
    Traceback (most recent call last):
      File "/usr/bin/prevu", line 146, in ?
        BackportFromAPT(sys.argv[1],DIST).backport()
      File "/usr/bin/prevu", line 86, in backport
        self.do_compile()
      File "/usr/bin/prevu", line 67, in do_compile
        raise ValueError("Build failed.")
    ValueError: Build failed.
    Any idea, why it fails?
    ASUS Zenbook 14 Ubuntu 22.10

  5. #85
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    If us people out in user land are able to build successful backported packages, would it be possible to upload them to a central location somewhere so others could get access to them?

    It seems a bit wasteful to have other people going through the same build process that someone else has already done.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  6. #86
    Join Date
    Apr 2005
    Beans
    1,395

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    someone earlier in the thread mentioned having a repository...
    ASUS Zenbook 14 Ubuntu 22.10

  7. #87
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    I personally don't recommend starting a repository of prevu'ed packages. Instead, if a package properly prevu builds, submit it as a backport request.

    The trouble with repositories, is you get far far more people who will install packages from it in a knee-jerk reaction. The Backports team tries hard to make sure its packages are safe enough for the general user to install. If a package is not fit as a Backports package, then it's not fit for the general user to use, and it's a better idea for users to build it themselves.


    With the majority of PC's, building a package is not that intensive a process.
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  8. #88
    Join Date
    Apr 2006
    Location
    Finland
    Beans
    650
    Distro
    The Feisty Fawn Testing

    Question Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    I get this error when trying to prevu libhal-dev, is there an easy solution for this? Thanks

    Im on edgy amd64 using prevu 0.4.1-0ubuntu1

    HTML Code:
    xopher@xopher:~$ sudo prevu libhal-dev
    I: Building against currently running distro: edgy
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Need to get 1813kB of source archives.
    Get:1 http://archive.ubuntu.com feisty/main hal 0.5.8.1-3ubuntu5 (dsc) [984B]
    Get:2 http://archive.ubuntu.com feisty/main hal 0.5.8.1-3ubuntu5 (tar) [1749kB]
    Get:3 http://archive.ubuntu.com feisty/main hal 0.5.8.1-3ubuntu5 (diff) [62.6kB]
    Fetched 1813kB in 15s (120kB/s)                                                
    gpg: WARNING: unsafe ownership on configuration file `/home/xopher/.gnupg/gpg.conf'
    gpg: Signature made Thu 23 Nov 2006 12:57:53 PM EET using DSA key ID C978C8AE
    gpg: Can't check signature: public key not found
    dpkg-source: extracting hal in hal-0.5.8.1
    dpkg-source: unpacking hal_0.5.8.1.orig.tar.gz
    dpkg-source: applying ./hal_0.5.8.1-3ubuntu5.diff.gz
    cat: write error: Broken pipe
    cat: write error: Broken pipe
    cat: write error: Broken pipe
    cat: write error: Broken pipe
    cat: write error: Broken pipe
    dch warning: new version (0.5.8.1-3ubuntu5~6.10prevu1) is less than
    the current version number (0.5.8.1-3ubuntu5).
    Building the build Environment
     -> extracting base tarball [/var/cache/prevu/edgy.tgz]
     -> creating local configuration
     -> copying local configuration
     -> mounting /proc filesystem
     -> mounting /dev/pts filesystem
    -> Mounting /home/xopher/pbuilder/result
    -> Mounting /var/cache/prevu/edgy-debs
    -> Mounting /var/cache/prevu/src/2048
     -> policy-rc.d already exists
    Obtaining the cached apt archive contents
    W: no hooks of type F found -- ignoring
    Using: : pdebuild-internal,v 1.12 2006/06/05 11:39:04 dancer Exp $
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
      debootstrap wget
    Recommended packages:
      fakeroot devscripts
    The following NEW packages will be installed:
      debootstrap pbuilder wget
    0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
    Need to get 49.8kB/371kB of archives.
    After unpacking 2757kB of additional disk space will be used.
    Get:1 http://archive.ubuntu.com edgy-backports/main debootstrap 0.3.3.0ubuntu8~edgy1 [49.8kB]
    Fetched 49.8kB in 6s (7566B/s)                                                 
    Selecting previously deselected package wget.
    (Reading database ... 11893 files and directories currently installed.)
    Unpacking wget (from .../wget_1.10.2-2ubuntu1_amd64.deb) ...
    Selecting previously deselected package debootstrap.
    Unpacking debootstrap (from .../debootstrap_0.3.3.0ubuntu8~edgy1_all.deb) ...
    Selecting previously deselected package pbuilder.
    Unpacking pbuilder (from .../pbuilder_0.155ubuntu3_all.deb) ...
    Setting up wget (1.10.2-2ubuntu1) ...
    
    Setting up debootstrap (0.3.3.0ubuntu8~edgy1) ...
    Setting up pbuilder (0.155ubuntu3) ...
    Setting DEBBUILDOPTS=
     -> Attempting to parse the build-deps : pbuilder-satisfydepends,v 1.28 2006/05/30 23:45:45 dancer Exp $
     -> Considering  debhelper (>= 5.0.37.2)
       -> Trying debhelper
     -> Considering  cdbs
       -> Trying cdbs
     -> Considering  python-support (>= 0.5.3)
       -> Trying python-support
     -> Considering  python-dbus
       -> Trying python-dbus
     -> Considering  libdbus-glib-1-dev (>= 0.60)
       -> Trying libdbus-glib-1-dev
     -> Considering  libglib2.0-dev
       -> Trying libglib2.0-dev
     -> Considering  libsysfs-dev
       -> Trying libsysfs-dev
     -> Considering  libexpat1-dev
       -> Trying libexpat1-dev
     -> Considering  libpopt-dev
       -> Trying libpopt-dev
     -> Considering  pkg-config
       -> Trying pkg-config
     -> Considering  pciutils
       -> Trying pciutils
     -> Considering  libcap-dev
       -> Trying libcap-dev
     -> Considering  doxygen
       -> Trying doxygen
     -> Considering  intltool (>= 0.22)
       -> Trying intltool
     -> Considering  libusb-dev
       -> Trying libusb-dev
     -> Considering  libvolume-id-dev
       -> Trying libvolume-id-dev
           -> Cannot install libvolume-id-dev; apt errors follow:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    pciutils is already the newest version.
    E: Couldn't find package libvolume-id-dev
    W: Unable to locate package libvolume-id-dev
    E: Could not satisfy build-dependency.
    Copying back the cached apt archive contents
     -> new cache content debootstrap_0.3.3.0ubuntu8~edgy1_all.deb added
     -> unmounting dev/pts filesystem
     -> unmounting proc filesystem
     -> unmounting /home/xopher/pbuilder/result filesystem
     -> unmounting /var/cache/prevu/edgy-debs filesystem
     -> unmounting /var/cache/prevu/src/2048 filesystem
     -> cleaning the build env 
        -> removing directory /var/cache/prevu/builds/2133 and its subdirectories
    Traceback (most recent call last):
      File "/usr/bin/prevu", line 146, in ?
        BackportFromAPT(sys.argv[1],DIST).backport()
      File "/usr/bin/prevu", line 86, in backport
        self.do_compile()
      File "/usr/bin/prevu", line 67, in do_compile
        raise ValueError("Build failed.")
    ValueError: Build failed.
    Edit:

    Oh yeah, this is probably my problem:

    Code:
       -> Trying libvolume-id-dev
           -> Cannot install libvolume-id-dev; apt errors follow:
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    pciutils is already the newest version.
    E: Couldn't find package libvolume-id-dev
    W: Unable to locate package libvolume-id-dev
    E: Could not satisfy build-dependency.
    Does this mean I need to prevu libvolume-id-dev first?

    Edit2: I prevu'd libvolume-id-dev , it builds fine, but still ends with an error, any clues on this? :

    Code:
    .
    .
    .
    dh_builddeb
    dpkg-deb: building package `udev' in `../udev_103-0ubuntu4~6.10prevu1_amd64.deb'.
    tar: -: file name read contains nul character
    dpkg-deb: building package `udev-udeb' in `../udev-udeb_103-0ubuntu4~6.10prevu1_amd64.udeb'.
    tar: -: file name read contains nul character
    dpkg-deb: building package `volumeid' in `../volumeid_103-0ubuntu4~6.10prevu1_amd64.deb'.
    tar: -: file name read contains nul character
    dpkg-deb: building package `libvolume-id0' in `../libvolume-id0_103-0ubuntu4~6.10prevu1_amd64.deb'.
    tar: -: file name read contains nul character
    dpkg-deb: building package `libvolume-id-dev' in `../libvolume-id-dev_103-0ubuntu4~6.10prevu1_amd64.deb'.
    tar: -: file name read contains nul character
     dpkg-genchanges
    dpkg-genchanges: not including original source code in upload
    dpkg-buildpackage: binary and diff upload (original source NOT included)
    Copying back the cached apt archive contents
     -> unmounting dev/pts filesystem
     -> unmounting proc filesystem
     -> unmounting /home/xopher/pbuilder/result filesystem
     -> unmounting /var/cache/prevu/edgy-debs filesystem
     -> unmounting /var/cache/prevu/src/17519 filesystem
     -> cleaning the build env 
        -> removing directory /var/cache/prevu/builds/17603 and its subdirectories
    debsign: Can't find or can't read changes file /home/xopher/pbuilder/result/udev_103-0ubuntu4~6.10prevu1_amd64.changes!
    Traceback (most recent call last):
      File "/usr/bin/prevu", line 146, in ?
        BackportFromAPT(sys.argv[1],DIST).backport()
      File "/usr/bin/prevu", line 86, in backport
        self.do_compile()
      File "/usr/bin/prevu", line 67, in do_compile
        raise ValueError("Build failed.")
    ValueError: Build failed.
    Edit3: Couldnt get prevu to work so I built these in pbuilder, built just fine.

    Is it safe to assume they work? I mean udev isnt something Id like to break.
    Last edited by xopher; November 26th, 2006 at 08:49 PM.

  9. #89
    Join Date
    Oct 2004
    Location
    Cupertino, CA
    Beans
    5,092
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    It is not at all safe to assume that they work

    udev versions need to match up with the kernel's udev counterpart's version in terms of compatibility... if not, you'll end up with an unbootable system and will be digging for your LiveCD's

    Try at your own risk


    Code:
    debsign: Can't find or can't read changes file /home/xopher/pbuilder/result/udev_103-0ubuntu4~6.10prevu1_amd64.changes!
    Fascinating... I'll have to investigate that error.
    Quote Originally Posted by tuxradar
    Linux's audio architecture is more like the layers of the Earth's crust than the network model, with lower levels occasionally erupting on to the surface, causing confusion and distress, and upper layers moving to displace the underlying technology that was originally hidden

  10. #90
    Join Date
    Apr 2006
    Location
    Finland
    Beans
    650
    Distro
    The Feisty Fawn Testing

    Re: Build (backport) an newer Ubuntu package to run on an older Ubuntu version

    Yeah, I thought it wouldn't be the best idea. Oh well - We found a solution with the developer of bmpx, so it will still work with libhal 0.5.7.1 - no need for the update. Thanks a lot anyway!

Page 9 of 29 FirstFirst ... 789101119 ... LastLast

Bookmarks

Posting Permissions

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