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


Groups > linux.debian.user > #242517

Re: Apt pinning.

From The Wanderer <wanderer@fastmail.fm>
Newsgroups linux.debian.user
Subject Re: Apt pinning.
Date 2021-11-29 17:30 +0100
Message-ID <DoRHr-2Wj-13@gated-at.bofh.it> (permalink)
References (2 earlier) <Dobfb-2HR-5@gated-at.bofh.it> <DokBQ-8mD-5@gated-at.bofh.it> <DomDE-1av-7@gated-at.bofh.it> <DoGVI-4KJ-7@gated-at.bofh.it> <DoRo5-2Q4-1@gated-at.bofh.it>
Organization This space intentionally left blank.

Show all headers | View raw


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

On 2021-11-29 at 11:08, Tim Woodall wrote:

> On Sun, 28 Nov 2021, David Wright wrote:
> 
>> I envisaged that what you wanted was:
>>
>> Debian ver.  Task       Your ver.    Installed (highest) ver.
>> 1.0                                  1.0
>> 1.0           ?                      1.0
>> 1.0          patch                   1.0
>> 1.0             ?       5:1.0        5:1.0
>> 2.0                                  5:1.0
>> 2.0           ?                      5:1.0
>> 2.0          patch                   5:1.0
>> 2.0             ?       5:2.0        5:2.0
>> 3.0                                  5:2.0
>>
>> IOW you patch a new version to your specifications at leisure,
>> and it will be automatically installed when made available.
>> New Debian releases will be ignored while they are unpatched.
>>
>> If you track the Debian column, and an automatic patch is applied
>> successfully and made available, then the process could be self-
>> sustaining.
>>
>> As I don't understand "current", I'm not sure what your -epsilon
>> is for. Likewise, I don't understand whether "return to mainline"
>> means abandon your versions, or just revisit, say, 3.0 above to
>> use your automated patch or come up with a new one.
> 
> The problem comes, for example, where I've backported.
> 
> For make I wanted v4.3 so I built the make from bullseye on buster as
> make/oldstable,now 4.3-4.1+tjw10r1 amd64 [installed,automatic]
> 
> And for dump there was a fix that was never added to buster so I have
> dump/oldstable,now 0.4b46-8+tjw10r1
> 
> I've forced a downgrade apt-get install dump=0.4b46-8 which is no
> problem, I just have to remember to do it. But I'd prefer to build that
> feature into my local repo as/when I create these packages in the
> future.

Is there a reason you're using '+' as your separator?

I think this looks like exactly the sort of scenario which '~' is
intended for.

$ dpkg --compare-versions 0.4b46-8+tjw10r1 lt 0.4b46-8 && echo "0.4b46-8
is newer" || echo "0.4b46-8 is not newer"
0.4b46-8 is not newer

$ dpkg --compare-versions 0.4b46-8~tjw10r1 lt 0.4b46-8 && echo "0.4b46-8
is newer" || echo "0.4b46-8 is not newer"
0.4b46-8 is newer

As I understand matters, a version "foo~" will always compare as lower
than a version "foo", and this is specifically to make it possible to do
fancy things like what you're apparently aiming for here.

That won't help you with your current set of local packages - but if you
switch to that for any ones you build in the future, it might give you a
path to the end state you're hoping for.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

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


Thread

Apt pinning. Tim Woodall <debianuser@woodall.me.uk> - 2021-11-27 12:00 +0100
  Re: Apt pinning. Dan Ritter <dsr@randomstring.org> - 2021-11-27 14:10 +0100
    Re: Apt pinning. Tim Woodall <debianuser@woodall.me.uk> - 2021-11-27 20:10 +0100
      Re: Apt pinning. David Wright <deblis@lionunicorn.co.uk> - 2021-11-28 06:10 +0100
        Re: Apt pinning. Tim Woodall <debianuser@woodall.me.uk> - 2021-11-28 08:20 +0100
          Re: Apt pinning. David Wright <deblis@lionunicorn.co.uk> - 2021-11-29 06:00 +0100
            Re: Apt pinning. Tim Woodall <debianuser@woodall.me.uk> - 2021-11-29 17:10 +0100
              Re: Apt pinning. The Wanderer <wanderer@fastmail.fm> - 2021-11-29 17:30 +0100
                Re: Apt pinning. Tim Woodall <debianuser@woodall.me.uk> - 2021-11-29 18:40 +0100
                Re: Apt pinning. David Wright <deblis@lionunicorn.co.uk> - 2021-11-30 05:50 +0100
        Re: Apt pinning. The Wanderer <wanderer@fastmail.fm> - 2021-11-28 12:20 +0100
          Re: Apt pinning. "Thomas Schmitt" <scdbackup@gmx.net> - 2021-11-28 16:00 +0100
  Re: Apt pinning. Andrei POPESCU <andreimpopescu@gmail.com> - 2021-12-05 16:30 +0100

csiph-web