Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687066 - media-gfx/iscan-2.30.3.1 - interpreter config file lines are not parsed correctly anymore
Summary: media-gfx/iscan-2.30.3.1 - interpreter config file lines are not parsed corre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Schultz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-31 12:20 UTC by martin.lederhilger
Modified: 2019-11-03 04:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the problem (iscan-2.30.3-sscanf.patch,785 bytes, patch)
2019-05-31 12:20 UTC, martin.lederhilger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description martin.lederhilger 2019-05-31 12:20:26 UTC
Created attachment 578136 [details, diff]
Fixes the problem

I need the attached patch to make it work again.
Comment 1 Tomáš Mózes 2019-05-31 12:25:48 UTC
Have you please reported upstream?
Comment 2 martin.lederhilger 2019-05-31 13:08:48 UTC
No. Should I do it?

I'm not really sure why it got broken - or why it worked previously. I updated my system last Sunday. The source code of backend/cfg-obj.c does not differ between iscan-2.30.2 and 2.30.3 - maybe compiler settings are different, also GCC was upgraded from 7 to 8...
Comment 3 martin.lederhilger 2019-05-31 13:32:41 UTC
I reported it to Alesh.Slovak@avasys.jp which seems to be the last maintainer according to the AUTHORS file in the sources. Lets see if I get an answer...
Comment 4 Tomáš Mózes 2019-06-01 08:06:20 UTC
It's best to avoid having custom patches and to be as close to upstream as possible. Of course, we can patch if it's necessary, but then all downstream distros have to do it, which is not great ;)

Thanks for contacting the authors!
Comment 5 martin.lederhilger 2019-06-04 16:39:29 UTC
The e-mail address Alesh.Slovak@avasys.jp seems to be no longer in use. At least my e-mail could not be delivered;(
Comment 6 Grigor Lekarov 2019-06-30 19:51:35 UTC
I've met the same issue and the patch resolved it. Does anybody knows when this will be applied as a patch in the upstream? If not, could you please apply it as a  custom patch for the current iscan release?
Comment 7 Igor Krivenko 2019-09-02 20:10:21 UTC
I was hit by this problem too. It is caused by a change in Glibc 2.29.

https://sourceware.org/ml/libc-announce/2019/msg00000.html

> An archaic GNU extension to scanf, under which '%as', '%aS', and
>   '%a[...]' meant to scan a string and allocate space for it with
>   malloc, is now restricted to programs compiled in C89 or C++98 mode
>   with _GNU_SOURCE defined.  This extension conflicts with C99's use of
>   '%a' to scan a hexadecimal floating-point number, which is now
>   available to programs compiled as C99 or C++11 or higher, regardless
>   of _GNU_SOURCE.
> 
>   POSIX.1-2008 includes the feature of allocating a buffer for string input
>   with malloc, using the modifier letter 'm' instead.  Programs using
>   '%as', '%aS', or '%a[...]' with the old GNU meaning should change to
>   '%ms', '%mS', or '%m[...]' respectively.  Programs that wish to use
>   the C99 '%a' no longer need to avoid _GNU_SOURCE.
Comment 8 Matthew Schultz 2019-11-03 04:36:24 UTC
This patch has been included in the 2.30.4.2 version bump.