Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 53

Thread: Building packages on a clean-room environmend

  1. #21
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Building packages on a clean-room environment

    Quote Originally Posted by anodizer View Post
    Banshee, again.
    Alright, is this a custom package or official Ubuntu package?

    You can try the following:
    Code:
    #nice script to use inside temporary testing environment
    cp /usr/lib/pbuilder/pbuilder-satisfydepends /path/to/pbuilder/hook.d
    cp -R /path/to/banshee-x.xx.xx /tmp
    sudo pbuilder login --bindmounts /tmp/banshee-x.xx.xx
    
    #on pbuilder environment
    cd /tmp/banshee-x.xx.xx
    #automatically install Build-Depends on debian/control
    /tmp/hook.d/pbuilder-satisfydepends
    debian/rules build
    
    #now, when build fails, install additional libxml-parser-perl 
    apt-get install libxml-parser-perl
    debian/rules clean
    debian/rules build
    
    #if build succeeds, exit the environment, otherwise keep finding that satisfies the condition
    When you've found the missing package(s), add it to debian/control and then rebuild source package
    Code:
    dpkg-source -b banshee-x.xx.xx
    And build with pbuilder again.
    Building on Ubuntu using [pbuilder]
    Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]

  2. #22
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Building packages on a clean-room environment

    Quote Originally Posted by anodizer View Post
    Edit: I added the file in the control file and now something else is missing. Isn't there any better way to automatically calculate dependencies than dh_make?
    dh_make doesn't calculate dependencies for you, it just applies default debinization templates to source directory.
    To find out the correct build-depends is a matter of trial and error.

    Why not use existing banshee packaging information? It should have most of the build depends already figured.
    Building on Ubuntu using [pbuilder]
    Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]

  3. #23
    Join Date
    Feb 2006
    Location
    Heraklion, Greece
    Beans
    115
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Building packages on a clean-room environment

    Hey mlind, how can I add a Source repository?

    Code:
    E: You must put some 'source' URIs in your sources.list
    War is Peace. Freedom is Slavery. 2+2=5.

  4. #24
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Building packages on a clean-room environment

    Quote Originally Posted by anodizer View Post
    Hey mlind, how can I add a Source repository?

    Code:
    E: You must put some 'source' URIs in your sources.list
    You shouldn't need to use source repositories in pbuilder environment, but you can denfine one in several ways if needed. In /etc/apt/sources.list while doing login, using a hook (like F70results does) or using .pbuilderrc and invoking pbuilder with --override-config.

    I'm interested why do you need a source repository in pbuilder environment, or do you just mean a source repository in general?
    Building on Ubuntu using [pbuilder]
    Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]

  5. #25
    Join Date
    Feb 2006
    Location
    Heraklion, Greece
    Beans
    115
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Building packages on a clean-room environment

    I'm trying to "apt-get build-dep xxx"
    War is Peace. Freedom is Slavery. 2+2=5.

  6. #26
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Building packages on a clean-room environment

    Quote Originally Posted by anodizer View Post
    I'm trying to "apt-get build-dep xxx"
    Then just add source repository locations to /etc/apt/sources.list and update package lists. apt-get build-dep will cause a mess though..
    Building on Ubuntu using [pbuilder]
    Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]

  7. #27
    Join Date
    Feb 2006
    Location
    Heraklion, Greece
    Beans
    115
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Building packages on a clean-room environment

    I managed to build it at last. With some problems with icons though, it sure is tough to build proper debian packages.

    Btw, thanks for the help mlind.
    War is Peace. Freedom is Slavery. 2+2=5.

  8. #28
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Building packages on a clean-room environment

    Quote Originally Posted by anodizer View Post
    I managed to build it at last. With some problems with icons though, it sure is tough to build proper debian packages.

    Btw, thanks for the help mlind.
    Yeah, at least if you have to do it from scratch. A lot of software is already packaged though, so you can use it when building newer upsteam version.
    Building on Ubuntu using [pbuilder]
    Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]

  9. #29
    Join Date
    Nov 2006
    Location
    Luckytown , USA
    Beans
    Hidden!

    Re: Building packages on a clean-room environmend

    Wesley here ;

    Greetings ! Very interested in trying this , correctly assuming this applies to Feisty ?

    Great 'tut ,would like to try this out ! Thanks again for your timely response .
    1 Corinthians 10 : 13

    8)

  10. #30
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: Building packages on a clean-room environmend

    Quote Originally Posted by wesley_of_course View Post
    Wesley here ;

    Greetings ! Very interested in trying this , correctly assuming this applies to Feisty ?

    Great 'tut ,would like to try this out ! Thanks again for your timely response .
    Yes, this tut should apply all Debian/Ubuntu releases which feature pbuilder. This means all Ubuntu distributions, from Warty to Feisty.
    Building on Ubuntu using [pbuilder]
    Other resources [Upgrading from CVS, Gaim2, Anjuta, Rhythmbox]

Page 3 of 6 FirstFirst 12345 ... 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
  •