From 0c76477e77519b21a56470c6971d2cd3b748f304 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Jul 2024 17:45:16 -0400 Subject: [PATCH 1/7] profiles/features/musl: consolidate binary package masks into rolling mask We already have a rolling mask for all binary packages linked to glibc, which cannot function on musl. Occasionally, packages accidentally collect their own dedicated masks. Merge those back into the rolling mask. Signed-off-by: Eli Schwartz --- profiles/features/musl/package.mask | 57 ++++++----------------------- 1 file changed, 12 insertions(+), 45 deletions(-) diff --git a/profiles/features/musl/package.mask b/profiles/features/musl/package.mask index 202aaeef15fa0..3ee7ab234d0c4 100644 --- a/profiles/features/musl/package.mask +++ b/profiles/features/musl/package.mask @@ -28,10 +28,6 @@ app-emulation/protontricks # Mask until execinfo.h use can be properly patched, bug #853856 media-gfx/renderdoc -# Maciej Barć (2024-03-23) -# Binary package, which is compiled against glibc -www-apps/jellyfin-bin - # Arthur Zamarin (2024-03-15) # Needs ada sci-electronics/ghdl @@ -76,15 +72,6 @@ games-strategy/seven-kingdoms # this time. (#925547) app-arch/lrzip-next -# Marek Szuba (2024-02-18) -# Binary-only packages linked against glibc -net-analyzer/nessus-agent-bin -net-analyzer/nessus-bin - -# Marc Schiffbauer (2024-02-16) -# Binary package, which is compiled against glibc -app-editors/logseq-desktop-bin - # Christopher Fore (2024-01-24) # >=sys-fs/bcachefs-tools-1.4.1 uses functions currently not in Musl # https://github.com/koverstreet/bcachefs-tools/issues/213 @@ -95,34 +82,10 @@ app-editors/logseq-desktop-bin # which are not available on musl. net-misc/mcproxy -# Giuseppe Foti (2024-01-22) -# Binary package, which is compiled against glibc -app-office/drawio-desktop-bin - -# Maciej Barć (2024-01-06) -# Binary package, which is compiled against glibc -app-office/joplin-desktop - -# Maciej Barć (2024-01-06) -# Binary package, which is compiled against glibc -dev-util/azuredatastudio - # Florian Schmaus (2023-11-22) # Requires systemd which is not supported on musl. sys-power/sandmann-bin -# Maciej Barć (2023-09-16) -# Binary package, which is compiled against glibc -dev-lang/dafny-bin - -# Maciej Barć (2023-09-16) -# Binary package, which is compiled against glibc -app-shells/pwsh-bin - -# Maciej Barć (2023-07-01) -# Binary package, which is compiled against glibc -games-util/heroic-bin - # Brahmajit Das (2023-06-15) # The package uses innetgr which is not available in musl, bug 898556 # The package is only for long-obsolete polkit policies anyway. @@ -136,14 +99,6 @@ sys-auth/polkit-pkla-compat # Mask until execinfo.h use can be properly patched, bug #877721 and #903689. dev-scheme/guile-ssh -# Conrad Kostecki (2023-03-01) -# Binary package, which is compiled against glibc -sys-block/arcconf - -# Conrad Kostecki (2023-03-01) -# Binary package, which is compiled against glibc -sys-apps/smcipmitool - # Alfredo Tupone (2023-02-27) # Uses dev-util/nvidia-cuda-sdk dev-libs/cutlass @@ -236,14 +191,18 @@ app-benchmarks/geekbench app-benchmarks/geekbench-ml app-crypt/rainbowcrack app-crypt/yubioath-flutter-bin +app-editors/logseq-desktop-bin app-editors/sublime-text app-editors/vscode app-editors/vscodium app-emulation/crossover-bin app-misc/kryoflux-dtc +app-office/drawio-desktop-bin +app-office/joplin-desktop app-office/libreoffice-bin app-office/libreoffice-bin-debug app-office/onlyoffice-bin +app-shells/pwsh-bin app-text/master-pdf-editor app-text/zotero-bin dev-db/ocp @@ -252,11 +211,13 @@ dev-db/sqlcl-bin dev-games/ps2-packer dev-java/openjdk-bin dev-java/openjdk-jre-bin +dev-lang/dafny-bin dev-libs/luise dev-libs/nwjs dev-perl/Lab-Zhinst dev-php/PEAR-MDB2_Driver_oci8 dev-python/pyzotero +dev-util/azuredatastudio dev-util/idea-community games-action/a-story-about-my-uncle games-action/badland @@ -310,6 +271,7 @@ games-strategy/darwinia games-strategy/darwinia-demo games-strategy/knights-demo games-strategy/majesty-demo +games-util/heroic-bin gnome-extra/nautilus-dropbox kde-apps/dolphin-plugins-dropbox mail-client/thunderbird-bin @@ -323,6 +285,8 @@ media-video/amdgpu-pro-amf media-video/dvbackup media-video/makemkv media-video/popcorntime-bin +net-analyzer/nessus-agent-bin +net-analyzer/nessus-bin net-im/discord net-im/element-desktop-bin net-im/gitter-bin @@ -353,11 +317,14 @@ sci-misc/jupyterlab-desktop-bin sci-misc/netlogo-bin sys-apps/intune-portal sys-apps/ipmicfg +sys-apps/smcipmitool sys-apps/tas +sys-block/arcconf sys-block/hpssacli sys-block/megacli www-apps/chromedriver-bin www-apps/grafana-bin +www-apps/jellyfin-bin www-apps/kibana-bin www-client/firefox-bin www-client/google-chrome From 59f2556b041f91278457fa3a5d9831dbda0652fd Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Jul 2024 18:15:25 -0400 Subject: [PATCH 2/7] media-libs/flac: make sure elibtoolize is applied Needed to e.g. pass LTO warning flags through to the linker. Signed-off-by: Eli Schwartz --- media-libs/flac/flac-1.4.3.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/media-libs/flac/flac-1.4.3.ebuild b/media-libs/flac/flac-1.4.3.ebuild index 88c731fe0cbc4..c68945a115f40 100644 --- a/media-libs/flac/flac-1.4.3.ebuild +++ b/media-libs/flac/flac-1.4.3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic multilib-minimal +inherit flag-o-matic libtool multilib-minimal DESCRIPTION="Free lossless audio encoder and decoder" HOMEPAGE="https://xiph.org/flac/" @@ -27,6 +27,11 @@ BDEPEND=" virtual/pkgconfig " +src_prepare() { + default + elibtoolize +} + multilib_src_configure() { # -fipa-pta exposes a test failure in replaygain_analysis (https://gcc.gnu.org/PR115533) # TOOD: Replace with some -ffp-contract= option? From 13e7cc29573344822488e3bb78f798b99ef97688 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Jul 2024 18:41:13 -0400 Subject: [PATCH 3/7] gnome-base/gnome-shell: backport fix for strict-aliasing with USE=pipewire Closes: https://bugs.gentoo.org/919853 Signed-off-by: Eli Schwartz --- ...9e8a22c223b030297f9607bdb748c219e060.patch | 42 +++++++++++++++++++ ...45.6.ebuild => gnome-shell-45.6-r1.ebuild} | 2 + 2 files changed, 44 insertions(+) create mode 100644 gnome-base/gnome-shell/files/37e49e8a22c223b030297f9607bdb748c219e060.patch rename gnome-base/gnome-shell/{gnome-shell-45.6.ebuild => gnome-shell-45.6-r1.ebuild} (98%) diff --git a/gnome-base/gnome-shell/files/37e49e8a22c223b030297f9607bdb748c219e060.patch b/gnome-base/gnome-shell/files/37e49e8a22c223b030297f9607bdb748c219e060.patch new file mode 100644 index 0000000000000..d56db89bbacda --- /dev/null +++ b/gnome-base/gnome-shell/files/37e49e8a22c223b030297f9607bdb748c219e060.patch @@ -0,0 +1,42 @@ +From 37e49e8a22c223b030297f9607bdb748c219e060 Mon Sep 17 00:00:00 2001 +From: Philip Withnall +Date: Tue, 28 May 2024 18:08:27 +0100 +Subject: [PATCH] shell-camera-monitor: Fix warning about strict aliasing +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Changing type when casting a double pointer is not strictly allowed in +C. In order to fix compilation with `-fstrict-aliasing`, don’t use +`g_clear_pointer()` for clearing this pointer where the type expected by +the destroy notify function does not match the type stored in the +`ShellCameraMonitor` struct. + +This introduces no functional changes. + +Signed-off-by: Philip Withnall +Part-of: +--- + src/shell-camera-monitor.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/src/shell-camera-monitor.c b/src/shell-camera-monitor.c +index 1e2e0f14569..b2e6e0b2af2 100644 +--- a/src/shell-camera-monitor.c ++++ b/src/shell-camera-monitor.c +@@ -298,7 +298,11 @@ shell_camera_monitor_disconnect_core (ShellCameraMonitor *monitor) + g_clear_handle_id (&monitor->delayed_disable_id, g_source_remove); + + spa_hook_remove (&monitor->registry_listener); +- g_clear_pointer ((struct pw_proxy**) &monitor->registry, pw_proxy_destroy); ++ if (monitor->registry != NULL) ++ { ++ pw_proxy_destroy ((struct pw_proxy *) monitor->registry); ++ monitor->registry = NULL; ++ } + spa_hook_remove (&monitor->core_listener); + g_clear_pointer (&monitor->core, pw_core_disconnect); + } +-- +GitLab + diff --git a/gnome-base/gnome-shell/gnome-shell-45.6.ebuild b/gnome-base/gnome-shell/gnome-shell-45.6-r1.ebuild similarity index 98% rename from gnome-base/gnome-shell/gnome-shell-45.6.ebuild rename to gnome-base/gnome-shell/gnome-shell-45.6-r1.ebuild index 92b6670d0970f..c9c3acd73caaf 100644 --- a/gnome-base/gnome-shell/gnome-shell-45.6.ebuild +++ b/gnome-base/gnome-shell/gnome-shell-45.6-r1.ebuild @@ -134,6 +134,8 @@ BDEPEND=" PATCHES=( # Change favorites defaults, bug #479918 "${FILESDIR}"/40.0-defaults.patch + # backport fix for strict-aliasing violation with USE=pipewire + "${FILESDIR}"/37e49e8a22c223b030297f9607bdb748c219e060.patch ) src_prepare() { From d2e77ee9cec6ee8f70e1572e2a243f555c1241a3 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Jul 2024 20:03:52 -0400 Subject: [PATCH 4/7] media-video/webcamoid: update live to build with upstream changes Primarily, it has moved to Qt6 now. Signed-off-by: Eli Schwartz --- media-video/webcamoid/webcamoid-9999.ebuild | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/media-video/webcamoid/webcamoid-9999.ebuild b/media-video/webcamoid/webcamoid-9999.ebuild index c539d8831d386..c77abd8ab9198 100644 --- a/media-video/webcamoid/webcamoid-9999.ebuild +++ b/media-video/webcamoid/webcamoid-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -24,23 +24,16 @@ IUSE="alsa ffmpeg gstreamer jack libuvc oss portaudio pulseaudio qtaudio qtcamer REQUIRED_USE="v4lutils? ( v4l )" COMMON_DEPEND=" - dev-qt/qtconcurrent:5 - dev-qt/qtcore:5 - dev-qt/qtdbus:5 - dev-qt/qtdeclarative:5 - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtopengl:5 - dev-qt/qtquickcontrols2:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 + dev-qt/qtbase:6[concurrent,dbus,gui,network,opengl,widgets] + dev-qt/qtdeclarative:6 + dev-qt/qtsvg:6 ffmpeg? ( media-video/ffmpeg:= ) gstreamer? ( >=media-libs/gstreamer-1.6.0 ) jack? ( virtual/jack ) libuvc? ( media-libs/libuvc ) pulseaudio? ( media-libs/libpulse ) - qtaudio? ( dev-qt/qtmultimedia:5 ) - qtcamera? ( dev-qt/qtmultimedia:5 ) + qtaudio? ( dev-qt/qtmultimedia:6 ) + qtcamera? ( dev-qt/qtmultimedia:6 ) sdl? ( media-libs/libsdl2 ) v4l? ( media-libs/libv4l ) " @@ -64,6 +57,7 @@ src_configure() { "-DNOPIPEWIRE=1" "-DNOPORTAUDIO=1" # PortAudio not packaged for gentoo "-DNOALSA=$(usex alsa 0 1)" + "-DNOQTAUDIO=$(usex qtaudio 0 1)" "-DNOQTCAMERA=$(usex qtcamera 0 1)" "-DNOFFMPEG=$(usex ffmpeg 0 1)" "-DNOGSTREAMER=$(usex gstreamer 0 1)" From 7b8296a785ebbb0241d7465ff4d22687ebceed0a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Jul 2024 20:05:50 -0400 Subject: [PATCH 5/7] media-video/webcamoid: mark as LTO-unsafe Closes: https://bugs.gentoo.org/927104 Signed-off-by: Eli Schwartz --- media-video/webcamoid/webcamoid-9.1.1.ebuild | 9 +++++++-- media-video/webcamoid/webcamoid-9999.ebuild | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/media-video/webcamoid/webcamoid-9.1.1.ebuild b/media-video/webcamoid/webcamoid-9.1.1.ebuild index c539d8831d386..012242abe5a0c 100644 --- a/media-video/webcamoid/webcamoid-9.1.1.ebuild +++ b/media-video/webcamoid/webcamoid-9.1.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake xdg +inherit cmake flag-o-matic xdg DESCRIPTION="Full featured webcam capture application" HOMEPAGE="https://webcamoid.github.io" @@ -52,6 +52,11 @@ RDEPEND="${COMMON_DEPEND} " src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/927104 + # https://github.com/webcamoid/webcamoid/issues/702 + filter-lto + #Disable git in package source. If not disabled the cmake configure process will show #a lot of "fatal not a git repository" errors sed -i 's|find_program(GIT_BIN git)|#find_program(GIT_BIN git)|' libAvKys/cmake/ProjectCommons.cmake || die diff --git a/media-video/webcamoid/webcamoid-9999.ebuild b/media-video/webcamoid/webcamoid-9999.ebuild index c77abd8ab9198..2bcfa8ebd3432 100644 --- a/media-video/webcamoid/webcamoid-9999.ebuild +++ b/media-video/webcamoid/webcamoid-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake xdg +inherit cmake flag-o-matic xdg DESCRIPTION="Full featured webcam capture application" HOMEPAGE="https://webcamoid.github.io" @@ -45,6 +45,11 @@ RDEPEND="${COMMON_DEPEND} " src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/927104 + # https://github.com/webcamoid/webcamoid/issues/702 + filter-lto + #Disable git in package source. If not disabled the cmake configure process will show #a lot of "fatal not a git repository" errors sed -i 's|find_program(GIT_BIN git)|#find_program(GIT_BIN git)|' libAvKys/cmake/ProjectCommons.cmake || die From 6942dabd89785758c98a1d5b7b972ff57b4a42bf Mon Sep 17 00:00:00 2001 From: "Gavin D. Howard" Date: Fri, 14 Jun 2024 23:48:23 -0600 Subject: [PATCH 6/7] sci-calculators/bc-gh: add 6.7.6 Signed-off-by: Gavin D. Howard Closes: https://github.com/gentoo/gentoo/pull/37170 Signed-off-by: Eli Schwartz --- sci-calculators/bc-gh/Manifest | 1 + sci-calculators/bc-gh/bc-gh-6.7.6.ebuild | 77 ++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 sci-calculators/bc-gh/bc-gh-6.7.6.ebuild diff --git a/sci-calculators/bc-gh/Manifest b/sci-calculators/bc-gh/Manifest index b949909ea6f08..e9f5245f83e7c 100644 --- a/sci-calculators/bc-gh/Manifest +++ b/sci-calculators/bc-gh/Manifest @@ -1,2 +1,3 @@ DIST bc-6.5.0.tar.xz 461380 BLAKE2B e4aa633162d03fc5723e967ba81f985ab1b16e47b3c9a3ca1c32e9a717db682ce88cc6ba453d5e9b09539dcb8ddbb258b7b7dbdd2e27279355e3c35028d56130 SHA512 1cb03038d828a0b10734c29931777add8b22f194c507b8ff538ec1aa52a2a97a4ac2733d72cdb0710fdc6937807074e929f7918c56aaf5be8fbe908ea7c5a401 DIST bc-6.7.5.tar.xz 468572 BLAKE2B 3942cfbbc2b8a307bc24b9f7c3e037bce374bd17332b236a8c76ccacef1177e36669b7f61944a5c5791b0a436dec171991cfc821526865a816fba91e65aa1f04 SHA512 5f689fd20801ea7ede725ae5dc4e8744bdf2d72424bffef99c53193a950f4bd83b6eb4c5a07556576d0b3f5b6cd7f9fc7cbcb41d27891f488bb2e97a186f76a4 +DIST bc-6.7.6.tar.xz 473104 BLAKE2B 447cf15d94e8800ad81d734efef5a6b4dfdc4930eeb0bff3a4c093e31d65a8449cf3e685af077ae3397a1a730c4345fb7e95c82446d09b692f4fd6ef6e90ea88 SHA512 418ce61e8151a548627b794692325f48c68f8cedca7a0cb8d896bb74510f55b33486214af0af1b160c1f387f3d034300dff6fbc29c2d44d7b304a7a37c3c478b diff --git a/sci-calculators/bc-gh/bc-gh-6.7.6.ebuild b/sci-calculators/bc-gh/bc-gh-6.7.6.ebuild new file mode 100644 index 0000000000000..f60e406b86308 --- /dev/null +++ b/sci-calculators/bc-gh/bc-gh-6.7.6.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo + +MY_P="bc-${PV}" +DESCRIPTION="Implementation of POSIX bc with GNU extensions" +HOMEPAGE=" + https://git.gavinhoward.com/gavin/bc/ + https://github.com/gavinhoward/bc/ +" +SRC_URI=" + https://github.com/gavinhoward/bc/releases/download/${PV}/${MY_P}.tar.xz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="libedit readline" + +DEPEND=" + !readline? ( + libedit? ( dev-libs/libedit:= ) + ) + readline? ( + sys-libs/readline:= + sys-libs/ncurses:= + ) +" +RDEPEND=" + ${DEPEND} +" + +src_configure() { + local myconf=( + # GNU and BSD bc's have slightly different behavior. This bc can act + # like both, changing at runtime with environment variables, but it + # needs defaults, which can be set at compile time. This option sets all + # of the defaults to match the GNU bc/dc since it's common on Linux. + -pGNU + # A lot of test results are generated first by a bc compatible with the + # GNU bc. If there is no GNU bc installed, then those tests should be + # skipped. That's what this option does. Without it, we would have a + # dependency cycle. Those tests are super long, anyway. + -G + # Disables the automatic stripping of binaries. + -T + # Enables installing all locales, which is important for packages. + -l + # Disables some "problematic" tests that need specific options on Linux + # to not trigger the OOM killer because malloc() lies. + -P + ) + if use readline ; then + myconf+=( -r ) + elif use libedit ; then + myconf+=( -e ) + fi + + local -x EXECSUFFIX="-gh" + local -x PREFIX="${EPREFIX}/usr" + edo ./configure.sh "${myconf[@]}" +} + +src_test() { + # This is to fix a bug encountered on Arch. It is to ensure we don't get + # segfaults on `make check` when the error messages change because the error + # messages are passed to printf(); they have format specifiers. With these + # env vars, the internal error messages are used, instead of the installed + # locales, which might be different since the new locale files are not + # installed yet. (It is impossible to use uninstalled locales because of the + # poor design of POSIX locales.) + env LANG=C LC_ALL=C emake check +} From e940cb1186e1d25ab604cad4b3e02cb7a324b30e Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Jul 2024 23:13:00 -0400 Subject: [PATCH 7/7] net-dns/opendnssec: add patch to build with gcc 14 Upstream's website appears to be having... issues. I did find a bug reporting link but it led to a subdomain with broken SSL. Unclear how to progress further. The sum totality of the issues is a lot of missing headers. Not only did this affect both configure checks as well as the installable artifacts, but it also triggered LTO type mismatch errors when the missing stdlib headers resulted in fake guessed prototypes that then mismatched libc. Killing two birds with one stone! Closes: https://bugs.gentoo.org/871294 Closes: https://bugs.gentoo.org/879727 Closes: https://bugs.gentoo.org/924367 Closes: https://bugs.gentoo.org/927176 Signed-off-by: Eli Schwartz --- ...headers-to-pass-the-basic-c99-sniff-.patch | 89 +++++++++++++++++++ ....13.ebuild => opendnssec-2.1.13-r1.ebuild} | 4 + 2 files changed, 93 insertions(+) create mode 100644 net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch rename net-dns/opendnssec/{opendnssec-2.1.13.ebuild => opendnssec-2.1.13-r1.ebuild} (96%) diff --git a/net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch b/net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch new file mode 100644 index 0000000000000..3d0f1b8e73ef2 --- /dev/null +++ b/net-dns/opendnssec/files/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch @@ -0,0 +1,89 @@ +From cd5e920572eabc54dc7350c41ca172b49e48ac1a Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Sun, 7 Jul 2024 21:38:29 -0400 +Subject: [PATCH] include lots of headers to pass the basic c99 sniff test + +Including configure checks, which currently emit broken results. + +And in one case, include config.h early enough to do something. +--- + common/scheduler/task.c | 1 + + enforcer/src/daemon/time_leap_cmd.c | 2 +- + enforcer/src/utils/kaspcheck.c | 1 + + enforcer/src/utils/kc_helper.c | 1 + + m4/acx_broken_setres.m4 | 2 ++ + 5 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/common/scheduler/task.c b/common/scheduler/task.c +index 4dcf9e9..0dfa496 100644 +--- a/common/scheduler/task.c ++++ b/common/scheduler/task.c +@@ -40,6 +40,7 @@ + #include "duration.h" + #include "file.h" + #include "log.h" ++#include "utilities.h" + + static const char* task_str = "task"; + static pthread_mutex_t worklock = PTHREAD_MUTEX_INITIALIZER; +diff --git a/enforcer/src/daemon/time_leap_cmd.c b/enforcer/src/daemon/time_leap_cmd.c +index af41c8d..b17773c 100644 +--- a/enforcer/src/daemon/time_leap_cmd.c ++++ b/enforcer/src/daemon/time_leap_cmd.c +@@ -26,8 +26,8 @@ + * + */ + +-#include + #include "config.h" ++#include + + #include "file.h" + #include "duration.h" +diff --git a/enforcer/src/utils/kaspcheck.c b/enforcer/src/utils/kaspcheck.c +index 9bac3b7..fcdb36d 100644 +--- a/enforcer/src/utils/kaspcheck.c ++++ b/enforcer/src/utils/kaspcheck.c +@@ -25,6 +25,7 @@ + + #define _GNU_SOURCE + #include ++#include + #include + #include + #include +diff --git a/enforcer/src/utils/kc_helper.c b/enforcer/src/utils/kc_helper.c +index 72d181f..7f1278e 100644 +--- a/enforcer/src/utils/kc_helper.c ++++ b/enforcer/src/utils/kc_helper.c +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/m4/acx_broken_setres.m4 b/m4/acx_broken_setres.m4 +index 374cee0..c9eda46 100644 +--- a/m4/acx_broken_setres.m4 ++++ b/m4/acx_broken_setres.m4 +@@ -4,6 +4,7 @@ AC_DEFUN([ACX_BROKEN_SETRES],[ + AC_MSG_CHECKING(if setresuid seems to work) + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ ++#include + #include + #include + int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} +@@ -20,6 +21,7 @@ int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} + AC_MSG_CHECKING(if setresgid seems to work) + AC_RUN_IFELSE( + [AC_LANG_SOURCE([[ ++#include + #include + #include + int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} +-- +2.44.2 + diff --git a/net-dns/opendnssec/opendnssec-2.1.13.ebuild b/net-dns/opendnssec/opendnssec-2.1.13-r1.ebuild similarity index 96% rename from net-dns/opendnssec/opendnssec-2.1.13.ebuild rename to net-dns/opendnssec/opendnssec-2.1.13-r1.ebuild index 36ea2b0409121..7ae289d49c92f 100644 --- a/net-dns/opendnssec/opendnssec-2.1.13.ebuild +++ b/net-dns/opendnssec/opendnssec-2.1.13-r1.ebuild @@ -59,6 +59,10 @@ PATCHES=( "${FILESDIR}/${PN}-fix-run-dir-2.1.x.patch" "${FILESDIR}/${PN}-use-system-trang.patch" "${FILESDIR}/${PN}-fix-mysql.patch" + # fix some modern C errors due to missing includes. Not forwarded upstream, + # since upstream's website appears to be in a state of disarray and the + # "Bug Reporting" link doesn't work. + "${FILESDIR}"/0001-include-lots-of-headers-to-pass-the-basic-c99-sniff-.patch ) DOCS=( MIGRATION NEWS )