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


Groups > linux.debian.user > #228554

Re: Building my own packages

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: Building my own packages
Date 2020-11-11 09:30 +0100
Message-ID <B9TFT-WE-1@gated-at.bofh.it> (permalink)
References <B7s79-8u0-31@gated-at.bofh.it> <B7u8V-1hx-1@gated-at.bofh.it> <B7Fxn-8il-3@gated-at.bofh.it> <B84vM-7vF-9@gated-at.bofh.it> <B9QRH-7I4-3@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 Mi, 11 nov 20, 12:27:48, Victor Sudakov wrote:
> deloptes wrote:
> > 
> > > The problem is I don't need a ton of information :-) I need to hear from
> > > someone who has already done that for themselves: "I use such and such
> > > tools, and publish my repo this way..."
> > 
> > Well, I use debuild to build and reprepro to maintain a local repository of
> > former KDE3 now called TDE.
> 
> I've already tried reprepro and it seems to do its job well in publishing
> the packages I feed to it. Now it's building time.
> 
> > I do not build automatically but from time to time I pull changes and build
> > the packages. Because there are dependencies it depends which package
> > changes this affects other packages. For that reason I created a Makefile
> > (actually few of them that complement each other).
> > You have to rebuild all dependencies if you rebuild one package. You simply
> > can not just build and replace a package in production environment without
> > testing it, making a backup or whatever.
> 
> There lies the point which I don't completely understand yet. If I want
> to build a php or exim4 package with my own build options, to what
> extent should I also build their dependencies?

You only need to build their dependencies if you make changes to them.

> And how do I name those
> packages so that they coexist with the default Debian ones?

Any change in the package name would do.

> OTOH, sometimes I would want my package (e.g. tcpdump with my patch) to
> override Debian's one.

In this case you make your package have a higher version. For most cases 
it is sufficient to change the package version to something like (using 
current tcpdump from buster as example):

    4.9.3-1~deb10u1+patched

    (use whatever you like after the +)

This way APT will prioritise your package until a ~deb10u2 (e.g. in case 
of a security update) is published. You could use that as a trigger for 
your build system to reapply your patch and publish the updated package 
in your own repository.

> > I guess the answer to your question is that there is no such out of the box
> > tool, but you need something specific to your setup.
> 
> Pity. I wonder what those people and companies use who publish their own
> repos/products for Debian (Hashicorp, PostgreSQL, Zabbix etc).

The use case is significantly different as all those upstreams are 
typically publishing packages for several distros.
 
> I hoped to download Debian's source packages (already including all
> Debian-specific stuff) and just rebuild them with minimal
> changes/patches.

That's quite easy to do with (from memory, it's been a while since I did 
this):

    apt source <binary-package>

    apt build-dep <binary-package>
    
    # apply patch, change version, etc.
    
    dpkg-buildpackage <whatever>
    
    dpkg -i <rebuild-package.deb>


Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

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