advpng built from an archive without a .version file

Bug #1797662 reported by Joel Oliveira
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
advancecomp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

```
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
```

***

```
$ apt-cache policy advancecomp
advancecomp:
  Installed: 2.1-1
  Candidate: 2.1-1
  Version table:
 *** 2.1-1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
     1.20-1 500
        500 http://old-releases.ubuntu.com/ubuntu zesty/main amd64 Packages
```

***

When running `advpng --version` its output does not provide the version of the utility. Instead it reports it as "vnone". Example:

```
$ advpng --version
advancecomp vnone by Andrea Mazzoleni, http://www.advancemame.it
```

I expect it to return "v2.1-1". A la -

```
advancecomp v2.1-1 by Andrea Mazzoleni, http://www.advancemame.it
```

After some looking around it seems that maybe the wrong archive is fetched before building it. Possibly https://github.com/amadvance/advancecomp/archive/v2.1.tar.gz

Instead it should be https://github.com/amadvance/advancecomp/releases/download/v2.1/advancecomp-2.1.tar.gz. The one that was used is an archive of the git repository which does NOT contain the `.version` file, and latter one linked is a release archive which I think is created from repository after running all auto* tools and running the script that generates .version file.

This is all information gleaned from the image_optim project where there is more information in an issue there: https://github.com/toy/image_optim/issues/165#issuecomment-429489170

Much thanks to Ivan Kuchin and Kasper Grubbe over there helping track this down.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thank you for reporting this issue and help making Ubuntu better.

I can confirm that advancecomp 2.1-1 reports version "vnone" on Ubuntu Cosmic as well.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. This will automatically add useful debug information such as which package version and Ubuntu release you are running. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in advancecomp (Ubuntu):
status: New → Confirmed
tags: added: bionic cosmic
tags: added: focal groovy
removed: cosmic
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.