Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831363 - sys-libs/efivar-38 - multiple issues building on musl
Summary: sys-libs/efivar-38 - multiple issues building on musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH
Depends on: 895152
Blocks:
  Show dependency tree
 
Reported: 2022-01-17 15:48 UTC by Toralf Förster
Modified: 2023-02-18 02:12 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.57 KB, text/plain)
2022-01-17 15:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,406.76 KB, text/plain)
2022-01-17 15:48 UTC, Toralf Förster
Details
environment (environment,57.81 KB, text/plain)
2022-01-17 15:48 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.44 KB, application/x-bzip)
2022-01-17 15:48 UTC, Toralf Förster
Details
sys-libs:efivar-38:20220117-153116.log (sys-libs:efivar-38:20220117-153116.log,3.40 KB, text/plain)
2022-01-17 15:48 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.34 KB, application/x-bzip)
2022-01-17 15:48 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-01-17 15:48:22 UTC
too long lines were shrinked:

x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-
x86_64-gentoo-linux-musl-gcc -pipe -march=native -fno-diagnostics-color -O2 -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs -fno-merge-constants  -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/var/tmp/portage/sys-
In file included from efivar.h:16,
                 from util.c:7:
compiler.h:10:10: fatal error: sys/cdefs.h: No such file or directory
   10 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-j4-20220111-092048

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang/llvm (if any):
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.58.0
  [2]   rust-1.58.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

php cli:

  HEAD of ::gentoo
commit c375b6f8ee7782ff9231ecfc6b1449fd6e7392be
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jan 17 13:21:54 2022 +0000

    2022-01-17 13:21:52 UTC

emerge -qpvO sys-libs/efivar
[ebuild     U ] sys-libs/efivar-38 [37] USE="-test%"
Comment 1 Toralf Förster gentoo-dev 2022-01-17 15:48:23 UTC
Created attachment 762409 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-17 15:48:25 UTC
Created attachment 762410 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-01-17 15:48:26 UTC
Created attachment 762411 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-01-17 15:48:28 UTC
Created attachment 762412 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-01-17 15:48:28 UTC
Created attachment 762413 [details]
sys-libs:efivar-38:20220117-153116.log
Comment 6 Toralf Förster gentoo-dev 2022-01-17 15:48:29 UTC
Created attachment 762414 [details]
temp.tar.bz2
Comment 7 Mike Gilbert gentoo-dev 2022-01-17 20:31:05 UTC
efivar also uses a couple of glibcisms: qsort_r and on_exit.
Comment 8 Larry the Git Cow gentoo-dev 2022-02-06 10:35:21 UTC
The bug has been referenced in the following commit(s):

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

commit 730abf538cfee41cd32dc8dba03c44d7c470b2e2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-06 10:34:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-06 10:35:03 +0000

    profiles/features/musl: mask =efivar-38
    
    Fails to buid.
    
    Bug: https://bugs.gentoo.org/831363
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/musl/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2023-02-17 22:08:32 UTC
The bug has been closed via the following commit(s):

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

commit e84fe06747ac63707f1a46dd16a658dc033d57f8
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-02-17 22:08:08 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-02-17 22:08:08 +0000

    sys-libs/efivar: backport a couple fixes
    
    Closes: https://bugs.gentoo.org/831363
    Closes: https://bugs.gentoo.org/895152
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-libs/efivar/efivar-38.ebuild                   |   2 +
 .../efivar/files/efivar-38-efisecdb-musl.patch     | 179 +++++++++++++++++++++
 .../efivar/files/efivar-38-efisecdb-optarg.patch   |  51 ++++++
 3 files changed, 232 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2023-02-18 02:12:14 UTC
The bug has been referenced in the following commit(s):

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

commit 8ba5be6b036453b7c2d7ef160826d8c99856123b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-18 02:11:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-18 02:11:44 +0000

    profiles/features/musl: unmask efivar-38
    
    Now builds on musl.
    
    Bug: https://bugs.gentoo.org/831363
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/musl/package.mask | 7 -------
 1 file changed, 7 deletions(-)