Bug#1023939: findimagedupes: debian build process fails to set version

Étienne Mollier emollier at emlwks999.eu
Sun Nov 13 10:10:27 GMT 2022


Hi Jonanthan,

Jonathan H N Chin, on 2022-11-12:
> I believe you are building directly from the files on github.
> I don't provide the tar release file there. Perhaps I should.

That might be more convenient.  That being said, Github has a
history of regularly mangling with release pages, resulting in
hard to track newer upstream version, due to breakage of
automatic scans (or I really should dig deeper in the API, but
last time I checked, I didn't find the same information on
releases depending on the project, or maybe I just didn't look
at the right place).

> Building the debian package directly from the findimagesupes file
> does not set the `$Id` string inside the code. Because of this,
> the `--version` option is failing.
> 
> I set the string when building a tar release file by running
> "make dist" to extract the version from git and then patch the code:
> 
> ```
>     dist: README.md
>     	git describe --tags > VERSION
>     	./patchver 
>     	[...]
> ```
> 
> `patchver` updates the variable in the code:
> 
> ```
>     perl -i -pe 's/^(my \$Id = ).*/$1"'$(cat VERSION)'";/' findimagedupes
> ```

Ah, thanks for the reminder, I saw that when strolling through
the source code, but forgot to make sure this was applied
properly.

> -jonathan

Thanks for having taken over the development of findimagedupes!

Have a nice day,  :)
-- 
Étienne Mollier <emollier at emlwks999.eu>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20221113/a22ecaa5/attachment-0001.sig>


More information about the debian-science-maintainers mailing list