Results 1 to 5 of 5

Thread: apt-build - how to make it works?

  1. #1
    Join Date
    Jan 2005
    Beans
    14

    apt-build - how to make it works?

    I've just apt-get'ed apt-build... On test run, I've decided to recompile links and mc - not so big, not so complicated... Ideal for testing purposes.

    All seems to be fine - source downloading, dependiences installing...

    In links, when it is time to run gcc, compiler is called in the broken manner: gcc treats options as a filename - of course "-pipe" file does not exist.

    When trying to apt-build mc, mc directory don't even appears in source dir.

    solved... partialy
    Ok, links part seems to be solved - default config file was broken - unneeded "" signs in "other options".

    It still ignores my march, mcpu and my optimization level...
    Last edited by Molot; April 16th, 2005 at 11:02 PM.

  2. #2
    Join Date
    Jan 2005
    Beans
    14

    Re: apt-build - how to make it works?

    Ok, maybe simplier question... Did anyone make apt-build works on Ubuntu?...

  3. #3
    Join Date
    Oct 2004
    Location
    New York City
    Beans
    102
    Distro
    Ubuntu

    Re: apt-build - how to make it works?

    I'm not sure about apt-build but I have been able to successfully rebuild debian packages using:
    Code:
    apt-get build-dep packagename
    apt-get source packagename
    cd packagename
    dpkg -rfakeroot -b
    That will basically download a source debian package and make sure you have all the dependencies required to build it, and then you use dpkg to actually build it in a fakeroot (make sure you have fakeroot installed).

    I've been able to successfully rebuild Debian unstable packages that aren't in Ubuntu repositories that way (like cegui and ogre) by adding the deb-src for the debian unstable repository to my sources.list and doing the above. So far I've only done it on amd64, but it works the same everywhere (I wanted amd64 packages, which is why I had to build from source).

    [Edit] Forgot to mention, you can add/change/remove whatever you want before you rebuild the package with dpkg. It's probably a good idea to update the changelog and info files in the debian folder (maybe set yourself as the maintainer of this version).
    Last edited by Daniel G. Taylor; April 18th, 2005 at 04:19 AM.
    We rarely notice freedom. What we notice is the lack of freedom, and I'm afraid by then it is too late.
    Be a good Ubuntu citizen - Report bugs || http://programmer-art.org

  4. #4
    Join Date
    Jan 2005
    Beans
    14

    Re: apt-build - how to make it works?

    Quote Originally Posted by Daniel G. Taylor
    I'm not sure about apt-build but I have been able to successfully rebuild debian packages using:
    Code:
    apt-get build-dep packagename
    apt-get source packagename
    cd packagename
    dpkg -rfakeroot -b
    That will basically download a source debian package and make sure you have all the dependencies required to build it, and then you use dpkg to actually build it in a fakeroot (make sure you have fakeroot installed).

    I've been able to successfully rebuild Debian unstable packages that aren't in Ubuntu repositories that way (like cegui and ogre) by adding the deb-src for the debian unstable repository to my sources.list and doing the above. So far I've only done it on amd64, but it works the same everywhere (I wanted amd64 packages, which is why I had to build from source).

    [Edit] Forgot to mention, you can add/change/remove whatever you want before you rebuild the package with dpkg. It's probably a good idea to update the changelog and info files in the debian folder (maybe set yourself as the maintainer of this version).
    I have fakeroot of course

    Way you wrote is good and workable.

    Apt-build has few additional nice things I need:
    - Removing unneeded packages previously automatically installed for the build dependiences
    - Keeping the repository and automaticaly adding newly compiled packages

    All this with only one command that download source & build-deps, compiles, builds package, adds it into repository and (if I want to) clearing system...

    If I'll use Your way (and now it looks like I have to), I'll be made to write my own program for all "additional" tasks that apt-build should do. As all you know, it's not nice :]

    Anyway, thanks... You were trurly helpfull.

  5. #5
    Join Date
    Feb 2006
    Location
    /home
    Beans
    237

    Re: apt-build - how to make it works?

    Does anyone know of a more insightful readme for this ? When I am wanting to remove the references to kernel from the /etc/apt/apt-build.list file am I supposed to comment the entries out or delete in its (the entry, not the file) entirety?

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
  •