New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
advpng
installed on ubuntu, or OS X via homebrew, _does not_ have a proper version number
#165
Comments
Might be a good idea to make Andrea Mazzoleni and the advpng team (If any such organisation exist) know about this. They might not be aware that other developers depend on it. |
That's a good idea. I'll see if I can find a good channel to report it over to him. |
For what it's worth - this also happens with the version installed from homebrew |
Yes, I can also verify your finding from the Homebrew version. $ advpng
advancecomp vnone by Andrea Mazzoleni, http://www.advancemame.it
Usage: advpng [options] [FILES...]
Modes:
-l, --list List the content of the files
-z, --recompress Recompress the specified files
Options:
-0, --shrink-store Don't compress
-1, --shrink-fast Compress fast (zlib)
-2, --shrink-normal Compress normal (libdeflate)
-3, --shrink-extra Compress extra (7z)
-4, --shrink-insane Compress extreme (zopfli)
-i N, --iter=N Compress iterations
-f, --force Force the new file also if it's bigger
-q, --quiet Don't print on the console
-h, --help Help of the program
-V, --version Version of the program But neither
The homebrew package version I have is version 2.1:
|
advpng
installed on ubuntu, or OS X via homebrew, _does not_ have a proper version number
After checking source: autover.sh is responsible for getting version for I'll try to come up with some solution, although PR is always welcome. |
https://github.com/toy/image_optim/compare/versionless-advpng should fix the problem |
I was looking into changing the Homebrew package, which is defined here: https://github.com/Homebrew/homebrew-core/blob/master/Formula/advancecomp.rb However, when reading the The brew package fetches the source directly from the advancecomp project here: url "https://github.com/amadvance/advancecomp/archive/v2.1.tar.gz" I have downloaded the code myself, and I don't see any filed named @jayroh Did you reach out to @amadvance, or should I fire an e-mail in his direction? |
Wrong archive is fetched, it should be |
This is a much better diff than the one I put together! Will this make its way into |
@toy Nicely spotted, I will update the Homebrew package. |
@kaspergrubbe I have not had a chance to email @amadvance - but maybe he'll see this issue and chime in. I'll post something over on sourceforge. Looking through everything found here I think this is as much a problem with the "package" maintainers as it is with the build process itself. If done right, it's fine, but there's a lot of wiggle room in there to get it wrong. |
Bug filed at the Ubuntu package bug tracker here: https://bugs.launchpad.net/ubuntu/+source/advancecomp/+bug/1797662 |
Thank you both for handling changes in homebrew and ubuntu! |
Excellent! Thank you so much @toy :) |
On a recent install of ubuntu, installing
advancecomp
provides the advpng binary. However, when runningadvpng -V
it returns unexpected output:This causes the bin resolver to bail, when there's no proper version number
Happy to provide a PR to handle this if it's helpful. Thanks!
The text was updated successfully, but these errors were encountered: