diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
commit | 17e5f1ea4a2e1c5664f96480ca46348d008e8711 (patch) | |
tree | 7166d1b58a582290a4ad23ff5882cca911b8035c /dev-libs | |
parent | a0ce545d52f231499bf9f3644493113d8af58ec9 (diff) |
gentoo auto-resync : 10:05:2024 - 00:01:13
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/Manifest.gz | bin | 98371 -> 98373 bytes | |||
-rw-r--r-- | dev-libs/fddl/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/fddl/fddl-20111124-r2.ebuild | 42 | ||||
-rw-r--r-- | dev-libs/fddl/files/fddl-20111124-disambiguate-variable-name.patch | 65 | ||||
-rw-r--r-- | dev-libs/glib/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/glib/glib-2.78.6.ebuild | 320 | ||||
-rw-r--r-- | dev-libs/igraph/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/igraph/igraph-0.10.10.ebuild | 3 | ||||
-rw-r--r-- | dev-libs/igraph/igraph-0.10.11.ebuild | 5 | ||||
-rw-r--r-- | dev-libs/igraph/igraph-0.10.12.ebuild | 49 | ||||
-rw-r--r-- | dev-libs/igraph/igraph-0.10.4-r1.ebuild | 3 | ||||
-rw-r--r-- | dev-libs/libtsm/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/libtsm/files/libtsm-clang16-static_assert-fix.patch | 10 | ||||
-rw-r--r-- | dev-libs/libtsm/libtsm-4.0.2_p20231223.ebuild | 5 | ||||
-rw-r--r-- | dev-libs/mpdecimal/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/mpdecimal/mpdecimal-4.0.0.ebuild | 6 | ||||
-rw-r--r-- | dev-libs/nss/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/nss/nss-3.100.ebuild | 418 |
18 files changed, 933 insertions, 12 deletions
diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz Binary files differindex 20e80382b8cc..30262222527d 100644 --- a/dev-libs/Manifest.gz +++ b/dev-libs/Manifest.gz diff --git a/dev-libs/fddl/Manifest b/dev-libs/fddl/Manifest index 60e8fafee3d3..2bf3492c3ce2 100644 --- a/dev-libs/fddl/Manifest +++ b/dev-libs/fddl/Manifest @@ -1,3 +1,5 @@ +AUX fddl-20111124-disambiguate-variable-name.patch 2912 BLAKE2B e705af11ff36f771fb0520b61d57974cc0c50a4746810ae32e2294b85803ac8d8e183cada2d45701e3e963925d7d233c04d47c078e1903a748d20c6b554846be SHA512 50f24f08dbcc1067a968004494f9391f45895f85ee660491d4cd2aaa806e41fe66c40a73e7683ce1208d3af9bbc7d9a17c9eefe73f2fdab19f7e6de75acd315d DIST fddl-20111124.tar.gz 29608 BLAKE2B 5769edc935c4606cbc9662712ea05ff2cdd44646e36ef71a2b185a9efdd8655fd8ff0c7a0f0ed105cfee44f18c43815984771e7a74a2329adc29f6ff544fe64d SHA512 d9c4f3f4e10b92ffc158a8cd24726ac6f95050256178a17b6d11aefd4b5786452b17ee96e4d4f4762d07c372c248aba1f22cbe2c03cd6b0f709aeeb4d15a0266 EBUILD fddl-20111124-r1.ebuild 1013 BLAKE2B c074eae4236d6cb6e58fa50484a4d128cb69351b1f0ce312b54aecfa1493924d7a527346b431dcb2baf824df690e03f6bfba8b6afd57c11d6a0500106b14b7f8 SHA512 8870e1d3cf7af6b6ce2421ae2b5e817fd0dad12ad9af68e3f8c524f508311224452a878825e9c50dfd31ae74165f12dfdf885609453e5b6c8e84586f3d637080 +EBUILD fddl-20111124-r2.ebuild 1095 BLAKE2B e0bea427b657614f7e8f6a6b9096317c53394b8561419c735146d94996dc81a0f52eb6eaa9289449a11305baf6e888a3e456ef096466dc786988d434e2b5301e SHA512 637bdb2d423f2e5f32e5a7b764268bfe7e10621e32d1792e4a4642a877f4462866017b5141176da5b9b01f96ed96b5dc596b8b8d672b221552bab515f73165e6 MISC metadata.xml 304 BLAKE2B 54999e09ff8bdc75a3f6e5765f4f68ff80f9c4f211ec4f284c7d2a98999e67b287765f3a4849230456b8928a539c1d48c4c23748608479013f4a5cbf5e05f91f SHA512 8aadb3cedf647b45308e8d817105ddd7157354b1e57f9599e32509ce344b1111152616370671396d6c7467f186875317c005cc9d44fcf827a9e6ee5081405696 diff --git a/dev-libs/fddl/fddl-20111124-r2.ebuild b/dev-libs/fddl/fddl-20111124-r2.ebuild new file mode 100644 index 000000000000..681f180b4619 --- /dev/null +++ b/dev-libs/fddl/fddl-20111124-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Free Decision Diagram Library" +HOMEPAGE="http://itval.sourceforge.net/ https://github.com/atomopawn/FDDL" +SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=( AUTHORS ChangeLog INSTALL RELEASE ) + +PATCHES=( "${FILESDIR}/${P}-disambiguate-variable-name.patch" ) + +S="${WORKDIR}"/FDDL-master + +src_prepare() { + cmake_src_prepare + + # Remove references to files that were not shipped, + # prefer dynamic linking + sed -i \ + -e 's|unaryoperation.cpp||g' \ + -e 's|unaryoperation.h||g' \ + -e 's|binaryoperation.cpp||g' \ + -e 's|binaryoperation.h||g' \ + -e '/add_library/s/FDDL /FDDL SHARED /' \ + -e '/add_library/s/FDDL /FDDL SHARED /' \ + -e "/^install/s:DESTINATION lib:DESTINATION $(get_libdir):" \ + src/CMakeLists.txt || die + # Do not build tests that depend on above files + sed -i \ + {,tests/}CMakeLists.txt \ + -e '/test_unaryop/d' \ + -e '/test_binaryop/d' \ + || die +} diff --git a/dev-libs/fddl/files/fddl-20111124-disambiguate-variable-name.patch b/dev-libs/fddl/files/fddl-20111124-disambiguate-variable-name.patch new file mode 100644 index 000000000000..c357f0574d29 --- /dev/null +++ b/dev-libs/fddl/files/fddl-20111124-disambiguate-variable-name.patch @@ -0,0 +1,65 @@ +Disambiguate variable name from std::array. + +FAILED: tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o +/usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=x86-64 -mtune=generic -MD -MT tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o -MF tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o.d -o tests/CMakeFiles/test_dynarray.dir/test_dynarray.cpp.o -c /var/tmp/portage/dev-libs/fddl-20111124-r1/work/fddl-20111124/tests/test_dynarray.cpp +/var/tmp/portage/dev-libs/fddl-20111124-r1/work/fddl-20111124/tests/test_dynarray.cpp: In function ‘bool test_access()’: +/var/tmp/portage/dev-libs/fddl-20111124-r1/work/fddl-20111124/tests/test_dynarray.cpp:9:11: error: reference to ‘array’ is ambiguous + 9 | *(array[0])=50; + | ^~~~~ +In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/memory_resource.h:47, + from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/string:58, + from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/locale_classes.h:40, + from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/ios_base.h:41, + from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/ios:44, + from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/ostream:40, + from /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/iostream:41, + from /var/tmp/portage/dev-libs/fddl-20111124-r1/work/fddl-20111124/tests/test_dynarray.cpp:1: +/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/tuple:2005:45: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> struct std::array’ + 2005 | template<typename _Tp, size_t _Nm> struct array; + | ^~~~~ +/var/tmp/portage/dev-libs/fddl-20111124-r1/work/fddl-20111124/tests/test_dynarray.cpp:6:15: note: ‘DynArray<int> array’ + 6 | DynArray<int> array; + | ^~~~~ + +diff -Nuar a/tests/test_dynarray.cpp b/tests/test_dynarray.cpp +--- a/tests/test_dynarray.cpp 2024-03-28 14:52:14.811666764 +0000 ++++ b/tests/test_dynarray.cpp 2024-03-28 14:51:55.379667423 +0000 +@@ -3,18 +3,18 @@ + + using namespace std; + +-DynArray<int> array; ++DynArray<int> test_array; + + bool test_access(){ +- *(array[0])=50; +- if (*(array[0]) != 50) ++ *(test_array[0])=50; ++ if (*(test_array[0]) != 50) + return false; + return true; + } + + bool test_extend(){ +- *(array[1024]) = 9999; +- if (*(array[1024]) != 9999) ++ *(test_array[1024]) = 9999; ++ if (*(test_array[1024]) != 9999) + return false; + return true; + } +@@ -23,12 +23,12 @@ + unsigned int fac = 1; + for (unsigned int i=1;i<11;i++){ + fac = fac * i; +- *(array[fac]) = i; ++ *(test_array[fac]) = i; + } + fac = 1; + for (unsigned int i=1; i<11;i++){ + fac = fac * i; +- if (*(array[fac]) != i){ ++ if (*(test_array[fac]) != i){ + return false; + } + } diff --git a/dev-libs/glib/Manifest b/dev-libs/glib/Manifest index d98f27d2280a..45bebbe84404 100644 --- a/dev-libs/glib/Manifest +++ b/dev-libs/glib/Manifest @@ -4,7 +4,9 @@ AUX glib-2.78.4-libpcre2-10.43.patch 1742 BLAKE2B 4fa283d28780e8376e99306bebd921 DIST glib-2.76.4.tar.xz 5274356 BLAKE2B c9ceb514ea81e1e6ab2d0efc82c48c0d8ae6c997fd0e3c56d47a5174b027f785b58266fff73b1d1132e272305126fbff22e3c65d47de46224cd12fa49796d5bc SHA512 f76932dc5090a44880373228e2b162f338415d06f7c90f2950eab1a43bb191c56a1797da4d377594f6a999197fef4defb848039259cfa4105bb68288a928f5b7 DIST glib-2.78.3.tar.xz 5321388 BLAKE2B 6ef754b15e1ce4377eafdfc317025ac65c3d8010a8816a0cef786cec9da2af9f7d7d1da735c971ab8c848b2dcec050330e5b0fdceb156a36d739848e6160cd19 SHA512 9c1af75fb973d23ce0286d5b7836eea45f9628c148ced5ac10e10abceda05024ae4c57f01439824d3287d986527500b7b959828b630b6e4a3314b5224f4d7246 DIST glib-2.78.4.tar.xz 5331892 BLAKE2B ada7134597d7d863e581a2bb1097ac07a63b27b53309aadab5b1d3686327ee718ad8c5c07af3fce5cc12328e728fc2c4df5fd9e69f431fa00dc634062ef7f926 SHA512 6f3a06e10e7373a2dbf0688512de4126472fb73cbec488b7983b5ffecff09c64d7e1ca462f892e8f215d3d277d103ca802bad7ef0bd0f91edf26fc6ce67187b6 +DIST glib-2.78.6.tar.xz 5344808 BLAKE2B d16173794c4aa019459cf8c8c84d4107fb8393828f41ec6c631b9452890f34f9022ed848a543ed134fdb8a575faef6b941cea3e05de512eb1b7a99f7601a2485 SHA512 8d75f8fd77b6309215ca86a0c7648878efe11051f18b279840c137669017ea4066388f8682367e4ea3f154333d833c9dc28ccd4a66a91f0c3854a40a2838f8da EBUILD glib-2.76.4.ebuild 10852 BLAKE2B fd5ef68de939553ae5523bc11fef106c720853175147746845b9c7171e01b2c8a56626c657ea1a1f98154f89d11a1f75c483123a958265251fee431b60ad736f SHA512 7fe4fe4f7742a1a2d12ba4ff030cc9a409ab8de45b8361e49b780f0a8865ccea2cdc9395f81ad67b07bc552a4b4bd04009c51b832d69197d8305991461806d56 EBUILD glib-2.78.3.ebuild 10852 BLAKE2B fd5ef68de939553ae5523bc11fef106c720853175147746845b9c7171e01b2c8a56626c657ea1a1f98154f89d11a1f75c483123a958265251fee431b60ad736f SHA512 7fe4fe4f7742a1a2d12ba4ff030cc9a409ab8de45b8361e49b780f0a8865ccea2cdc9395f81ad67b07bc552a4b4bd04009c51b832d69197d8305991461806d56 EBUILD glib-2.78.4-r1.ebuild 11097 BLAKE2B 36e0cfd571bf729138f97b4f59385942b41cc35383a52be2c2e6fbc72734edd1e48e7b74b153b0f828186f6b603e2d07e4f8e7a57429dbe5743eed6bed046db3 SHA512 19c6665c651ab8f6d264574b37b3e10f159c41484d967193a5914a3ec98af909595941c151f11466bbf425bd2931803552a75abe2711b74c7811b2eb3d30700e +EBUILD glib-2.78.6.ebuild 11048 BLAKE2B d727b8222e0ea95aaba141bd36759cd1b3b42bc7dda97f3dc6393ba6b997cdcf3e01aa375f9f19552b55254d2d3d1d468ede244a86c97a9bf089e734bcba30a2 SHA512 0d6c482d2b2f51469cbdfe81621d3c25e077e31805a880b85545b314cb09681751b8e27dab9193cb82c409945884fbddbccf1b97a3944b928c912296292725c9 MISC metadata.xml 1358 BLAKE2B ca4bb1facd33c64aa2d8c2197c97a68e08425bf3bb7cc66b3867e208a8032029cbf3d9bf3b23d38c8268228553d80d0334eacfb61cee82e19f5a7604de26d76d SHA512 d89242c1102b798d82631c4179c362461cf19d12e33cb30afcc3551f2c9b2970ad5f3a594fae504b444de294659693fc76ea560c54794692e492d4eebe23b7b9 diff --git a/dev-libs/glib/glib-2.78.6.ebuild b/dev-libs/glib/glib-2.78.6.ebuild new file mode 100644 index 000000000000..339ee604f85f --- /dev/null +++ b/dev-libs/glib/glib-2.78.6.ebuild @@ -0,0 +1,320 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_REQ_USE="xml(+)" +PYTHON_COMPAT=( python3_{10..12} ) + +inherit gnome.org gnome2-utils linux-info meson-multilib multilib python-any-r1 toolchain-funcs xdg + +DESCRIPTION="The GLib library of C routines" +HOMEPAGE="https://www.gtk.org/" + +LICENSE="LGPL-2.1+" +SLOT="2" +IUSE="dbus debug +elf gtk-doc +mime selinux static-libs sysprof systemtap test utils xattr" +RESTRICT="!test? ( test )" +REQUIRED_USE="gtk-doc? ( test )" # Bug #777636 + +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +# * elfutils (via libelf) does not build on Windows. gresources are not embedded +# within ELF binaries on that platform anyway and inspecting ELF binaries from +# other platforms is not that useful so exclude the dependency in this case. +# * Technically static-libs is needed on zlib, util-linux and perhaps more, but +# these are used by GIO, which glib[static-libs] consumers don't really seem +# to need at all, thus not imposing the deps for now and once some consumers +# are actually found to static link libgio-2.0.a, we can revisit and either add +# them or just put the (build) deps in that rare consumer instead of recursive +# RDEPEND here (due to lack of recursive DEPEND). +RDEPEND=" + !<dev-util/gdbus-codegen-${PV} + >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] + >=dev-libs/libpcre2-10.32:0=[${MULTILIB_USEDEP},unicode(+),static-libs?] + >=dev-libs/libffi-3.0.13-r1:=[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + >=virtual/libintl-0-r2[${MULTILIB_USEDEP}] + kernel_linux? ( >=sys-apps/util-linux-2.23[${MULTILIB_USEDEP}] ) + selinux? ( >=sys-libs/libselinux-2.2.2-r5[${MULTILIB_USEDEP}] ) + xattr? ( !elibc_glibc? ( >=sys-apps/attr-2.4.47-r1[${MULTILIB_USEDEP}] ) ) + elf? ( virtual/libelf:0= ) + sysprof? ( >=dev-util/sysprof-capture-3.40.1:4[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND}" +# libxml2 used for optional tests that get automatically skipped +BDEPEND=" + app-text/docbook-xsl-stylesheets + dev-libs/libxslt + >=sys-devel/gettext-0.19.8 + gtk-doc? ( >=dev-util/gtk-doc-1.33 + app-text/docbook-xml-dtd:4.2 + app-text/docbook-xml-dtd:4.5 ) + systemtap? ( >=dev-debug/systemtap-1.3 ) + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/packaging[${PYTHON_USEDEP}] + ') + test? ( >=sys-apps/dbus-1.2.14 ) + virtual/pkgconfig +" +# TODO: >=dev-util/gdbus-codegen-${PV} test dep once we modify gio/tests/meson.build to use external gdbus-codegen + +PDEPEND=" + dbus? ( gnome-base/dconf ) + mime? ( x11-misc/shared-mime-info ) +" +# shared-mime-info needed for gio/xdgmime, bug #409481 +# dconf is needed to be able to save settings, bug #498436 + +MULTILIB_CHOST_TOOLS=( + /usr/bin/gio-querymodules$(get_exeext) +) + +PATCHES=( + "${FILESDIR}"/${PN}-2.64.1-mark-gdbus-server-auth-test-flaky.patch + "${FILESDIR}"/${PN}-2.78.4-distutils.patch +) + +python_check_deps() { + python_has_version "dev-python/packaging[${PYTHON_USEDEP}]" +} + +pkg_setup() { + if use kernel_linux ; then + CONFIG_CHECK="~INOTIFY_USER" + if use test ; then + CONFIG_CHECK="~IPV6" + WARNING_IPV6="Your kernel needs IPV6 support for running some tests, skipping them." + fi + linux-info_pkg_setup + fi + python-any-r1_pkg_setup +} + +src_prepare() { + if use test; then + # TODO: Review the test exclusions, especially now with meson + # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629, upstream bug #629163 + if ! has_version dev-util/desktop-file-utils ; then + ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system," + ewarn "think on installing it to get these tests run." + sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die + sed -i -e "/g_test_add_func/d" gio/tests/desktop-app-info.c || die + fi + + # gdesktopappinfo requires existing terminal (gnome-terminal or any + # other), falling back to xterm if one doesn't exist + #if ! has_version x11-terms/xterm && ! has_version x11-terms/gnome-terminal ; then + # ewarn "Some tests will be skipped due to missing terminal program" + # These tests seem to sometimes fail even with a terminal; skip for now and reevulate with meson + # Also try https://gitlab.gnome.org/GNOME/glib/issues/1601 once ready + # for backport (or in a bump) and file new issue if still fails + sed -i -e "/appinfo\/launch/d" gio/tests/appinfo.c || die + # desktop-app-info/launch* might fail similarly + sed -i -e "/desktop-app-info\/launch-as-manager/d" gio/tests/desktop-app-info.c || die + #fi + + # https://bugzilla.gnome.org/show_bug.cgi?id=722604 + sed -i -e "/timer\/stop/d" glib/tests/timer.c || die + sed -i -e "/timer\/basic/d" glib/tests/timer.c || die + + ewarn "Tests for search-utils have been skipped" + sed -i -e "/search-utils/d" glib/tests/meson.build || die + + # Play nice with network-sandbox, but this approach would defeat the purpose of the test + #sed -i -e "s/localhost/127.0.0.1/g" gio/tests/gsocketclient-slow.c || die + else + # Don't build tests, also prevents extra deps, bug #512022 + sed -i -e '/subdir.*tests/d' {.,gio,glib}/meson.build || die + fi + + # Don't build fuzzing binaries - not used + sed -i -e '/subdir.*fuzzing/d' meson.build || die + + # gdbus-codegen is a separate package + sed -i -e '/install_dir/d' gio/gdbus-2.0/codegen/meson.build || die + + # Same kind of meson-0.50 issue with some installed-tests files; will likely be fixed upstream soon + sed -i -e '/install_dir/d' gio/tests/meson.build || die + + cat > "${T}/glib-test-ld-wrapper" <<-EOF + #!/usr/bin/env sh + exec \${LD:-ld} "\$@" + EOF + chmod a+x "${T}/glib-test-ld-wrapper" || die + sed -i -e "s|'ld'|'${T}/glib-test-ld-wrapper'|g" gio/tests/meson.build || die + + # make default sane for us + if use prefix ; then + sed -i -e "s:/usr/local:${EPREFIX}/usr:" gio/xdgmime/xdgmime.c || die + # bug #308609, without path, bug #314057 + export PERL=perl + fi + + if [[ ${CHOST} == *-solaris* ]] ; then + # fix standards conflicts + sed -i \ + -e 's/\<\(_XOPEN_SOURCE_EXTENDED\)\>/_POSIX_PTHREAD_SEMANTICS/' \ + -e '/\<_XOPEN_SOURCE\>/s/\<2\>/600/' \ + meson.build || die + sed -i -e '/#define\s\+_POSIX_SOURCE/d' \ + glib/giounix.c || die + fi + + # disable native macOS integrations + sed -i -e '/glib_conf.set(.HAVE_\(CARBON\|COCOA\).,/s/true/false/' \ + meson.build || die + sed -i \ + -e '/AvailabilityMacros.h/d' \ + gio/giomodule.c || die + + default + gnome2_environment_reset + # TODO: python_name sedding for correct python shebang? Might be relevant mainly for glib-utils only +} + +multilib_src_configure() { + # TODO: figure a way to pass appropriate values for all cross properties + # that glib uses (search for get_cross_property) + #if tc-is-cross-compiler ; then + # https://bugzilla.gnome.org/show_bug.cgi?id=756473 + # TODO-meson: This should be in meson cross file as 'growing_stack' + # property; and more, look at get_cross_property + #case ${CHOST} in + #hppa*|metag*) export glib_cv_stack_grows=yes ;; + #*) export glib_cv_stack_grows=no ;; + #esac + #fi + + local emesonargs=( + $(meson_feature debug glib_debug) + -Ddefault_library=$(usex static-libs both shared) + -Druntime_dir="${EPREFIX}"/run + $(meson_feature selinux) + $(meson_use xattr) + -Dlibmount=enabled # only used if host_system == 'linux' + -Dman=true + $(meson_use systemtap dtrace) + $(meson_use systemtap) + $(meson_feature sysprof) + $(meson_native_use_bool gtk-doc gtk_doc) + $(meson_use test tests) + -Dinstalled_tests=false + -Dnls=enabled + -Doss_fuzz=disabled + $(meson_native_use_feature elf libelf) + -Dmultiarch=false + ) + meson_src_configure +} + +multilib_src_test() { + export XDG_CONFIG_DIRS=/etc/xdg + export XDG_DATA_DIRS=/usr/local/share:/usr/share + export G_DBUS_COOKIE_SHA1_KEYRING_DIR="${T}/temp" + export LC_TIME=C # bug #411967 + export TZ=UTC + unset GSETTINGS_BACKEND # bug #596380 + python_setup + + # https://bugs.gentoo.org/839807 + local -x SANDBOX_PREDICT=${SANDBOX_PREDICT} + addpredict /usr/b + + # Related test is a bit nitpicking + mkdir "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" + chmod 0700 "$G_DBUS_COOKIE_SHA1_KEYRING_DIR" + + meson_src_test --timeout-multiplier 20 --no-suite flaky +} + +multilib_src_install() { + meson_src_install + keepdir /usr/$(get_libdir)/gio/modules +} + +multilib_src_install_all() { + # These are installed by dev-util/glib-utils + # TODO: With patching we might be able to get rid of the python-any deps + # and removals, and test depend on glib-utils instead; revisit now with + # meson + rm "${ED}/usr/bin/glib-genmarshal" || die + rm "${ED}/usr/share/man/man1/glib-genmarshal.1" || die + rm "${ED}/usr/bin/glib-mkenums" || die + rm "${ED}/usr/share/man/man1/glib-mkenums.1" || die + rm "${ED}/usr/bin/gtester-report" || die + rm "${ED}/usr/share/man/man1/gtester-report.1" || die + # gdbus-codegen manpage installed by dev-util/gdbus-codegen + rm "${ED}/usr/share/man/man1/gdbus-codegen.1" || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # Make gschemas.compiled belong to glib alone + local cache="/usr/share/glib-2.0/schemas/gschemas.compiled" + + if [[ -e ${EROOT}${cache} ]]; then + cp "${EROOT}"${cache} "${ED}"/${cache} || die + else + touch "${ED}"${cache} || die + fi + + multilib_pkg_preinst() { + # Make giomodule.cache belong to glib alone + local cache="/usr/$(get_libdir)/gio/modules/giomodule.cache" + + if [[ -e ${EROOT}${cache} ]]; then + cp "${EROOT}"${cache} "${ED}"${cache} || die + else + touch "${ED}"${cache} || die + fi + } + + # Don't run the cache ownership when cross-compiling, as it would end up with an empty cache + # file due to inability to create it and GIO might not look at any of the modules there + if ! tc-is-cross-compiler ; then + multilib_foreach_abi multilib_pkg_preinst + fi +} + +pkg_postinst() { + xdg_pkg_postinst + # glib installs no schemas itself, but we force update for fresh install in case + # something has dropped in a schemas file without direct glib dep; and for upgrades + # in case the compiled schema format could have changed + gnome2_schemas_update + + multilib_pkg_postinst() { + gnome2_giomodule_cache_update \ + || die "Update GIO modules cache failed (for ${ABI})" + } + if ! tc-is-cross-compiler ; then + multilib_foreach_abi multilib_pkg_postinst + else + ewarn "Updating of GIO modules cache skipped due to cross-compilation." + ewarn "You might want to run gio-querymodules manually on the target for" + ewarn "your final image for performance reasons and re-run it when packages" + ewarn "installing GIO modules get upgraded or added to the image." + fi + + for v in ${REPLACING_VERSIONS}; do + if ver_test "$v" "-lt" "2.63.6"; then + ewarn "glib no longer installs the gio-launch-desktop binary. You may need" + ewarn "to restart your session for \"Open With\" dialogs to work." + fi + done +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update + + if [[ -z ${REPLACED_BY_VERSION} ]]; then + multilib_pkg_postrm() { + rm -f "${EROOT}"/usr/$(get_libdir)/gio/modules/giomodule.cache + } + multilib_foreach_abi multilib_pkg_postrm + rm -f "${EROOT}"/usr/share/glib-2.0/schemas/gschemas.compiled + fi +} diff --git a/dev-libs/igraph/Manifest b/dev-libs/igraph/Manifest index 3015d562b669..6fa72be1d513 100644 --- a/dev-libs/igraph/Manifest +++ b/dev-libs/igraph/Manifest @@ -1,8 +1,10 @@ AUX 808c083fbe661207ee8f0fcd3be5096b5dc17d0d.patch 1420 BLAKE2B c351b9f764dd7b33e153528aab123bf47a36032784d3626d56abc8f9eae7509acebde5641b6ceaadb75e8fad802d749fc120484bf11203d2d5b23b2736aea6a5 SHA512 a6bbd6a99eaa93b835fb3e15a6a77d6e1dd9d098c7e0728fbe2be77a56bf9fff0ea9e551c5e5d0d90c0b79292699997bd709416931f05191097524a55d9be551 DIST igraph-0.10.10.tar.gz 4336247 BLAKE2B cef87afe544d09446c999894c44e1d56120cac74b6af5d749835fbf60e5ae0f1676d6754e084f167d23718c6ce9f7b8cee159d3d670d1d5f1f495775c7b0d2f0 SHA512 d4b8d29f9c39f8390c442877183e64c442fccbc6a02b3aed5c1d8871ca5998d1a168f392f8dde26a8c3593ed6c09a66a200ac1155fbde87d368b101011bb122c DIST igraph-0.10.11.tar.gz 4349830 BLAKE2B 3aae088115148d1f965a52f01c950000097520fb0a150d2ad1fabb96cff434a9b548a6c17a10b9e0ebad3a577c2423ac5260cd28223147d3dc71b0d4fe139a95 SHA512 d6978589f12ed20b87777394b46f47b4ffc045ef693e5b4fc90163b9482361b2bf0ed2bb04aa99bf4a0653f7e4355cd480b0a165213d90ff7188ef6c86147c86 +DIST igraph-0.10.12.tar.gz 4373463 BLAKE2B b7fdd7046185bf501c9302721f6606e6affc0d91c16d195c6bd69e0b32f9dca7af701a963fd4a8b8558ac843fe4a5136c7fce2fe5595db469818e514db2325ac SHA512 1a7b055ab2148fdf04187d785895b930ae2a54ae0240ea9656e129a38347b1caeb28dda5a3a7e34282462363150d7afd25acf8cd335577ed441b8a5cecc0dd25 DIST igraph-0.10.4.tar.gz 4279321 BLAKE2B 4e1fc8e8d6dd38cdb24ec564f51f2924e457376c258497b51d7dd4cec88d2226d5b202cdcfa69560e43fdb3cbd49656511178acd2ed705b4af26b1947a92f1ab SHA512 71bcec5f0ba100aae7614753f9232a4221580b822b4dc120e3a80eab59d70c42aedddb00728eb13faf7e522332c514c2e030314c416ded8a70e5de990ea8039b -EBUILD igraph-0.10.10.ebuild 1134 BLAKE2B e6882d968a857612b02691a61b61b6fd23d3669b7fb96e4fae04e714b807d61fb5254a575ecdc7318c7698224b05d25464112d2efe93a2eb441402f807c69c60 SHA512 7db52d205e3baed5c4d484e5241860c4609d4ed3288ff24f329ca78c8673cd22e8ae95c9fce12133ec1f3e9ed9d436273767ae70d48dacdce5971fe5d904225f -EBUILD igraph-0.10.11.ebuild 1023 BLAKE2B f436f4fda40a31d2e9a3a2178189b3d5d654bf044032a87fb3f5338df57610164777deda183a2fcdc80715be17abfd08ff89b30dedad9d469a49d98f682663f6 SHA512 7f12475cf879552b2240a84387cb9cc7a29f232298ed3d27ce73dc5b21989b8d6b63e75c64c0a86e562896d87f12f0491444c611c7556c4ba16a011e51354a8b -EBUILD igraph-0.10.4-r1.ebuild 1145 BLAKE2B 7e0ed002bd427552556de34a7dfdb1744a6bad829640940c9f355f9d0ecc4568d962b54bcc80a1d73adbf08fc8f114cd74c27dae4ba47350f1ee18fd44db0040 SHA512 b28e0fe0ac888f2a9c4becb0f9cd91137cf31b6287ca3a88f4fd849da6d3668e6343e713a51bcf90636af9aa50c28461703790dd4b9e55b4d18bde6c588de293 +EBUILD igraph-0.10.10.ebuild 1169 BLAKE2B f8edae6a1d70ecf958183aeba93ff07fff359c537cecdc79b36e70439764a949bad399b6edd50552bd1e4cb7e6093802e4ba6966bdb83eb0499b74e9e1231336 SHA512 25e8080e5d11a5e531504ee6ea05bf19ef02dc0c75ebd47c85bd4ac1fd67d87ac6676dbd8ed3f11694dbc0d404fe04f81b2e1b93e435a44fbf4a18fee101fd66 +EBUILD igraph-0.10.11.ebuild 1056 BLAKE2B 1b5873fb57be9a76536cb5f17e1c22b5ed71a99a4b23ed7714005e09b8ec86b939c06c763c3b8e81c127f8f11bd7c0fa32fc8d398de1e5849b1241651acfe5cd SHA512 9e3a91f79f2ff58bcfe054e7bbb9234bf91be040b0623b4032cf2c98c8355d4f812e96c4ec4462d2d74c07dfaf053dc89a6f33753d845bb61203744c1d6daa26 +EBUILD igraph-0.10.12.ebuild 1058 BLAKE2B 8d4facf905ef8a6b8fd610f473999e8e5bbc7b799cd0d914f73b74ac11256b8b6f5158df6b5f92ef26162c6d2b1687ab48384d1a379b409f977e818f22005d87 SHA512 cf3e26131922ecbdd9626868cfb5f00cfba6b8125013fcbc437b8854b7bfc0d9c2f5d0d0c77ff372f918233ef60cc7b9d9d63dbd9808caaa1033f667d74e3836 +EBUILD igraph-0.10.4-r1.ebuild 1180 BLAKE2B 717197ee24b471a971c57612fd21f88790299c973ba6cf0f63b71904ad3f5916dfbbf81f484e7ca6020031a30bf5405dd8c0903d8ed7ab3358220fd0277beda9 SHA512 3c511e7b0a170f3bbe23a7bdc1a1e1dc0611e6a0bb983ff656e74769257f685092acc922a34ec3e823e7db84dca1cbaa10f27e609f6ead9a0bdb00b7cc82fffa MISC metadata.xml 758 BLAKE2B 90df5f127db20d8d486a195a6c10d1e2159d2ca8ba1706adfec85c5317ef9b831ddf3595ab0f157cb30627db863fdeb72ce05d14bcd07291ec4735fd73a5e6b0 SHA512 3a5a7afe9387658aa41d587588af41b3cfae0c269e7da4badae23180b18c9854964942c292849321bc2c76feadcd4098223642f56736ca7a21a009d673446801 diff --git a/dev-libs/igraph/igraph-0.10.10.ebuild b/dev-libs/igraph/igraph-0.10.10.ebuild index f270109ee806..7f5111f0726e 100644 --- a/dev-libs/igraph/igraph-0.10.10.ebuild +++ b/dev-libs/igraph/igraph-0.10.10.ebuild @@ -9,7 +9,7 @@ DESCRIPTION="Creating and manipulating undirected and directed graphs" HOMEPAGE="https://igraph.org/" SRC_URI="https://github.com/igraph/igraph/releases/download/${PV}/${P}.tar.gz" -LICENSE="GPL-2" +LICENSE="GPL-2+" SLOT="0/0" KEYWORDS="~amd64 ~x86" @@ -43,6 +43,7 @@ src_configure() { -DIGRAPH_USE_INTERNAL_LAPACK=OFF -DIGRAPH_USE_INTERNAL_PLFIT=OFF -DIGRAPH_ENABLE_TLS=$(usex threads) + -DIGRAPH_WARNINGS_AS_ERRORS=OFF -DBUILD_TESTING=$(usex test) ) cmake_src_configure diff --git a/dev-libs/igraph/igraph-0.10.11.ebuild b/dev-libs/igraph/igraph-0.10.11.ebuild index 2056002ac6f3..280105ef5c8d 100644 --- a/dev-libs/igraph/igraph-0.10.11.ebuild +++ b/dev-libs/igraph/igraph-0.10.11.ebuild @@ -9,9 +9,9 @@ DESCRIPTION="Creating and manipulating undirected and directed graphs" HOMEPAGE="https://igraph.org/" SRC_URI="https://github.com/igraph/igraph/releases/download/${PV}/${P}.tar.gz" -LICENSE="GPL-2" +LICENSE="GPL-2+" SLOT="0/0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 x86" IUSE="debug test threads" RESTRICT="!test? ( test )" @@ -38,6 +38,7 @@ src_configure() { -DIGRAPH_USE_INTERNAL_LAPACK=OFF -DIGRAPH_USE_INTERNAL_PLFIT=OFF -DIGRAPH_ENABLE_TLS=$(usex threads) + -DIGRAPH_WARNINGS_AS_ERRORS=OFF -DBUILD_TESTING=$(usex test) ) cmake_src_configure diff --git a/dev-libs/igraph/igraph-0.10.12.ebuild b/dev-libs/igraph/igraph-0.10.12.ebuild new file mode 100644 index 000000000000..30a8f524a0b5 --- /dev/null +++ b/dev-libs/igraph/igraph-0.10.12.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Creating and manipulating undirected and directed graphs" +HOMEPAGE="https://igraph.org/" +SRC_URI="https://github.com/igraph/igraph/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0/0" +KEYWORDS="~amd64 ~x86" + +IUSE="debug test threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/gmp:0= + dev-libs/libxml2 + sci-libs/arpack + sci-mathematics/glpk:= + sci-mathematics/plfit + virtual/blas + virtual/lapack" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DUSE_CCACHE=OFF + -DIGRAPH_GLPK_SUPPORT=ON + -DIGRAPH_GRAPHML_SUPPORT=ON + -DIGRAPH_USE_INTERNAL_ARPACK=OFF + -DIGRAPH_USE_INTERNAL_BLAS=OFF + -DIGRAPH_USE_INTERNAL_GLPK=OFF + -DIGRAPH_USE_INTERNAL_GMP=OFF + -DIGRAPH_USE_INTERNAL_LAPACK=OFF + -DIGRAPH_USE_INTERNAL_PLFIT=OFF + -DIGRAPH_ENABLE_TLS=$(usex threads) + -DIGRAPH_WARNINGS_AS_ERRORS=OFF + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} + +src_test() { + cmake_build check +} diff --git a/dev-libs/igraph/igraph-0.10.4-r1.ebuild b/dev-libs/igraph/igraph-0.10.4-r1.ebuild index fd9d1d6f77ec..a8d0b8c64efd 100644 --- a/dev-libs/igraph/igraph-0.10.4-r1.ebuild +++ b/dev-libs/igraph/igraph-0.10.4-r1.ebuild @@ -9,7 +9,7 @@ DESCRIPTION="Creating and manipulating undirected and directed graphs" HOMEPAGE="https://igraph.org/" SRC_URI="https://github.com/igraph/igraph/releases/download/${PV}/${P}.tar.gz" -LICENSE="GPL-2" +LICENSE="GPL-2+" SLOT="0/0" KEYWORDS="amd64 x86" @@ -44,6 +44,7 @@ src_configure() { -DIGRAPH_USE_INTERNAL_LAPACK=OFF -DIGRAPH_USE_INTERNAL_PLFIT=OFF -DIGRAPH_ENABLE_TLS=$(usex threads) + -DIGRAPH_WARNINGS_AS_ERRORS=OFF -DBUILD_TESTING=$(usex test) ) cmake_src_configure diff --git a/dev-libs/libtsm/Manifest b/dev-libs/libtsm/Manifest index 6868bf6da5a8..f1d77677cdd0 100644 --- a/dev-libs/libtsm/Manifest +++ b/dev-libs/libtsm/Manifest @@ -1,4 +1,5 @@ +AUX libtsm-clang16-static_assert-fix.patch 286 BLAKE2B d3fdf796e68f3b2ce418f2fb82d75fc6a66133955431d2ced9e324554381a391ac33450ee40b2bb10a09831b17de549dd4ec45a69689d81a0ee5925e21af2b9c SHA512 f07dc13df4fbecc02d0b6525b8b63dcf8066b605a8b58a14201dda15aedea9115c9aadb95145e5cccf4ef15a42ed8fd56a35f48bf6fb5a415631b346a85f42d5 AUX libtsm-cmake.patch 500 BLAKE2B b666c52e7c271df3499134cf6f90a9ade31158fdf862851945434df6b40305c785f011ee447a1460b8a783089d69627e075762d55012a8075982dbeeb093d91c SHA512 53673ed55b66bc196cda7cb9aaf151304cfb3e6127be1c349a7b14dd250b346e4b544e7a1f2b03f7da090b33a459cf2e801daa8de74a3e5d04daa1fcdf09ab29 DIST libtsm-4.0.2_p20231223.tar.gz 157342 BLAKE2B 082637022397b210ef95e1a0f827d4d340f60bf7a6f962d4c86087c0c604dea5fe2bd3a9e879008353726a5d6b4588da93b5c68b37501fa47c9c3cccf10de431 SHA512 f428969b8e108159671c6bb10898dcf07e829b7f2118e52331ca48d5f0efc212c14e42f5ac909adda5c5473980341828d085043687636c378f598479d7cb37ef -EBUILD libtsm-4.0.2_p20231223.ebuild 479 BLAKE2B 500d0e5d86f94274c5e10d4421ba6e36bb67550295409f2440998007d98f53bd400b902a09325b76d48e51ae03a2b3c03cea3341bfcfecc6e25791cd9294d730 SHA512 b39b35e867d6e3f0ccae1ee6839a728012e57e55441d5295b85aa9e7afc1e3158440607dde010fa94d86f3ffd7e7168bba75234f822d69c7c6b9a1bfa8a19423 +EBUILD libtsm-4.0.2_p20231223.ebuild 533 BLAKE2B 8acf059401d1cf645290f59a06b0b9a4b7ae1134524ff17eda382b94f1c405275367daf2651b2746ac26fef0f856ad47c0ff427ca1a5ad80c4653a500c749d6c SHA512 d27df2dbc77d7586ae30db4105c9dc75c8c9a79e88445f301dd61bdf50c8ec2dad5521e2403937192a1440f3a81f5ce9e97cba306092ee8545d090eb69071c3c MISC metadata.xml 314 BLAKE2B dc20ed24813bd8e2505c4dedf05346a3020120f7615f36077f6e44fb4dd9fa9c56552a8981d428795a74b986d73ff8fbb9071a74e906805930887328f1c28a21 SHA512 2da2ce098698f75d07c22696e2059e89d03072d52c5764d49aa8b948ee91850c51d4f8009ad4eae53abf1ee816b6ae0e76fa8d50725dcbfbb8c431b5d4f835a8 diff --git a/dev-libs/libtsm/files/libtsm-clang16-static_assert-fix.patch b/dev-libs/libtsm/files/libtsm-clang16-static_assert-fix.patch new file mode 100644 index 000000000000..702ae5faaa4d --- /dev/null +++ b/dev-libs/libtsm/files/libtsm-clang16-static_assert-fix.patch @@ -0,0 +1,10 @@ +Bug: https://bugs.gentoo.org/895052 +--- a/cmake/CompileOptions.cmake ++++ b/cmake/CompileOptions.cmake +@@ -1,5 +1,5 @@ + # Set compiler flags +-set(CMAKE_C_STANDARD 99) ++set(CMAKE_C_STANDARD 11) + set(CMAKE_C_STANDARD_REQUIRED ON) + + # analogous to AC_USE_SYSTEM_EXTENSIONS in configure.ac diff --git a/dev-libs/libtsm/libtsm-4.0.2_p20231223.ebuild b/dev-libs/libtsm/libtsm-4.0.2_p20231223.ebuild index c40acccb78a9..c61a7f827c19 100644 --- a/dev-libs/libtsm/libtsm-4.0.2_p20231223.ebuild +++ b/dev-libs/libtsm/libtsm-4.0.2_p20231223.ebuild @@ -16,4 +16,7 @@ LICENSE="LGPL-2.1 MIT" SLOT="0/4" KEYWORDS="~amd64 ~x86" -PATCHES=( "${FILESDIR}/${PN}-cmake.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-cmake.patch" + "${FILESDIR}/${PN}-clang16-static_assert-fix.patch" +) diff --git a/dev-libs/mpdecimal/Manifest b/dev-libs/mpdecimal/Manifest index af272f4fd270..98bc68b3da4f 100644 --- a/dev-libs/mpdecimal/Manifest +++ b/dev-libs/mpdecimal/Manifest @@ -1,4 +1,4 @@ DIST dectest.zip 791733 BLAKE2B ba74ee96f6687ce34cac8406fd7fd1f743d72647a5f883f1054829d992d4dc0f61c9e3b88e2529f425cc2fbda14dfc372b3fbfafe6553baabb3244172fed712f SHA512 05f9d12aec1ebfc9ca211b01705b41c5cd1bbc54d9aa6c4799b40fb3ab1835433fd1a277735d26d2530c3793c58b107b3abb1c31f64340e5e9d7856d92c821cf DIST mpdecimal-4.0.0.tar.gz 315325 BLAKE2B aed5b6d5c03b12017989bbac9a166366e800ce5ee8d2fad5a1b81def48877126233998df306968902c728776616b1c06ce0ef05ea066c07daf841a53541a09f9 SHA512 7610ac53ac79f7a8a33fa7a3e61515810444ec73ebca859df7a9ddc18e96b990c99323172810c9cc7f6d6e1502c0be308cd443d6c2d5d0c871648e4842e05d59 -EBUILD mpdecimal-4.0.0.ebuild 1054 BLAKE2B a288df9e213a4ada036ece13a17a188fe037a053cd586d1c1ac151585869d970f101406a5dc2a4c6d0f1d751261b7cad86167ee29f22ed5ae904081a704c0056 SHA512 79ff24e68d6cec9236355f3600d0ffc8ad2b7cd7bfd301893e5772d18bdb62fe7b198a1f65985be28ad6c74f99fe8fa2ce3e9c32f67c056cb655cbe75a179781 +EBUILD mpdecimal-4.0.0.ebuild 1169 BLAKE2B e9c0a66a1baf7e159a2d7d08f88f0ae2be79c20457fcb33370a0c6e0e67d55b7b3e3b6afdc2d2d380edf107dcdbe6987ae72ff54a949f3469c6b40b80a8f1b51 SHA512 ffe1974ebe346de6af48d8a58018ea6ebf76bd298d80cae2c72688e62a5f2ed68004deab84a98ed7dc38c7629f4908d57c35d2f9bdea782ac51b1ca882562b64 MISC metadata.xml 248 BLAKE2B f308d2aa052d11e427850af58bbebf95e7773f5562ed221f39043474b4c3827d724d49667edf1874272a5586a13201159f40e8f5eafb7e400e79c6566e1a6ac2 SHA512 b875c838394523483ae7d93585207eb3c642a345bbb08e1dcef3ceb737c813fa779e2f5479d48cdcc30732b8a0a9e6ecc648df940def6731e4dff43b23786e6d diff --git a/dev-libs/mpdecimal/mpdecimal-4.0.0.ebuild b/dev-libs/mpdecimal/mpdecimal-4.0.0.ebuild index e2b2f84cbcad..91795ce385ce 100644 --- a/dev-libs/mpdecimal/mpdecimal-4.0.0.ebuild +++ b/dev-libs/mpdecimal/mpdecimal-4.0.0.ebuild @@ -14,7 +14,7 @@ SRC_URI=" LICENSE="BSD-2" SLOT="$(ver_cut 1)" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" IUSE="cxx test" RESTRICT="!test? ( test )" @@ -47,7 +47,9 @@ src_configure() { $(use_enable cxx) ) - local -x LDXXFLAGS="${LDFLAGS}" + # more sigh + # https://bugs.gentoo.org/931599 + local -x LDXXFLAGS="${LDFLAGS}" LD="${CC}" LDXX="${CXX}" econf "${myconf[@]}" } diff --git a/dev-libs/nss/Manifest b/dev-libs/nss/Manifest index a879b79fda8f..1ee07fe368ee 100644 --- a/dev-libs/nss/Manifest +++ b/dev-libs/nss/Manifest @@ -4,9 +4,11 @@ AUX nss-3.87-use-clang-as-bgo892686.patch 2693 BLAKE2B fe8a25c9c8599e0f3e630202c AUX nss-3.90-remove-support-of-curve25519.patch 2740 BLAKE2B 6404d5030bafd276431bf6956ceef51c2af7a79a4a632f5893d9f3ab170c327ba8e17a8697ce8616cfc444f16dfd46ab51df66551f0e0751d6a97492be4c9c40 SHA512 44725be175e1e933ae4b5dbe8e17836ee60fe734daba641cceb6f63bfbecec486a722c07394beba6749464b1d1f0efc13a2f0f90365c9102f4eb0923888535ab AUX nss-3.90.2-backport-D180718.patch 1225 BLAKE2B f18e406371c6f3f9aedc1676344b7e15a128bdd52a46720767c04ca7520c9f5d098b5fbb07885eec7608a3fc038b8a2c20d2215de47d4774f83370ec7ee9b5ef SHA512 12780b6871ca7c4da164028f8b127c05f87caac6a92d0265b7d1ddfe2ac77ab7d584e7170c7f9b5ca48480fa900e2ff4e918fc0071d481b5fca95c939765933a AUX nss-3.90.2-bmo-1885749-disable-ASM-C25519-on-non-X86_64.patch 1325 BLAKE2B c128966b1ea2a73c6957cf53b447a20ff142c277337a74421065e1f77c1de74cac5cbed7c192064fc6c45205e562003a7152e39df7438a1583418625607fc2bc SHA512 5625e3e78e7700bcbb589c734d47b91ebe39315994bd422766ad9100405c36d930ad031be5cf80de6bb4d9914db5fe553ee658daf5a2e66e79d517c0a6d9ad32 +DIST nss-3.100.tar.gz 76746058 BLAKE2B 3e114ff7ae5b06a05af9cd62315cbc8d56bf3153126be857b935c5f8db52defcfc2ef13820a896127172a5cb3628c0773965d29a928f41cb5c43630e64095344 SHA512 725c10ffc02fc17347a213b42fabad789aec2c6352fe803b4ad166695ab59495849e9a69684578eb274faf818ec2277f2d433167cdd27997dcf8d8e94dd4df34 DIST nss-3.90.2.tar.gz 72215444 BLAKE2B 74b8eebf5f053dcebd9c6e6ef17c6113ac42a01f910f4ba621dadb09739d5a6090d022800d2c3a4bc0c58413f03512ca611ead1098488d303f1ee1e4bca5c222 SHA512 048a0c0a06fef8cd9c363ac511b9d6125ec131a306c5e093525a937f9e8740f1a2163f274c9a3907ed38331b2fb99b22b528b5e89da1e186c9ba9473d959ef4a DIST nss-3.99.tar.gz 76753982 BLAKE2B b6ce605232934644b6d80682615eac2fa171078fcdd75316ab2accc55caeaed5b548f16c2cef5cefcfb37b96a4d6eb918785be3aa195a561e46d2d3fd8fa217b SHA512 8ae032f3cb8eadfe524505d20e430b90ed25af2b4732b2cf286c435b0fcd5701d2f5c48bd2cfb3f9aa0bfdf503c1f3d5394cf34f860f51a1141cc4a7586bba32 DIST nss-cacert-class1-class3-r2.patch 21925 BLAKE2B 7627ff9a09f084c19d72d0490676865e3cab3ca7c920ae1ce4bea2db664f37fd0aa84fcda919809a516891ab2a62e2e7a43a9d6ada4c231adfe4c216525fac7d SHA512 1ce6ff9ab310aaca9005eafb461338b291df8523cc7044e096cd75774ce746c26eed19ec6bb2643c6c67f94650f2f309463492d80a90568f38ce2557f8ada2f4 +EBUILD nss-3.100.ebuild 11571 BLAKE2B e37869cece7d551303ca4ba14392eee4f4d48b49225d2658590e7c11f705ff061ef1c76312a50edf480d586f3ab6c429c8693536c6c946f11b15404c81032e6a SHA512 a95608d5046cbdb462faf421f7f9d3a84ec0fe18dbb429a3db66a327bf2e0cad300bf840e4fe5ec967869c0b2cd83a939c0641e4a6d533cbaf340e086e611e0f EBUILD nss-3.90.2-r1.ebuild 11752 BLAKE2B d334316ecdeef4fa496009352d84a96251580bb9d4649dd1a047a9bcfe7efd502559b38d89cfaffde6ca314c00a86e9c565c13d8485f57b1e04d408f1bfd37ac SHA512 b117b60be7e465cc639521ae1a6a5afa8baeb85ab17052c1c70b9fda3e0aff6f9d9934ba00056dbaf459230b05fda04ddd4c3395d02f63d51b056f09d124bfc8 EBUILD nss-3.90.2.ebuild 11641 BLAKE2B acd00f630641008af848c854f7868fa4a0496bdaa6afd438cdcc9dd67b6baa44479132a6ffdb387cf5585d272ef4b4f850b0043a2104f17a624463e6ecaeb8db SHA512 1577699e91a6dbf0e3c3887647b0a2677471d2b6efbc3b3a095f6959c24551f2b785d375fd8f04342d8ac07f0ca541fd6f050097c3a4386054a3514c4a970376 EBUILD nss-3.99.ebuild 11566 BLAKE2B b7640451c4426a43224e72afe53a494cf795be550933b3586c729155ae2d0dc42bcdee3930ac0f594c6ef4e807f8112f43c149232047d6522453d66196de7ed4 SHA512 311f94bd3925e163af2a852503fc09ccc57f9d3a68c0bd6357f2149f09bbe8acdd118df57f88e2fdf6af6a8f6da591a16ad0ed495fab7716929c4bf3185cc753 diff --git a/dev-libs/nss/nss-3.100.ebuild b/dev-libs/nss/nss-3.100.ebuild new file mode 100644 index 000000000000..0977ca4223fb --- /dev/null +++ b/dev-libs/nss/nss-3.100.ebuild @@ -0,0 +1,418 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib toolchain-funcs multilib-minimal + +NSPR_VER="4.35" +RTM_NAME="NSS_${PV//./_}_RTM" + +DESCRIPTION="Mozilla's Network Security Services library that implements PKI support" +HOMEPAGE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS" +SRC_URI="https://archive.mozilla.org/pub/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz + cacert? ( https://dev.gentoo.org/~whissi/dist/ca-certificates/nss-cacert-class1-class3-r2.patch )" + +LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris" +IUSE="cacert test +utils cpu_flags_ppc_altivec cpu_flags_x86_avx2 cpu_flags_x86_sse3 cpu_flags_ppc_vsx" +RESTRICT="!test? ( test )" +# pkg-config called by nss-config -> virtual/pkgconfig in RDEPEND +RDEPEND=" + >=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}] + >=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + virtual/pkgconfig +" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/perl" + +S="${WORKDIR}/${P}/${PN}" + +MULTILIB_CHOST_TOOLS=( + /usr/bin/nss-config +) + +PATCHES=( + "${FILESDIR}/${PN}-3.53-gentoo-fixups.patch" + "${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch" + "${FILESDIR}"/nss-3.87-use-clang-as-bgo892686.patch +) + +src_prepare() { + default + + if use cacert ; then + eapply -p2 "${DISTDIR}"/nss-cacert-class1-class3-r2.patch + fi + + pushd coreconf >/dev/null || die + # hack nspr paths + echo 'INCLUDES += -I$(DIST)/include/dbm' \ + >> headers.mk || die "failed to append include" + + # modify install path + sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \ + -i source.mk || die + + # Respect LDFLAGS + sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk + + # Workaround make-4.4's change to sub-make, bmo#1800237, bgo#882069 + sed -i -e "s/^CPU_TAG = _.*/CPU_TAG = _$(nssarch)/" Linux.mk || die + + popd >/dev/null || die + + # Fix pkgconfig file for Prefix + sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \ + config/Makefile || die + + # use host shlibsign if need be #436216 + if tc-is-cross-compiler ; then + sed -i \ + -e 's:"${2}"/shlibsign:shlibsign:' \ + cmd/shlibsign/sign.sh || die + fi + + # dirty hack + sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \ + lib/ssl/config.mk || die + sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \ + cmd/platlibs.mk || die + + multilib_copy_sources + + strip-flags +} + +multilib_src_configure() { + # Ensure we stay multilib aware + sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die +} + +nssarch() { + # Most of the arches are the same as $ARCH + local t=${1:-${CHOST}} + case ${t} in + *86*-pc-solaris2*) echo "i86pc" ;; + aarch64*) echo "aarch64" ;; + hppa*) echo "parisc" ;; + i?86*) echo "i686" ;; + x86_64*) echo "x86_64" ;; + *) tc-arch ${t} ;; + esac +} + +nssbits() { + local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS" + if [[ ${1} == BUILD_ ]]; then + cc=$(tc-getBUILD_CC) + else + cc=$(tc-getCC) + fi + # TODO: Port this to toolchain-funcs tc-get-ptr-size/tc-get-build-ptr-size + echo > "${T}"/test.c || die + ${cc} ${!cppflags} ${!cflags} -fno-lto -c "${T}"/test.c -o "${T}/${1}test.o" || die + case $(file -S "${T}/${1}test.o") in + *32-bit*x86-64*) echo USE_X32=1;; + *64-bit*|*ppc64*|*x86_64*) echo USE_64=1;; + *32-bit*|*ppc*|*i386*) ;; + *) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";; + esac +} + +multilib_src_compile() { + # use ABI to determine bit'ness, or fallback if unset + local buildbits mybits + case "${ABI}" in + n32) mybits="USE_N32=1";; + x32) mybits="USE_X32=1";; + s390x|*64) mybits="USE_64=1";; + ${DEFAULT_ABI}) + einfo "Running compilation test to determine bit'ness" + mybits=$(nssbits) + ;; + esac + # bitness of host may differ from target + if tc-is-cross-compiler; then + buildbits=$(nssbits BUILD_) + fi + + local makeargs=( + CC="$(tc-getCC)" + CCC="$(tc-getCXX)" + AR="$(tc-getAR) rc \$@" + RANLIB="$(tc-getRANLIB)" + OPTIMIZER= + ${mybits} + disable_ckbi=0 + ) + + # Take care of nspr settings #436216 + local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)" + unset NSPR_INCLUDE_DIR + + export NSS_ALLOW_SSLKEYLOGFILE=1 + export NSS_ENABLE_WERROR=0 #567158 + export BUILD_OPT=1 + export NSS_USE_SYSTEM_SQLITE=1 + export NSDISTMODE=copy + export FREEBL_NO_DEPEND=1 + export FREEBL_LOWHASH=1 + export NSS_SEED_ONLY_DEV_URANDOM=1 + export USE_SYSTEM_ZLIB=1 + export ZLIB_LIBS=-lz + export ASFLAGS="" + # Fix build failure on arm64 + export NS_USE_GCC=1 + # Detect compiler type and set proper environment value + if tc-is-gcc; then + export CC_IS_GCC=1 + elif tc-is-clang; then + export CC_IS_CLANG=1 + fi + + export NSS_DISABLE_GTESTS=$(usex !test 1 0) + + # Include exportable custom settings defined by users, #900915 + # Two examples uses: + # EXTRA_NSSCONF="MYONESWITCH=1" + # EXTRA_NSSCONF="MYVALUE=0 MYOTHERVALUE=1 MYTHIRDVALUE=1" + # e.g. + # EXTRA_NSSCONF="NSS_ALLOW_SSLKEYLOGFILE=0" + # or + # EXTRA_NSSCONF="NSS_ALLOW_SSLKEYLOGFILE=0 NSS_ENABLE_WERROR=1" + # etc. + if [[ -n "${EXTRA_NSSCONF}" ]]; then + ewarn "EXTRA_NSSCONF applied, please disable custom settings before reporting bugs." + read -a myextranssconf <<< "${EXTRA_NSSCONF}" + + for (( i=0; i<${#myextranssconf[@]}; i++ )); do + export "${myextranssconf[$i]}" + echo "exported ${myextranssconf[$i]}" + done + fi + + # explicitly disable altivec/vsx if not requested + # https://bugs.gentoo.org/789114 + case ${ARCH} in + ppc*) + use cpu_flags_ppc_altivec || export NSS_DISABLE_ALTIVEC=1 + use cpu_flags_ppc_vsx || export NSS_DISABLE_CRYPTO_VSX=1 + ;; + esac + + use cpu_flags_x86_avx2 || export NSS_DISABLE_AVX2=1 + use cpu_flags_x86_sse3 || export NSS_DISABLE_SSE3=1 + + local d + + # Build the host tools first. + LDFLAGS="${BUILD_LDFLAGS}" \ + XCFLAGS="${BUILD_CFLAGS}" \ + NSPR_LIB_DIR="${T}/fakedir" \ + emake -C coreconf \ + CC="$(tc-getBUILD_CC)" \ + ${buildbits-${mybits}} + makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" ) + + # Then build the target tools. + for d in . lib/dbm ; do + CPPFLAGS="${myCPPFLAGS}" \ + XCFLAGS="${CFLAGS} ${CPPFLAGS}" \ + NSPR_LIB_DIR="${T}/fakedir" \ + emake "${makeargs[@]}" -C ${d} OS_TEST="$(nssarch)" + done +} + +multilib_src_test() { + einfo "Tests can take a *long* time, especially on a multilib system." + einfo "30-45+ minutes per lib configuration. Bug #852755" + + # https://www.linuxfromscratch.org/blfs/view/svn/postlfs/nss.html + # https://firefox-source-docs.mozilla.org/security/nss/legacy/nss_sources_building_testing/index.html#running_the_nss_test_suite + # https://www-archive.mozilla.org/projects/security/pki/nss/testnss_32.html (older) + export BUILD_OPT=1 + export HOST="localhost" + export DOMSUF="localdomain" + export USE_IP=TRUE + export IP_ADDRESS="127.0.0.1" + + # Only run the standard cycle instead of full, reducing testing time from 45 minutes to 15 + # per lib implementation. + export NSS_CYCLES=standard + + NSINSTALL="${PWD}/$(find -type f -name nsinstall)" + + cd "${BUILD_DIR}"/tests || die + # Hack to get current objdir (prefixed dir where built binaries are) + # Without this, at least multilib tests go wrong when building the amd64 variant + # after x86. + local objdir=$(find "${BUILD_DIR}"/dist -maxdepth 1 -iname Linux* | rev | cut -d/ -f1 | rev) + + # Can tweak to a subset of tests in future if we need to, but would prefer not + OBJDIR="${objdir}" DIST="${BUILD_DIR}/dist" MOZILLA_ROOT="${BUILD_DIR}" ./all.sh || die +} + +# Altering these 3 libraries breaks the CHK verification. +# All of the following cause it to break: +# - stripping +# - prelink +# - ELF signing +# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html +# Either we have to NOT strip them, or we have to forcibly resign after +# stripping. +#local_libdir="$(get_libdir)" +#export STRIP_MASK=" +# */${local_libdir}/libfreebl3.so* +# */${local_libdir}/libnssdbm3.so* +# */${local_libdir}/libsoftokn3.so*" + +export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3" + +generate_chk() { + local shlibsign="$1" + local libdir="$2" + einfo "Resigning core NSS libraries for FIPS validation" + shift 2 + local i + for i in ${NSS_CHK_SIGN_LIBS} ; do + local libname=lib${i}.so + local chkname=lib${i}.chk + "${shlibsign}" \ + -i "${libdir}"/${libname} \ + -o "${libdir}"/${chkname}.tmp \ + && mv -f \ + "${libdir}"/${chkname}.tmp \ + "${libdir}"/${chkname} \ + || die "Failed to sign ${libname}" + done +} + +cleanup_chk() { + local libdir="$1" + shift 1 + local i + for i in ${NSS_CHK_SIGN_LIBS} ; do + local libfname="${libdir}/lib${i}.so" + # If the major version has changed, then we have old chk files. + [ ! -f "${libfname}" -a -f "${libfname}.chk" ] \ + && rm -f "${libfname}.chk" + done +} + +multilib_src_install() { + pushd dist >/dev/null || die + + dodir /usr/$(get_libdir) + cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed" + local i + for i in crmf freebl nssb nssckfw ; do + cp -L */lib/lib${i}.a "${ED}"/usr/$(get_libdir) || die "copying libs failed" + done + + # Install nss-config and pkgconfig file + dodir /usr/bin + cp -L */bin/nss-config "${ED}"/usr/bin || die + dodir /usr/$(get_libdir)/pkgconfig + cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die + + # create an nss-softokn.pc from nss.pc for libfreebl and some private headers + # bug 517266 + sed -e 's#Libs:#Libs: -lfreebl#' \ + -e 's#Cflags:#Cflags: -I${includedir}/private#' \ + */lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \ + || die "could not create nss-softokn.pc" + + # all the include files + insinto /usr/include/nss + doins public/nss/*.{h,api} + insinto /usr/include/nss/private + doins private/nss/{blapi,alghmac,cmac}.h + + popd >/dev/null || die + + local f nssutils + # Always enabled because we need it for chk generation. + nssutils=( shlibsign ) + + if multilib_is_native_abi ; then + if use utils; then + # The tests we do not need to install. + #nssutils_test="bltest crmftest dbtest dertimetest + #fipstest remtest sdrtest" + # checkcert utils has been removed in nss-3.22: + # https://bugzilla.mozilla.org/show_bug.cgi?id=1187545 + # https://hg.mozilla.org/projects/nss/rev/df1729d37870 + # certcgi has been removed in nss-3.36: + # https://bugzilla.mozilla.org/show_bug.cgi?id=1426602 + nssutils+=( + addbuiltin + atob + baddbdir + btoa + certutil + cmsutil + conflict + crlutil + derdump + digest + makepqg + mangle + modutil + multinit + nonspr10 + ocspclnt + oidcalc + p7content + p7env + p7sign + p7verify + pk11mode + pk12util + pp + rsaperf + selfserv + signtool + signver + ssltap + strsclnt + symkeyutil + tstclnt + vfychain + vfyserv + ) + # install man-pages for utils (bug #516810) + doman doc/nroff/*.1 + fi + pushd dist/*/bin >/dev/null || die + for f in ${nssutils[@]}; do + dobin ${f} + done + popd >/dev/null || die + fi +} + +pkg_postinst() { + multilib_pkg_postinst() { + # We must re-sign the libraries AFTER they are stripped. + local shlibsign="${EROOT}/usr/bin/shlibsign" + # See if we can execute it (cross-compiling & such). #436216 + "${shlibsign}" -h >&/dev/null + if [[ $? -gt 1 ]] ; then + shlibsign="shlibsign" + fi + generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir) + } + + multilib_foreach_abi multilib_pkg_postinst +} + +pkg_postrm() { + multilib_pkg_postrm() { + cleanup_chk "${EROOT}"/usr/$(get_libdir) + } + + multilib_foreach_abi multilib_pkg_postrm +} |