Debian Bug report logs - #783781
apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all

version graph

Package: apt-show-versions; Maintainer for apt-show-versions is Christoph Martin <martin@uni-mainz.de>; Source for apt-show-versions is src:apt-show-versions (PTS, buildd, popcon).

Reported by: Paul Wise <pabs@debian.org>

Date: Thu, 30 Apr 2015 00:33:02 UTC

Severity: normal

Found in version apt-show-versions/0.22.7

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Christoph Martin <christoph.martin@uni-mainz.de>:
Bug#783781; Package apt-show-versions. (Thu, 30 Apr 2015 00:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
New Bug report received and forwarded. Copy sent to Christoph Martin <christoph.martin@uni-mainz.de>. (Thu, 30 Apr 2015 00:33:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Paul Wise <pabs@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all
Date: Thu, 30 Apr 2015 08:27:20 +0800
[Message part 1 (text/plain, inline)]
Package: apt-show-versions
Version: 0.22.7
Severity: normal

The packages apertium-en-es, proj-data and wml have transitioned from
Architecture: any in unstable to Architecture: all in experimental. I
have the unstable versions installed but not the experimental ones and
apt-show-versions shows "foo:all not installed" for all of them. This is
confusing since apt-show-versions is meant to only show installed stuff.

apertium-en-es:all not installed
apertium-en-es:amd64/testing 0.6.0-1.1+b2 uptodate
proj-data:all not installed
proj-data:amd64/testing 4.8.0-5 uptodate
wml:all not installed
wml:amd64/testing 2.0.12ds1-8 uptodate

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (900, 'testing'), (860, 'testing-proposed-updates'), (850, 'buildd-testing-proposed-updates'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt-show-versions depends on:
ii  apt                      1.0.9.8
ii  libapt-pkg-perl          0.1.29+b2
ii  perl [libstorable-perl]  5.20.2-3

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Martin <christoph.martin@uni-mainz.de>:
Bug#783781; Package apt-show-versions. (Wed, 24 Oct 2018 15:45:02 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupré <anarcat@debian.org>:
Extra info received and forwarded to list. Copy sent to Christoph Martin <christoph.martin@uni-mainz.de>. (Wed, 24 Oct 2018 15:45:02 GMT) (full text, mbox, link).


Message #10 received at 783781@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupré <anarcat@debian.org>
To: Paul Wise <pabs@debian.org>, 783781@bugs.debian.org
Subject: Re: Bug#783781: apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all
Date: Wed, 24 Oct 2018 11:42:36 -0400
On 2015-04-30 08:27:20, Paul Wise wrote:
> The packages apertium-en-es, proj-data and wml have transitioned from
> Architecture: any in unstable to Architecture: all in experimental. I
> have the unstable versions installed but not the experimental ones and
> apt-show-versions shows "foo:all not installed" for all of them. This is
> confusing since apt-show-versions is meant to only show installed stuff.
>
> apertium-en-es:all not installed
> apertium-en-es:amd64/testing 0.6.0-1.1+b2 uptodate
> proj-data:all not installed
> proj-data:amd64/testing 4.8.0-5 uptodate
> wml:all not installed
> wml:amd64/testing 2.0.12ds1-8 uptodate

It seems like this is deliberate in the code, yet it's totally unclear
to me why it's happening. The following patch, of course, fixes the
problem:

diff --git i/apt-show-versions w/apt-show-versions
index 3df13c7..ab1f91c 100755
--- i/apt-show-versions
+++ w/apt-show-versions
@@ -513,7 +513,7 @@ sub print_package_internal {
                      "version in archive\n");
             }
         }
