Professional Web Applications Themes

Source Builds - Debian

Tom Allison <tallisontacocat.net> writes: > Is there a link that describes how to go about building packages from > the deb-src files and how I might identify packages for source build > only? Modify the source as you feel appropriate, add a new entry to the top of debian/changelog, and run 'debuild' out of the devscripts package. Read doentation on [url]http://www.debian.org/devel/[/url]. > An example might be to change XFree and my Window Manager to > compiled packages to take advantage of the chipset graphics > instructions. I don't think recompiling either of these will have any useful effects for you. ...

  1. #1

    Default Re: Source Builds

    Tom Allison <tallisontacocat.net> writes:
    > Is there a link that describes how to go about building packages from
    > the deb-src files and how I might identify packages for source build
    > only?
    Modify the source as you feel appropriate, add a new entry to the top
    of debian/changelog, and run 'debuild' out of the devscripts package.
    Read doentation on [url]http://www.debian.org/devel/[/url].
    > An example might be to change XFree and my Window Manager to
    > compiled packages to take advantage of the chipset graphics
    > instructions.
    I don't think recompiling either of these will have any useful effects
    for you. Your window manager doesn't communicate directly with the
    hardware at all; it even isn't necessarily running on the same machine
    as the graphics card. While the X server does communicate with the
    hardware, how it does so is written into the source code; the C
    compiler doesn't know anything about your graphics hardware. So if
    you had a custom driver for a strange graphics card, this might be a
    useful approach, but otherwise, this is pretty much wasted effort.

    ObGentoo: except in limited cases involving computationally intensive
    processing (linear algebra, crypto), recompilation doesn't seem to
    actually give much in terms of a performance boost. Where it does
    make a difference, Debian supplies processor-specific libraries and
    binaries. If you have actual numbers demonstrating otherwise, please
    share. :-)

    --
    David Maze [email]dmazedebian.org[/email] [url]http://people.debian.org/~dmaze/[/url]
    "Theoretical politics is interesting. Politicking should be illegal."
    -- Abra Mitchell


    --
    To UNSUBSCRIBE, email to [email]debian-user-requestlists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmasterlists.debian.org[/email]
    David Z Maze Guest

  2. #2

    Default Re: Source Builds

    David Z Maze wrote: 
    >
    >
    > Modify the source as you feel appropriate, add a new entry to the top
    > of debian/changelog, and run 'debuild' out of the devscripts package.
    > Read doentation on http://www.debian.org/devel/.
    >[/ref]

    Maybe I should ask a more primitive question.

    What is 'deb-src' for?

    I thought it was to provide the source code of a deb package and allow the
    end user to subsequently build a CPU specific or slightly modified
    (configuration parameters) .deb file for installation onto their own Debian
    installation.


    --
    "His eyes were cold. As cold as the bitter winter snow that was falling
    outside. Yes, cold and therefore difficult to chew..."


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Tom Guest

  3. #3

    Default Re: Source Builds

    On Wed, Aug 06, 2003 at 07:43:15AM -0400, Tom Allison wrote: 


    I am not aware to such a link. That of course doesn't mean that there
    is not any.

     


    You might start with the Build fields of the debian/control file.
    However those fields are likely to mention only immediate dependencies,
    not packages that are dependencies for those that are mentioned. In
    addition, there are the build-essential packages that are assumed to be
    available. As such, they don't need to be mentioned in the Build fields,
    even if they are first level dependencies. Yet I believe that there is
    an apt-build utility which target your question. It could be that it
    also has a --simulation flag. However I have only heard about
    apt-build, never used it myself. It could be that I even don't remember
    correctly its name.
    In case you have good network access and you are not tight with disk
    space you might look at pbuilder.
    Hand tools for building debs from source is dpkg-buildpackage and
    friends. The devscripts automates the dpkg-buildpackage process but
    messing with the build dependencies is not in their jurisdiction.

     

    --

    Shaul Karl, shaul actcom . net . il


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Shaul Guest

  4. #4

    Default Re: Source Builds

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On Wed, Aug 06, 2003 at 07:43:15AM -0400, Tom Allison wrote: 

    Yes. This message.

    apt-get -b build-dep <package> && apt-get -b source <package> && cd ..
    Go get some coffee, install the resulting .debs when you get back if
    it succeeded.

    - --
    .''`. Paul Johnson <ca>
    : :' : proud Debian admin and user
    `. `'`
    `- Debian - when you have better things to do than fix a system
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/McOmsClmdIs2Ki8RAozJAJ93Cqbq9gEUJifp/grRuttfiuMfpgCffXBJ
    Q07Z3wy4KkvANt70AMJ6PsE=
    =rWmA
    -----END PGP SIGNATURE-----


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Paul Guest

  5. #5

    Default Re: Source Builds

    On Wed, Aug 06, 2003 at 09:44:10PM -0400, Tom Allison wrote: 
    > >
    > >
    > >Modify the source as you feel appropriate, add a new entry to the top
    > >of debian/changelog, and run 'debuild' out of the devscripts package.
    > >Read doentation on http://www.debian.org/devel/.
    > >[/ref]
    >
    > Maybe I should ask a more primitive question.
    >
    > What is 'deb-src' for?
    >
    > I thought it was to provide the source code of a deb package and allow the
    > end user to subsequently build a CPU specific or slightly modified
    > (configuration parameters) .deb file for installation onto their own Debian
    > installation.
    >[/ref]


    That is one reason for deb-src. Others might be to comply with the
    license which requires the distributer to let the user have the source,
    to help modifications and further development of the software and so on.
    Still, if one wants to build a deb one way is to follow what was written
    above about the modification of the source. As it is, the debian source
    packages usually don't have out of the box facilities to help the end
    user build an optimized package for his machine. A user that want to use
    the source for this end is welcomed but he will have to know what he is
    doing.
    --

    Shaul Karl, shaul actcom . net . il


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Shaul Guest

  6. #6

    Default Re: Source Builds

    On Thu, Aug 07, 2003 at 07:04:59AM +0300, Shaul Karl wrote: 
    >
    > That is one reason for deb-src. Others might be to comply with the
    > license which requires the distributer to let the user have the source,
    > to help modifications and further development of the software and so on.[/ref]

    And another is because we actually *want* to be able to supply sources,
    even if the licensing doesn't require it.

    Also, packages need to be built for all Debian architectures, for which
    source packages are necessary.

    --
    Colin Watson [org.uk]


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Colin Guest

Similar Threads

  1. AdvancedDataGrid : nightly builds available?
    By tata668@gmail.com in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: May 7th, 08:36 AM
  2. How many more builds?
    By Travis King in forum Windows Vista
    Replies: 6
    Last Post: March 12th, 08:07 PM
  3. Keychain access and new builds
    By Lorenzo Thurman in forum Mac Programming
    Replies: 2
    Last Post: August 24th, 06:26 AM
  4. [PHP-DEV] Support for C++ extension in UNIX builds
    By Jay Smith in forum PHP Development
    Replies: 0
    Last Post: August 22nd, 08:37 PM
  5. [PHP-DEV] Support for C++ extension in UNIX builds
    By Mark Spruiell in forum PHP Development
    Replies: 0
    Last Post: August 22nd, 08:29 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139