Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801106 - sys-apps/systemd-tmpfiles-246 build failure : error: unknown type name 'locale_t' (uclibc)
Summary: sys-apps/systemd-tmpfiles-246 build failure : error: unknown type name 'local...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: uclibc-porting
  Show dependency tree
 
Reported: 2021-07-07 20:37 UTC by David Duchesne
Modified: 2021-12-26 23:26 UTC (History)
4 users (show)

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


Attachments
sys-apps/systemd-tmpfiles-246 build log (uclibc) (file_801106.txt,174.95 KB, text/plain)
2021-07-07 20:38 UTC, David Duchesne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Duchesne 2021-07-07 20:37:16 UTC
sys-apps/systemd-tmpfiles-246 build failure : error: unknown type name 'locale_t' (uclibc)

Using uclibc

See log attached

Reproducible: Always




Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.0/uclibc/hardened, gcc-10.3.0, uclibc-ng-1.0.35, 4.14.228-gentoo-hardened-uclibc x86_64)
=================================================================
System uname: Linux-4.14.228-gentoo-hardened-uclibc-x86_64-AMD_A10-6800K_APU_with_Radeon-tm-_HD_Graphics-with-libc0
KiB Mem:    16430528 total,  14923044 free
KiB Swap:    8387580 total,   8387580 free
Timestamp of repository gentoo: Wed, 07 Jul 2021 20:00:01 +0000
Head commit of repository gentoo: 18da7e0e499e9c0bdfc4a02675b44d5988c556de
Timestamp of repository localrepo: Tue, 06 Jul 2021 22:57:02 +0000
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.9.5_p2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/uclibc-ng:       1.0.35::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: y

Installed sets: @fonts
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-unknown-linux-uclibc"
CFLAGS="-O2 -pipe"
CHOST="x86_64-unknown-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/etc/sysctl.d/ /etc/systemd/ /lib/systemd/ /usr/lib/sysctl.d/ /usr/lib/systemd/ /run/systemd/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bzip2 crypt cryptsetup device-mapper graphite hardened iconv ipv6 libglvnd libtirpc lto lvm lz4 lzma lzo minimal ncurses nptl openmp openssl pcre pgo pie readline seccomp sftp split-usr ssh ssl ssp uclibc unicode verify-sig xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 David Duchesne 2021-07-07 20:38:34 UTC
Created attachment 722626 [details]
sys-apps/systemd-tmpfiles-246 build log (uclibc)
Comment 2 Georgy Yakovlev archtester gentoo-dev 2021-07-08 04:07:14 UTC
likely needs some locale.h massage, but I don't have any systems to test or run uclibc on.
Comment 3 Larry the Git Cow gentoo-dev 2021-07-09 01:54:07 UTC
The bug has been referenced in the following commit(s):

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

commit 342930469cbba2351240fb90cec8139b6a689ea4
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-07-09 01:37:54 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-07-09 01:53:08 +0000

    profiles/features/uclibc: unmask opentmpfiles, mask systemd's
    
    systemd-tmpfiles currently does not compile with uclibc-ng
    
    Bug: https://bugs.gentoo.org/801106
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 profiles/features/uclibc/package.mask   | 4 ++++
 profiles/features/uclibc/package.unmask | 7 +++++++
 2 files changed, 11 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2021-07-09 04:25:53 UTC
The bug has been referenced in the following commit(s):

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

commit e8bbd489c0d3537fef06e271a00e11ac68cd7018
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-07-09 04:24:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-07-09 04:24:35 +0000

    profiles/features/uclibc: drop obsolete opentmpfiles restriction
    
    The problematic version requiring a separate mask is gone at least
    (unrelated to the security bug).
    
    Bug: https://bugs.gentoo.org/801106
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/features/uclibc/package.unmask | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 Guillermo D. H. 2021-07-10 18:32:53 UTC
(In reply to Georgy Yakovlev from comment #2)
> likely needs some locale.h massage, but I don't have any systems to test or
> run uclibc on.
If I understand correctly, uClibc-ng's <locale.h> defines locale_t if it was configured with UCLIBC_HAS_XLOCALE (and therefore UCLIBC_HAS_LOCALE), which Gentoo's ebuild seemingly does not do.
Comment 6 Georgy Yakovlev archtester gentoo-dev 2021-12-26 23:26:27 UTC
ok since we are dropping ublibc completely, I'll close this one.