-    } else {
+    } elsif ($ipkg->{$VERS}) {
         push(@print_info, "$pkgarch not installed",
              ($mode == $MODE_SINGLE and not keys(%{$apackages->{$package}{$arch}}))
             ? " (even not available)\n" : "\n");

But it's not clear to me what the proper solution is or what the purpose
of this 'not installed' statement is... That code has been present
basically forever (since the 2007, 0.10 original git import) without any
clear explanation.

Another alternative would be to just remove that code completely, since
it's unclear what purpose it serves. This is basically what the above
does anyways.

Other opinions?

A.

-- 
Growth for the sake of growth is the ideology of the cancer cell.
                        - Edward Abbey



Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Martin <christoph.martin@uni-mainz.de>:
Bug#783781; Package apt-show-versions. (Thu, 25 Oct 2018 00:51:05 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
Extra info received and forwarded to list. Copy sent to Christoph Martin <christoph.martin@uni-mainz.de>. (Thu, 25 Oct 2018 00:51:05 GMT) (full text, mbox, link).


Message #15 received at 783781@bugs.debian.org (full text, mbox, reply):

From: Paul Wise <pabs@debian.org>
To: Antoine Beaupré <anarcat@debian.org>, 783781@bugs.debian.org
Subject: Re: Bug#783781: apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all
Date: Thu, 25 Oct 2018 08:48:15 +0800
[Message part 1 (text/plain, inline)]
On Wed, 2018-10-24 at 11:42 -0400, Antoine Beaupré wrote:

> But it's not clear to me what the proper solution is or what the purpose
> of this 'not installed' statement is... That code has been present
> basically forever (since the 2007, 0.10 original git import) without any
> clear explanation.

snapshot goes back to 0.03 and the code is slightly different there but
there is also a not installed statement.

https://snapshot.debian.org/package/apt-show-versions/

BTW Christoph, when this package moves to salsa it would be nice to
import those versions so people could use grafts to view the history.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Martin <christoph.martin@uni-mainz.de>:
Bug#783781; Package apt-show-versions. (Thu, 25 Oct 2018 12:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Christoph Martin <martin@uni-mainz.de>:
Extra info received and forwarded to list. Copy sent to Christoph Martin <christoph.martin@uni-mainz.de>. (Thu, 25 Oct 2018 12:48:03 GMT) (full text, mbox, link).


Message #20 received at 783781@bugs.debian.org (full text, mbox, reply):

From: Christoph Martin <martin@uni-mainz.de>
To: Paul Wise <pabs@debian.org>, <783781@bugs.debian.org>, Antoine Beaupré <anarcat@debian.org>
Subject: Re: Bug#783781: apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all
Date: Thu, 25 Oct 2018 14:45:01 +0200
[Message part 1 (text/plain, inline)]
Hi Paul,

Am 25.10.18 um 02:48 schrieb Paul Wise:
> 
> snapshot goes back to 0.03 and the code is slightly different there but
> there is also a not installed statement.
> 
> https://snapshot.debian.org/package/apt-show-versions/
> 
> BTW Christoph, when this package moves to salsa it would be nice to
> import those versions so people could use grafts to view the history.
> 

It is on salsa for about half a year now.

Do you have a documentation how to include these snapshots into the git
history?

Christoph

-- 
============================================================================
Christoph Martin, Leiter Unix-Systeme
Zentrum für Datenverarbeitung, Uni-Mainz, Germany
 Anselm Franz von Bentzel-Weg 12, 55128 Mainz
 Telefon: +49(6131)3926337
 Instant-Messaging: Jabber/XMPP: martin@jabber.uni-mainz.de

[martin.vcf (text/x-vcard, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Martin <christoph.martin@uni-mainz.de>:
Bug#783781; Package apt-show-versions. (Thu, 25 Oct 2018 14:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
Extra info received and forwarded to list. Copy sent to Christoph Martin <christoph.martin@uni-mainz.de>. (Thu, 25 Oct 2018 14:39:05 GMT) (full text, mbox, link).


Message #25 received at 783781@bugs.debian.org (full text, mbox, reply):

From: Paul Wise <pabs@debian.org>
To: 783781@bugs.debian.org, Antoine Beaupré <anarcat@debian.org>
Subject: Re: Bug#783781: apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all
Date: Thu, 25 Oct 2018 22:35:13 +0800
[Message part 1 (text/plain, inline)]
On Thu, 2018-10-25 at 14:45 +0200, Christoph Martin wrote:

> It is on salsa for about half a year now.

Ah, I was mislead by the Homepage pointing to Alioth.

> Do you have a documentation how to include these snapshots into the
> git history?

Preparation:

cd apt-show-versions/
debsnap --force --destdir .. --last 0.09 apt-show-versions
git checkout --orphan archive
git rm -rf .

Repeat imports for each version:

for version in 0.03 0.07 0.08 0.09 ; do
   git ls-files -z | xargs -0 rm -- -f
   dpkg-source -x ../apt-show-versions_$version.dsc extract
   find extract/ -mindepth 1 -maxdepth 1 -print0 | xargs -0 mv -t .
   rmdir extract
   git add .
   git commit --date "$(dpkg-parsechangelog -S Date)" --author "$(dpkg-parsechangelog -S Maintainer)" -a -m "Import apt-show-version $version" -m "Imported-from: https://snapshot.debian.org/package/apt-show-versions/$version/"
   GIT_AUTHOR_DATE="$(dpkg-parsechangelog -S Date)" git tag -s $version -m "Import apt-show-version $version" -m "Imported-from: https://snapshot.debian.org/package/apt-show-versions/$version/"
done

Add the graft:

git replace --graft release-0.10^ 0.09^{}

https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-replace.html
https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-rev-parse.html

Finalise:

gitk --all
git push

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Martin <christoph.martin@uni-mainz.de>:
Bug#783781; Package apt-show-versions. (Mon, 29 Oct 2018 14:15:02 GMT) (full text, mbox, link).


Acknowledgement sent to Christoph Martin <martin@uni-mainz.de>:
Extra info received and forwarded to list. Copy sent to Christoph Martin <christoph.martin@uni-mainz.de>. (Mon, 29 Oct 2018 14:15:02 GMT) (full text, mbox, link).


Message #30 received at 783781@bugs.debian.org (full text, mbox, reply):

From: Christoph Martin <martin@uni-mainz.de>
To: Paul Wise <pabs@debian.org>, <783781@bugs.debian.org>, Antoine Beaupré <anarcat@debian.org>
Subject: Re: Bug#783781: apt-show-versions: shows "foo:all not installed" for packages that transitioned from arch any to arch all
Date: Mon, 29 Oct 2018 15:13:54 +0100
[Message part 1 (text/plain, inline)]
Hi Paul,

Am 25.10.18 um 16:35 schrieb Paul Wise:
> On Thu, 2018-10-25 at 14:45 +0200, Christoph Martin wrote:
> 
>> It is on salsa for about half a year now.
> 
> Ah, I was mislead by the Homepage pointing to Alioth.

I should change that.

>> Do you have a documentation how to include these snapshots into the
>> git history?
> 

Thanks for your howto. I just pushed the rebuild git history. I even
could include the missing versions in between backup to version 0.01 .

Regards
Christoph

-- 
============================================================================
Christoph Martin, Leiter Unix-Systeme
Zentrum für Datenverarbeitung, Uni-Mainz, Germany
 Anselm Franz von Bentzel-Weg 12, 55128 Mainz
 Telefon: +49(6131)3926337
 Instant-Messaging: Jabber/XMPP: martin@jabber.uni-mainz.de

[martin.vcf (text/x-vcard, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Christoph Martin <martin@uni-mainz.de>:
Bug#783781; Package apt-show-versions. (Wed, 22 Sep 2021 04:29:18 GMT) (full text, mbox, link).


Acknowledgement sent to PT FINDORA INTERNUSA <sankhokaihatsuco.ltd@outlook.com>:
Extra info received and forwarded to list. Copy sent to Christoph Martin <martin@uni-mainz.de>. (Wed, 22 Sep 2021 04:29:18 GMT) (full text, mbox, link).


Message #35 received at 783781@bugs.debian.org (full text, mbox, reply):

From: PT FINDORA INTERNUSA <sankhokaihatsuco.ltd@outlook.com>
To: me <marketing01@findora.com>
Subject: P.O 22/09/2021
Date: Tue, 21 Sep 2021 21:21:30 -0700
[Message part 1 (text/plain, inline)]
Hello,

Good morning,

We have gone through your samples from a partner and Here is our  Order 
List. Please do bear in mind that we are very much in  need of this 
order, quote your competitive prices.

Kindly send the Order confirmation.

Your early reply will be much appreciated.

Best Regards,

Maryanah Erwin.

PT FINDORA INTERNUSA

Jln Pahlawan 66 Kec. Arjawinangun

45162 CIREBON West-Java INDONESIA

tel : +62 231 357334

fax: +62 231 357260

email: marketing@findora.com
[P.O22.09.2021.cab (application/zip, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Nov 21 23:41:13 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.