Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #228466

Re: Building my own packages

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: Building my own packages
Date 2020-11-04 22:30 +0100
Message-ID <B7yvT-43j-1@gated-at.bofh.it> (permalink)
References <B7s79-8u0-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Nov 04, 2020 at 09:32:31PM +0700, Victor Sudakov wrote:
> Dear Colleagues,
> 
> As a person with the FreeBSD background, I'm used to building my own
> packages with the exact build options I need (those include exim, nginx,
> samba, clamav and many others). FreeBSD has a good infrastructure for
> this (ports tree, poudriere et al.)
> 
> Where can I learn to do a similar thing for Debian? I'd like to have my
> own package repository which:

If you're the kind of person who needs to get dirty fingers
while learning, pick a Debian package you care about (not a
very complex one) and download the source. Make a work
directory, cd there and download a source package (I'm using
hello, because it's small)

  tomas@trotzki:~$ mkdir work
  tomas@trotzki:~$ cd work
  tomas@trotzki:~/work$ apt-get source hello
  Reading package lists... Done
  Need to get 733 kB of source archives.
  [...]

Apt-get source will download the source package, unpack it,
and apply the Debian-specific patches. The result is now in
work/hello-2.10 (for buster). Look around; Debian specific
stuff (build machinery, patches, metadata) are in its
subdir debian.

You can install whatever is needed to build your package
(the so-called "build dependencies") by doing

  sudo apt-get build-dep hello

Then (in the package dir) you can do

  dpkg-buildpackage -uc -us

and watch the buildery do its magic :-)

There are several directions you can branch out from there.
Having the manual (pointed at by other nice folks in this
thread) handy is highly recommended. One very interesting
is how to decouple your build environment from your machine
environment (including building for other Debian versions,
cross building for other architectures, etc -> pbuilder,
sbuild, and my favourite, schroot). Or packaging something
new -> Debian New Maintainer's Guide) etc.

Enjoy
 - t

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-04 15:40 +0100
  Re: Building my own packages Reco <recoverym4n@enotuniq.net> - 2020-11-04 16:40 +0100
    Re: Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-05 05:50 +0100
  Re: Building my own packages songbird <songbird@anthive.com> - 2020-11-04 17:50 +0100
    Re: Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-05 06:00 +0100
      Re: Building my own packages Linux-Fan <Ma_Sys.ma@web.de> - 2020-11-05 23:50 +0100
        Re: Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-11 06:20 +0100
          Re: Building my own packages Andrei POPESCU <andreimpopescu@gmail.com> - 2020-11-11 09:20 +0100
      Re: Building my own packages deloptes <deloptes@gmail.com> - 2020-11-06 08:40 +0100
        Re: Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-11 06:30 +0100
          Re: Building my own packages deloptes <deloptes@gmail.com> - 2020-11-11 08:00 +0100
          Re: Building my own packages Andrei POPESCU <andreimpopescu@gmail.com> - 2020-11-11 09:30 +0100
          Re: Building my own packages <tomas@tuxteam.de> - 2020-11-11 09:30 +0100
  Re: Building my own packages "Thomas Schmitt" <scdbackup@gmx.net> - 2020-11-04 19:00 +0100
    Re: Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-05 06:10 +0100
      Re: Building my own packages "Thomas Schmitt" <scdbackup@gmx.net> - 2020-11-05 08:30 +0100
  Re: Building my own packages <tomas@tuxteam.de> - 2020-11-04 22:30 +0100
    Re: Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-05 06:40 +0100
      Re: Building my own packages <tomas@tuxteam.de> - 2020-11-05 09:30 +0100
        Re: Building my own packages Victor Sudakov <vas@sibptus.ru> - 2020-11-05 17:00 +0100
          Re: Building my own packages <tomas@tuxteam.de> - 2020-11-05 17:20 +0100
            Re: Building my own packages Stefan Monnier <monnier@iro.umontreal.ca> - 2020-11-05 18:20 +0100
              Re: Building my own packages <tomas@tuxteam.de> - 2020-11-05 19:30 +0100
  Re: Building my own packages Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2020-11-05 11:20 +0100

csiph-web