Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836256 - media-gfx/zbar-0.23.90 fails tests on MUSL: ld: test_decode.c:(.text+0x73a): undefined reference to argp_state_help
Summary: media-gfx/zbar-0.23.90 fails tests on MUSL: ld: test_decode.c:(.text+0x73a): ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-27 06:27 UTC by Agostino Sarubbo
Modified: 2023-03-09 08:53 UTC (History)
0 users

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


Attachments
build.log (build.log,113.26 KB, text/plain)
2022-03-27 06:27 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-03-27 06:27:42 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-gfx/zbar-0.23.1 fails tests on MUSL.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-27 06:27:45 UTC
Created attachment 767953 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-27 06:27:46 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: test_decode.c:(.text+0x73a): undefined reference to `argp_state_help'
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: test_decode.c:(.text.startup+0x31c): undefined reference to `argp_help'
test_decode.c:(.text+0x68b): undefined reference to `argp_state_help'
test_decode.c:(.text.startup+0x22): undefined reference to `argp_parse'
collect2: error: ld returned 1 exit status
Comment 3 Agostino Sarubbo gentoo-dev 2022-09-12 06:55:04 UTC
tinderbox_musl has reproduced this issue with version 0.23.90 - Updating summary.
Comment 4 Larry the Git Cow gentoo-dev 2023-03-09 08:53:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=035ef8e2450a78522ce571217caf407694059f4f

commit 035ef8e2450a78522ce571217caf407694059f4f
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2023-03-08 08:38:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-09 08:53:18 +0000

    media-gfx/zbar: add 0.23.92
    
    - Backport patch for py3.11 from upstraem
    - Fix test build issue with musl libc. Test needs to be linked with
      sys-libs/argp-standalone.
    - switch dependency to media-libs/libjpeg-turbo instead of deprecated
      virtual/jpeg
    - directly append test jars to CLASSPATH variable in order to avoid
      internal usage of java-pkg_append_ function from java-utils-2 eclass,
      however, it is not necessary to append "." because test does that
      automatically, see [1].
    
    [1] https://github.com/mchehab/zbar/blob/9f0cbc70aba627afe02cb0afdb8fbc39eb4f229d/java/Makefile.am#L58-L59
    
    Closes: https://bugs.gentoo.org/836256
    Closes: https://bugs.gentoo.org/896994
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/29990
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/zbar/Manifest                            |   1 +
 .../zbar/files/zbar-0.23.92-py311-set-size.patch   |  30 +++
 media-gfx/zbar/zbar-0.23.92.ebuild                 | 235 +++++++++++++++++++++
 3 files changed, 266 insertions(+)