Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 832836

Summary: sci-visualization/gr-0.53.0 fails to compile with musl : io.c:38:15: error: O_RDONLY undeclared (first use in this function)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal CC: musl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-02-07 08:27:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-visualization/gr-0.53.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-07 08:27:14 UTC
Created attachment 764503 [details]
build.log

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


-- Could NOT find Cairo (missing: CAIRO_LIBRARY) (found version "1.16.0")
-- Could NOT find Ffmpeg (missing: FFMPEG_TEST_COMPILED FFMPEG_LIBRARY_AVFORMAT FFMPEG_LIBRARY_AVCODEC FFMPEG_LIBRARY_SWSCALE FFMPEG_LIBRARY_AVUTIL) (Required is at least version "57.48.100")
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY) (found version "2.11.1")
-- Could NOT find Gs (missing: GS_LIBRARY GS_INCLUDE_DIR GS_VERSION_STRING) 
-- Could NOT find Qt5Network (missing: Qt5Network_DIR)
-- Could NOT find Qt5Widgets (missing: Qt5Widgets_DIR)
-- Could NOT find Tiff (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR TIFF_VERSION_STRING) 
-- Could NOT find Zeromq (missing: ZEROMQ_LIBRARY ZEROMQ_INCLUDE_DIR ZEROMQ_VERSION_STRING) (Required is exact version "4.0")
/var/tmp/portage/sci-visualization/gr-0.53.0/work/gr-0.53.0/lib/gks/io.c:38:15: error: 'O_RDONLY' undeclared (first use in this function)
Comment 3 Larry the Git Cow gentoo-dev 2022-02-26 18:41:51 UTC
The bug has been closed via the following commit(s):

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

commit bc5b49f1264f425fa395372c0383ae753a9399a1
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2022-02-26 18:41:11 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2022-02-26 18:41:11 +0000

    sci-visualization/gr: Fix build with musl
    
    Closes: https://bugs.gentoo.org/832836
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sci-visualization/gr/files/gr-0.53.0-musl.patch | 29 +++++++++++++++++++++++++
 sci-visualization/gr/gr-0.53.0.ebuild           |  6 ++++-
 2 files changed, 34 insertions(+), 1 deletion(-)