Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946485 - >=dev-libs/glib-2.82 builds with expensive debug assertions by default
Summary: >=dev-libs/glib-2.82 builds with expensive debug assertions by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-14 20:25 UTC by Johannes Penßel
Modified: 2024-12-15 17:23 UTC (History)
0 users

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


Attachments
dev-libs/glib-2.82.4.log (dev-libs:glib-2.82.4:20241214-195631.tar.xz,39.16 KB, application/x-xz)
2024-12-14 20:25 UTC, Johannes Penßel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Penßel 2024-12-14 20:25:20 UTC
Created attachment 914054 [details]
dev-libs/glib-2.82.4.log

As of glib-2.82, the build option -Dglib-debug defaults to enabled, regardless of build type. This enables a bunch of expensive debug assertions at runtime, which is why upstream recommends to disable it for release builds:
https://gitlab.gnome.org/GNOME/glib/-/blob/main/docs/macros.md?ref_type=heads

As indicated by the defined G_ENABLE_DEBUG macro, the ebuild for dev-libs/glib-2.82.4 still has the debug stuff enabled. the Please consider disabling it. (unless USE=debug is set, probably) Thanks!

Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/no-multilib/systemd, gcc-14, glibc-2.40-r7, 6.12.4 x86_64)
=================================================================
System uname: Linux-6.12.4-x86_64-AMD_Ryzen_7_5700X_8-Core_Processor-with-glibc2.40
KiB Mem:    32792668 total,  28049104 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 14 Dec 2024 19:49:00 +0000
Head commit of repository gentoo: 3237d6acb2877f117e54e9558b8bfebad2d5808d

Timestamp of repository guru: Sat, 14 Dec 2024 13:03:16 +0000
Head commit of repository guru: eb64606a9f8da12b0c8d438f711e54af5f26ba72

Timestamp of repository steam-overlay: Wed, 11 Dec 2024 12:06:22 +0000
Head commit of repository steam-overlay: 94ba87e4a1cd7686d25b3520adee8a63e13785ee

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.2::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.0-r1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust:             1.83.0-r1::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.5::gentoo
llvm-core/lld:             19.1.5::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.5::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.40::gentoo
sys-apps/systemd:          256.9::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 10
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --binpkg-changed-deps=n --binpkg-respect-use=y --with-bdeps=y --rebuilt-binaries=y --buildpkg-exclude 'acct-*/* sys-kernel/*-sources virtual/* */*-bin sec-keys/*'"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
F77FLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FCFLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nodoc noinfo parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/share/locale/a* /usr/share/locale/b* /usr/share/locale/c* /usr/share/locale/da* /usr/share/locale/dv* /usr/share/locale/dz* /usr/share/locale/ee* /usr/share/locale/el* /usr/share/locale/en_C* /usr/share/locale/en_A* /usr/share/locale/eo* /usr/share/locale/es* /usr/share/locale/et* /usr/share/locale/eu* /usr/share/locale/f* /usr/share/locale/g* /usr/share/locale/h* /usr/share/locale/i* /usr/share/locale/j* /usr/share/locale/k* /usr/share/locale/la /usr/share/locale/lg /usr/share/locale/li /usr/share/locale/ln /usr/share/locale/lo /usr/share/locale/lt* /usr/share/locale/lv* /usr/share/locale/m* /usr/share/locale/n* /usr/share/locale/o* /usr/share/locale/p* /usr/share/locale/q* /usr/share/locale/r* /usr/share/locale/s* /usr/share/locale/t* /usr/share/locale/u* /usr/share/locale/v* /usr/share/locale/w* /usr/share/locale/x* /usr/share/locale/y* /usr/share/locale/z* /usr/share/man/a* /usr/share/man/b* /usr/share/man/c* /usr/share/man/da* /usr/share/man/es* /usr/share/man/f* /usr/share/man/h* /usr/share/man/i* /usr/share/man/j* /usr/share/man/p* /usr/share/man/r* /usr/share/man/t*"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--build-id=sha1"
LEX="flex"
LINGUAS="en en_GB en_US de de_DE"
MAKEOPTS="-j16"
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"
RUSTFLAGS="-Ctarget-cpu=x86-64-v3 -Clink-arg=-Wl,-z,pack-relative-relocs -Clink-arg=-Wl,--build-id=sha1 -Copt-level=3 -Cdebuginfo=1 -Cforce-frame-pointers=yes -Ccodegen-units=1"
SHELL="/bin/zsh"
USE="a52 aac acl acpi alsa amd64 apparmor audit bluetooth branding bzip2 cairo caps cdda cdr cet colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac flatpak gdbm gdk-pixbuf gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection io-uring ios ipv6 jpeg jpegxl keyring kf6compat lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls ogg opencl opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio qml readline sdl seccomp secureboot sound spell ssl startup-notification stemmer svg sysprof systemd test-rust tiff tpm tracker truetype udev udisks uki ukify unicode unwind upower usb vaapi verify-sig vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64 pc coreboot" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB de de-DE" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu intel radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, FC, GCOV, GPROF, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Larry the Git Cow gentoo-dev 2024-12-15 12:05:35 UTC
The bug has been closed via the following commit(s):

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

commit b992d922dfc15e6d8757c23fb8c0093f70bc3f54
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-15 12:03:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-15 12:05:05 +0000

    dev-libs/glib: disable new assertions by default
    
    As reported in the bug and per upstream commit b02e29558fca8053fcb811fbf5691c09a876bb5a,
    -Dglib_debug is default-enabled in >=2.80 but they recommend distros default
    it to off, so let's do that.
    
    Closes: https://bugs.gentoo.org/946485
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/glib/{glib-2.82.4.ebuild => glib-2.82.4-r1.ebuild} | 2 ++
 1 file changed, 2 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2024-12-15 17:23:34 UTC
The bug has been referenced in the following commit(s):

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

commit 5ff78aa836c1fa32c49ddaf273662e1538358152
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2024-12-15 17:22:01 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2024-12-15 17:22:01 +0000

    dev-libs/glib: Backport Sam's handling of -Dglib_debug from 2.82
    
    -Dglib_debug is default-enabled in >=2.80 but they recommend distros default
    it to off.
    
    Bug: https://bugs.gentoo.org/946485
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 dev-libs/glib/glib-2.80.5-r1.ebuild | 437 ++++++++++++++++++++++++++++++++++++
 1 file changed, 437 insertions(+)