diff --git a/app-shells/smrsh/Manifest b/app-shells/smrsh/Manifest index b9a2ae9fdf962..493d582327b7c 100644 --- a/app-shells/smrsh/Manifest +++ b/app-shells/smrsh/Manifest @@ -1,4 +1,3 @@ -DIST sendmail.8.15.2.tar.gz 2207417 BLAKE2B 3d9dfb5bc2b535e30ef2fc61333e12a9b1fc45a5d730d2bed1ef956adb574721833f87aeba0475705b76e0c7d6cf00f9a10025bffb0de6c6b4dae606eb2ec399 SHA512 04feb37316c13b66b1518596507a7da7c16cb0bf1abf10367f7fd888a428fadb093a9efa55342fa55b936c3f0cbdc63b9e2505cd99201a69a0c05b8ad65f49f9 DIST sendmail.8.18.1.tar.gz 2401566 BLAKE2B 3afa36073fd611c7fdb43ef0ab9f02d5fb8ae388e9471bdc7275c6c9dcee0a654f46ddef505b70e978cb1b818b0da375250678e501676d8bace534d59ee40d90 SHA512 9ce713b44439d4de6faa9e3cdfa2226b44b4fbeb352a5f81584c062570e9472da244158287e489aabe258d28fe54ca4964565c7b0adc7e1763d212be42f98061 DIST sendmail.8.18.1.tar.gz.sig 543 BLAKE2B f5f8ffaee2b4380babb033257aa30a3ade3686f3ae3dc4ced3beb25698c1917489e05456cf6b3cfcf3f0a8a1725ac42a6ce1db317939f944012e994672f6c22d SHA512 a1b3fc2278061c220ca36b954e333867a187b52c32ecd10793a12c1c90c0466bc3f1e6f76ca3aeaaf02e14f71f8cef418f5291557461b61509ed255c55c6ef47 DIST sendmail.8.18.2.tar.gz 2372458 BLAKE2B a291006fd498d61b8fe19eb02cdeb92f83cef68b5c3db0c8b6479edb8e4722ed2d2ae03cf39553c0631224a1dfa00754cf4ea32bb7bc762ad8152ccaebe606dc SHA512 55515220ea84db4b56b8154efbf21aeb7161943c92bd63527cfc20169ea566e299cc289f0a6e160dc5637f656bdc451707003750d4b42a7894d40f35f51f6040 diff --git a/app-shells/smrsh/smrsh-8.15.2-r1.ebuild b/app-shells/smrsh/smrsh-8.15.2-r1.ebuild deleted file mode 100644 index e634c33f2ab71..0000000000000 --- a/app-shells/smrsh/smrsh-8.15.2-r1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Note: please bump this together with mail-mta/sendmail and mail-filter/libmilter - -inherit toolchain-funcs - -DESCRIPTION="Sendmail restricted shell, for use with MTAs other than Sendmail" -HOMEPAGE="https://www.proofpoint.com/us/products/email-protection/open-source-email-solution" -if [[ -n $(ver_cut 4) ]] ; then - # Snapshots have an extra version component (e.g. 8.17.1 vs 8.17.1.9) - SRC_URI="https://ftp.sendmail.org/snapshots/sendmail.${PV}.tar.gz" -fi -SRC_URI+=" https://ftp.sendmail.org/sendmail.${PV}.tar.gz" -SRC_URI+=" https://ftp.sendmail.org/past-releases/sendmail.${PV}.tar.gz" -S="${WORKDIR}/sendmail-${PV}" - -LICENSE="Sendmail" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND="!mail-mta/sendmail" -DEPEND="${RDEPEND} - sys-devel/m4" - -src_prepare() { - local confENVDEF="-DXDEBUG=0" - - eapply "${FILESDIR}"/${PN}-8.18.1-c23-sm_strtoll.patch - - if use elibc_musl; then - eapply "${FILESDIR}"/${PN}-musl-disable-cdefs.patch - confENVDEF+=" -DHASSTRERROR" - fi - - cd "${S}/${PN}" || die - - default - - sed -e "s:/usr/libexec:/usr/sbin:g" \ - -e "s:/usr/adm/sm.bin:/var/lib/smrsh:g" \ - -i README -i smrsh.8 || die "sed failed" - - sed -e "s|@@confCCOPTS@@|${CFLAGS}|" \ - -e "s|@@confLDOPTS@@|${LDFLAGS}|" \ - -e "s|@@confENVDEF@@|${confENVDEF}|" \ - -e "s:@@confCC@@:$(tc-getCC):" "${FILESDIR}/site.config.m4" \ - > "${S}/devtools/Site/site.config.m4" || die "sed failed" -} - -src_compile() { - cd "${S}/${PN}" || die - /bin/sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die -} - -src_install() { - dosbin "${S}/obj.$(uname -s).$(uname -r).$(arch)/${PN}/${PN}" - - cd "${S}/${PN}" || die - doman "${PN}.8" - dodoc README - - keepdir /var/lib/${PN} -} - -pkg_postinst() { - elog "smrsh is compiled to look for programs in /var/lib/smrsh." -} diff --git a/app-shells/smrsh/smrsh-8.18.1.ebuild b/app-shells/smrsh/smrsh-8.18.1.ebuild deleted file mode 100644 index e634c33f2ab71..0000000000000 --- a/app-shells/smrsh/smrsh-8.18.1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Note: please bump this together with mail-mta/sendmail and mail-filter/libmilter - -inherit toolchain-funcs - -DESCRIPTION="Sendmail restricted shell, for use with MTAs other than Sendmail" -HOMEPAGE="https://www.proofpoint.com/us/products/email-protection/open-source-email-solution" -if [[ -n $(ver_cut 4) ]] ; then - # Snapshots have an extra version component (e.g. 8.17.1 vs 8.17.1.9) - SRC_URI="https://ftp.sendmail.org/snapshots/sendmail.${PV}.tar.gz" -fi -SRC_URI+=" https://ftp.sendmail.org/sendmail.${PV}.tar.gz" -SRC_URI+=" https://ftp.sendmail.org/past-releases/sendmail.${PV}.tar.gz" -S="${WORKDIR}/sendmail-${PV}" - -LICENSE="Sendmail" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND="!mail-mta/sendmail" -DEPEND="${RDEPEND} - sys-devel/m4" - -src_prepare() { - local confENVDEF="-DXDEBUG=0" - - eapply "${FILESDIR}"/${PN}-8.18.1-c23-sm_strtoll.patch - - if use elibc_musl; then - eapply "${FILESDIR}"/${PN}-musl-disable-cdefs.patch - confENVDEF+=" -DHASSTRERROR" - fi - - cd "${S}/${PN}" || die - - default - - sed -e "s:/usr/libexec:/usr/sbin:g" \ - -e "s:/usr/adm/sm.bin:/var/lib/smrsh:g" \ - -i README -i smrsh.8 || die "sed failed" - - sed -e "s|@@confCCOPTS@@|${CFLAGS}|" \ - -e "s|@@confLDOPTS@@|${LDFLAGS}|" \ - -e "s|@@confENVDEF@@|${confENVDEF}|" \ - -e "s:@@confCC@@:$(tc-getCC):" "${FILESDIR}/site.config.m4" \ - > "${S}/devtools/Site/site.config.m4" || die "sed failed" -} - -src_compile() { - cd "${S}/${PN}" || die - /bin/sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die -} - -src_install() { - dosbin "${S}/obj.$(uname -s).$(uname -r).$(arch)/${PN}/${PN}" - - cd "${S}/${PN}" || die - doman "${PN}.8" - dodoc README - - keepdir /var/lib/${PN} -} - -pkg_postinst() { - elog "smrsh is compiled to look for programs in /var/lib/smrsh." -} diff --git a/app-text/enscript/enscript-1.6.6-r2.ebuild b/app-text/enscript/enscript-1.6.6-r2.ebuild index abe917fa37ecf..ce5da86a9fd85 100644 --- a/app-text/enscript/enscript-1.6.6-r2.ebuild +++ b/app-text/enscript/enscript-1.6.6-r2.ebuild @@ -28,6 +28,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.6.4-fsf-gcc-darwin.patch "${FILESDIR}"/${PN}-1.6.2-implicit-function-decl.patch "${FILESDIR}"/${PN}-1.6.6-gcc15.patch + "${FILESDIR}"/${PN}-1.6.6-musl.patch ) src_prepare() { diff --git a/app-text/enscript/files/enscript-1.6.6-musl.patch b/app-text/enscript/files/enscript-1.6.6-musl.patch new file mode 100644 index 0000000000000..43b7f2ad956b7 --- /dev/null +++ b/app-text/enscript/files/enscript-1.6.6-musl.patch @@ -0,0 +1,39 @@ +--- a/intl/dcigettext.c ++++ b/intl/dcigettext.c +@@ -152,7 +152,7 @@ + # if VMS + # define getcwd(buf, max) (getcwd) (buf, max, 0) + # else +-char *getcwd (); ++char *getcwd (char *buf, size_t size); + # endif + # endif + # ifndef HAVE_STPCPY +--- a/compat/getopt.c ++++ b/compat/getopt.c +@@ -210,7 +210,7 @@ + /* Avoid depending on library functions or files + whose names are inconsistent. */ + +-char *getenv (); ++char *getenv (const char *name); + + static char * + my_index (str, chr) +--- a/compat/getopt.h ++++ b/compat/getopt.h +@@ -99,14 +99,7 @@ + #define optional_argument 2 + + #if defined (__STDC__) && __STDC__ +-#ifdef __GNU_LIBRARY__ +-/* Many other libraries have conflicting prototypes for getopt, with +- differences in the consts, in stdlib.h. To avoid compilation +- errors, only prototype getopt for the GNU C library. */ + extern int getopt (int argc, char *const *argv, const char *shortopts); +-#else /* not __GNU_LIBRARY__ */ +-extern int getopt (); +-#endif /* __GNU_LIBRARY__ */ + extern int getopt_long (int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind); + extern int getopt_long_only (int argc, char *const *argv, diff --git a/dev-lang/spidermonkey/Manifest b/dev-lang/spidermonkey/Manifest index d68e4be73b21f..3a63861a1e0f2 100644 --- a/dev-lang/spidermonkey/Manifest +++ b/dev-lang/spidermonkey/Manifest @@ -6,6 +6,7 @@ DIST firefox-128.14.0esr.source.tar.xz 562714012 BLAKE2B 16420f803f5fe9cd1879d7f DIST firefox-128esr-patches-11.tar.xz 18696 BLAKE2B 0f35eaa29f1daf9beb09c7303b3e92676eea84337683b8f7393e8b52e36ec1f37683a050e1e8d7939ebb1bdc190acaac887bebe88812c1b64785e38980f18be3 SHA512 04bf8bbf3c4e7901a6681fec66f179f797615613be838cf35a4b03cd9a347656b1264524ac7355f0c3978a5e740ddc5dc438610e5cae6ffcad73a8988cf0e572 DIST firefox-140.7.0esr.source.tar.xz 641146512 BLAKE2B cd5723595d1fdc0e52ab98fec5205bdc3228d367d2ca512a44a1ae98e1581bc961533a0a0fc57d468a0a10d9a1c480f28baab69def12f834eb51dd98c44cf6fe SHA512 7781b1e203130c1cdf2a0c2ecb05a9cfa824c75d467e7faca78b66bd5568c821324112aecb774883d9f447af7fa4ade36488ff1017255af5510c8f641990e472 DIST firefox-140.8.0esr.source.tar.xz 633564864 BLAKE2B dbbf560ae20c6eb384cce577d49fc71152dc3c72dde64efadfa12d975dda2e13aa1c6da7517e435d3e72b0501f440a5cb3a35a75796a42256627620572bf85f3 SHA512 3baca73c5c264884afa4b1d76ded4417119640e1161b8fed4ca406f0ec44e7f685258f5085f473dc9eff9057a6548a9b59cec3c696358dd1032503aa75f91d05 +DIST firefox-140.9.0esr.source.tar.xz 630445704 BLAKE2B adc5fbbfcb185355bda8055c986033477a64f806b0a7566e24dae1b3ce6bfd5830d08982240e3dec09e3efd37e6364c5495e9f5ebe05f4c06d7c4c7d848c1cab SHA512 bc03fd2a73d00a88bd0a3c9eeaefe618ffb34226fb7bc2fac4a02246ff29fe038423bf77538273ee6fac25fb1e3e4fa98bb522026ae3427a0ad5f41d2ec6ba98 DIST firefox-140esr-patches-03.tar.xz 13452 BLAKE2B f1e5da9400ae5d15dec852f0d68d470f40cff11764813bb7429f320d82cbf838e4e6cc7097f42d154a4a67061a66ad31c0749020067fd2a7f891c9003d163b80 SHA512 966aa2d0b8472bd4c002676572b0755cbf0ecce8709776d07fa2cfec512d942ebc735c6ac20c5a5a19af8e00d762e8967c7d43325987c3b331c8c86183eec044 DIST firefox-140esr-patches-07.tar.xz 125712 BLAKE2B df8cb80104d816966723de33c79aa56f2a0ff54bf1a8a0668b76c4bb1bf3a7fa181011850c3030c04c2b8abcd69bec2dc23d500cfb6a624704b0797b76af8062 SHA512 6735b7f00048a24f313f2a09a17c785d045b3ebc0e640c9b7932fd1e65b84284344adee73d058855aff6bf93384933323031799565838a6339b9d20684e162d4 DIST spidermonkey-115-patches-02.tar.xz 4896 BLAKE2B f78d9804c1427b45d6fda496b4991ec6f672dec9ce031ed57a2920fa1968c942a235f46e40166c8ab8d731a1963f322d34bb2f6984133179175e6f7376d27d13 SHA512 11fd01152d1e7b8ca89bf628076e1f4fb4f1ba6c9dc0f9dd544252495c580c04e4d5ffc238d5587f9e993aa91a47828333564ca55f60e008bd370089cd07d2e6 diff --git a/dev-lang/spidermonkey/spidermonkey-140.9.0.ebuild b/dev-lang/spidermonkey/spidermonkey-140.9.0.ebuild new file mode 100644 index 0000000000000..6fbbacadcc96b --- /dev/null +++ b/dev-lang/spidermonkey/spidermonkey-140.9.0.ebuild @@ -0,0 +1,466 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +FIREFOX_PATCHSET="firefox-140esr-patches-07.tar.xz" +SPIDERMONKEY_PATCHSET="spidermonkey-140-patches-02.tar.xz" + +LLVM_COMPAT=( 19 20 21 ) +RUST_NEEDS_LLVM=1 +RUST_MIN_VER=1.82.0 + +PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_REQ_USE="ncurses,ssl,xml(+)" + +WANT_AUTOCONF="2.1" + +inherit check-reqs flag-o-matic llvm-r1 multiprocessing python-any-r1 rust toolchain-funcs + +MY_PN="mozjs" +MY_PV="${PV/_pre*}" + +MY_MAJOR=$(ver_cut 1) + +MOZ_ESR=yes + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="firefox" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} + https://dev.gentoo.org/~juippis/mozilla/patchsets/${SPIDERMONKEY_PATCHSET} +) + +DESCRIPTION="Mozilla's JavaScript engine written in C and C++" +HOMEPAGE="https://spidermonkey.dev https://firefox-source-docs.mozilla.org/js/index.html" +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" +S="${WORKDIR}/firefox-${PV%_*}" +LICENSE="MPL-2.0" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + +IUSE="clang cpu_flags_arm_neon debug +jit test" + +#RESTRICT="test" +RESTRICT="!test? ( test )" + +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + clang? ( + llvm-core/clang:${LLVM_SLOT} + llvm-core/lld:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + ) + ') + >=dev-util/cbindgen-0.27.0 + virtual/pkgconfig + test? ( + $(python_gen_any_dep 'dev-python/six[${PYTHON_USEDEP}]') + )" +DEPEND=">=dev-libs/icu-76.1:= + >=dev-libs/nspr-4.36 + sys-libs/readline:0= + virtual/zlib:=" +RDEPEND="${DEPEND}" + +llvm_check_deps() { + if use clang ; then + if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then + einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "llvm-core/llvm:${LLVM_SLOT}" ; then + einfo "llvm-core/llvm:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! tc-ld-is-mold ; then + if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then + einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +python_check_deps() { + if use test ; then + python_has_version "dev-python/six[${PYTHON_USEDEP}]" + fi +} + +pkg_pretend() { + if use test ; then + CHECKREQS_DISK_BUILD="4400M" + else + CHECKREQS_DISK_BUILD="4300M" + fi + + check-reqs_pkg_pretend +} + +pkg_setup() { + # Get LTO from environment; export after this phase for use in src_configure (etc) + use_lto=no + + if [[ ${MERGE_TYPE} != binary ]] ; then + if tc-is-lto; then + use_lto=yes + # LTO is handled via configure + filter-lto + fi + + if [[ ${use_lto} = yes ]]; then + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-flags -Werror=lto-type-mismatch -Werror=odr + fi + + if use test ; then + CHECKREQS_DISK_BUILD="4400M" + else + CHECKREQS_DISK_BUILD="4300M" + fi + + check-reqs_pkg_setup + llvm-r1_pkg_setup + rust_pkg_setup + python-any-r1_pkg_setup + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi + + export use_lto +} + +src_prepare() { + if [[ ${use_lto} == "yes" ]]; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo #915651,915651,929013 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}"/firefox-patches + eapply "${WORKDIR}"/spidermonkey-patches + + default + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo #915651,915651,929013 on musl + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + elif use arm64 ; then + export RUST_TARGET="aarch64-unknown-linux-musl" + elif use ppc64 ; then + export RUST_TARGET="powerpc64le-unknown-linux-musl" + else + die "Unknown musl chost, please post your rustc -vV along with emerge --info on Gentoo's bug #915651" + fi + fi + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + python/mozbuild/mozbuild/configure/check_debug_ranges.py || + die "sed failed to set toolchain prefix" + + einfo "Removing pre-built binaries ..." + find third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS: ${CFLAGS}" + einfo "Current CXXFLAGS: ${CXXFLAGS}" + einfo "Current LDFLAGS: ${LDFLAGS}" + einfo "Current RUSTFLAGS: ${RUSTFLAGS}" + + local have_switched_compiler= + if use clang ; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + READELF=llvm-readelf + OBJDUMP=llvm-objdump + + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + READELF=readelf + OBJDUMP=objdump + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # ../python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-project=js + + mozconfig_add_options_ac 'Gentoo default' \ + --host="${CBUILD:-${CHOST}}" \ + --target="${CHOST}" \ + --disable-ctype \ + --disable-jemalloc \ + --disable-smoosh \ + --disable-strip \ + --enable-packed-relative-relocs \ + --enable-readline \ + --enable-release \ + --enable-shared-js \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --with-intl-api \ + --with-system-icu \ + --with-system-nspr \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" + + mozconfig_use_enable debug + mozconfig_use_enable jit + mozconfig_use_enable test tests + + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-debug-symbols + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac '-debug' --enable-optimize + mozconfig_add_options_ac '-debug' --disable-debug-symbols + mozconfig_add_options_ac '-debug' --disable-real-time-tracing + fi + + # We always end up disabling this at some point due to newer rust versions. bgo#933372 + mozconfig_add_options_ac '--disable-rust-simd' --disable-rust-simd + + # Modifications to better support ARM, bug 717344 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-thumb=yes + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-thumb-interwork=no + fi + fi + + # Tell build system that we want to use LTO + if [[ ${use_lto} == "yes" ]] ; then + if use clang ; then + if tc-ld-is-mold ; then + mozconfig_add_options_ac '+lto' --enable-linker=mold + else + mozconfig_add_options_ac '+lto' --enable-linker=lld + fi + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + mozconfig_add_options_ac '+lto' --enable-linker=bfd + mozconfig_add_options_ac '+lto' --enable-lto=full + fi + fi + + # LTO flag was handled via configure + filter-lto + + # Pass MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS: ${CFLAGS}" + einfo "Build CXXFLAGS: ${CXXFLAGS}" + einfo "Build LDFLAGS: ${LDFLAGS}" + einfo "Build RUSTFLAGS: ${RUSTFLAGS}" + + ./mach configure || die +} + +src_compile() { + ./mach build --verbose || die +} + +src_test() { + if "${BUILD_DIR}/js/src/js" -e 'print("Hello world!")'; then + einfo "Smoke-test successful, continuing with full test suite" + else + die "Smoke-test failed: did interpreter initialization fail?" + fi + + cp "${FILESDIR}"/spidermonkey-${SLOT}-known-test-failures.txt "${T}"/known_test_failures.list || die + ./mach jstests --exclude-file="${T}"/known_test_failures.list || die +} + +src_install() { + cd "${BUILD_DIR}" || die + default + + # fix soname links + pushd "${ED}"/usr/$(get_libdir) &>/dev/null || die + mv lib${MY_PN}-${MY_MAJOR}.so lib${MY_PN}-${MY_MAJOR}.so.0.0.0 || die + ln -s lib${MY_PN}-${MY_MAJOR}.so.0.0.0 lib${MY_PN}-${MY_MAJOR}.so.0 || die + ln -s lib${MY_PN}-${MY_MAJOR}.so.0 lib${MY_PN}-${MY_MAJOR}.so || die + popd &>/dev/null || die + + # remove unneeded files + rm \ + "${ED}"/usr/bin/js${MY_MAJOR}-config \ + "${ED}"/usr/$(get_libdir)/libjs_static.ajs || die + + # fix permissions + chmod -x \ + "${ED}"/usr/$(get_libdir)/pkgconfig/*.pc \ + "${ED}"/usr/include/mozjs-${MY_MAJOR}/js-config.h || die +} diff --git a/dev-libs/granite/Manifest b/dev-libs/granite/Manifest index 4fe9912658e18..b71eb1c5fac15 100644 --- a/dev-libs/granite/Manifest +++ b/dev-libs/granite/Manifest @@ -1,2 +1,3 @@ DIST granite-7.6.0.tar.gz 420711 BLAKE2B 4045070b529d64dc1188555d9495486c282495f9cb9312e112cf78d4aafac466c2810a623e81793fb2319311209fe7d18632c0020df278aca4ceba561290be82 SHA512 0a3ab1aa9d648578d80877beaab52eebd1b77981f54f9ca0b9c88e44c9a832738e4bd52357e6537b783d64ac6a7812c8a73331dfe759d12e1f3ea212ba111f5f DIST granite-7.7.0.tar.gz 473928 BLAKE2B e6b295bfff0a723ee507cbf8c16771fc72f74078c90e82bb779975ba4ed1f8b580a4891a7a509b73bf96b81ccf4defb50d685540e9a12cd15d67cbb33d5a6a50 SHA512 3bf2dbd759f48c378768f2f213af3ea9ccd21ed5c9c2bd4fa6004ab5768c481fd05ef286fc77a1077aba0f2fbe76c17c959568a544a1b53f3cda4625f5210895 +DIST granite-7.8.1.tar.gz 488519 BLAKE2B 07e1f0baa2a357aafdf9ec3f463baaa321374233b52fda72f1ed0fcc5fbca046ad6663cc631c29c3056d8a79e954190d01a4ff4ac8d5104c57e577ce8969b020 SHA512 f05bbbb699e923ae86cd2488c38f277c225774e8c0093909a8e05d194c1c7d9d882de6bfa1f8e435069d2c7bc4a1eba776f2e562d298e2735318b370b0141b17 diff --git a/dev-libs/granite/granite-7.8.1.ebuild b/dev-libs/granite/granite-7.8.1.ebuild new file mode 100644 index 0000000000000..9489d37d82f78 --- /dev/null +++ b/dev-libs/granite/granite-7.8.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +BUILD_DIR="${WORKDIR}/${P}-build" + +inherit meson vala xdg + +DESCRIPTION="Elementary OS library that extends GTK+" +HOMEPAGE="https://github.com/elementary/granite" +SRC_URI="https://github.com/elementary/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~x86" + +BDEPEND=" + $(vala_depend) + virtual/pkgconfig +" +DEPEND=" + dev-lang/sassc + >=dev-libs/glib-2.50:2 + dev-libs/libgee:0.8[introspection] + gui-libs/gtk:4[introspection] +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + vala_setup +} diff --git a/dev-libs/yoga/yoga-3.2.1.ebuild b/dev-libs/yoga/yoga-3.2.1-r1.ebuild similarity index 87% rename from dev-libs/yoga/yoga-3.2.1.ebuild rename to dev-libs/yoga/yoga-3.2.1-r1.ebuild index c90aba8c9e82c..ce9e53fde1879 100644 --- a/dev-libs/yoga/yoga-3.2.1.ebuild +++ b/dev-libs/yoga/yoga-3.2.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake dot-a DESCRIPTION="Cross-platform layout engine" HOMEPAGE="https://github.com/facebook/yoga" @@ -24,6 +24,7 @@ PATCHES=( ) src_configure() { + lto-guarantee-fat local mycmakeargs=( -DBUILD_TESTS=$(usex test) -DBUILD_FUZZ_TESTS=OFF #Requires the compiler to be Clang @@ -34,3 +35,8 @@ src_configure() { src_test() { "${BUILD_DIR}"/tests/yogatests || die } + +src_install() { + cmake_src_install + strip-lto-bytecode +} diff --git a/mail-filter/libmilter/Manifest b/mail-filter/libmilter/Manifest index fec631b5172e1..493d582327b7c 100644 --- a/mail-filter/libmilter/Manifest +++ b/mail-filter/libmilter/Manifest @@ -1,4 +1,3 @@ -DIST sendmail.8.17.1.9.tar.gz 2345302 BLAKE2B 378f2f98ffff6457c49f934228964e792acec6f33fbabd89a8712f09f1dc7afc951b7c984a397aa7dd3773d86bdf57a946ea9ac54ae426bc0b8ea4c040e2ad4a SHA512 ad8198b12bdc0037de5b64b2504bd5e0a42bf054274a4834163a7c46953b9aec23d52d58063cc6b925d90199973608f35edeb40128671ae32889f4558e5c0d4b DIST sendmail.8.18.1.tar.gz 2401566 BLAKE2B 3afa36073fd611c7fdb43ef0ab9f02d5fb8ae388e9471bdc7275c6c9dcee0a654f46ddef505b70e978cb1b818b0da375250678e501676d8bace534d59ee40d90 SHA512 9ce713b44439d4de6faa9e3cdfa2226b44b4fbeb352a5f81584c062570e9472da244158287e489aabe258d28fe54ca4964565c7b0adc7e1763d212be42f98061 DIST sendmail.8.18.1.tar.gz.sig 543 BLAKE2B f5f8ffaee2b4380babb033257aa30a3ade3686f3ae3dc4ced3beb25698c1917489e05456cf6b3cfcf3f0a8a1725ac42a6ce1db317939f944012e994672f6c22d SHA512 a1b3fc2278061c220ca36b954e333867a187b52c32ecd10793a12c1c90c0466bc3f1e6f76ca3aeaaf02e14f71f8cef418f5291557461b61509ed255c55c6ef47 DIST sendmail.8.18.2.tar.gz 2372458 BLAKE2B a291006fd498d61b8fe19eb02cdeb92f83cef68b5c3db0c8b6479edb8e4722ed2d2ae03cf39553c0631224a1dfa00754cf4ea32bb7bc762ad8152ccaebe606dc SHA512 55515220ea84db4b56b8154efbf21aeb7161943c92bd63527cfc20169ea566e299cc289f0a6e160dc5637f656bdc451707003750d4b42a7894d40f35f51f6040 diff --git a/mail-filter/libmilter/libmilter-1.0.2_p3-r2.ebuild b/mail-filter/libmilter/libmilter-1.0.2_p3-r2.ebuild deleted file mode 100644 index a0df2971ce8b7..0000000000000 --- a/mail-filter/libmilter/libmilter-1.0.2_p3-r2.ebuild +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Note: please bump this together with mail-mta/sendmail and app-shells/smrsh - -inherit toolchain-funcs - -# This library is part of sendmail, but it does not share the version number with it. -# In order to find the right libmilter version number, check SMFI_VERSION definition -# that can be found in ${S}/include/libmilter/mfapi.h (see also SM_LM_VRS_* defines). -# For example, version 1.0.1 has a SMFI_VERSION of 0x01000001. -# -# See check in src_prepare too. -SENDMAIL_VER=8.17.1.9 - -DESCRIPTION="The Sendmail Filter API (Milter)" -HOMEPAGE="https://www.proofpoint.com/us/products/email-protection/open-source-email-solution" -if [[ -n $(ver_cut 4 ${SENDMAIL_VER}) ]] ; then - # Snapshots have an extra version component (e.g. 8.17.1 vs 8.17.1.9) - SRC_URI="https://ftp.sendmail.org/snapshots/sendmail.${SENDMAIL_VER}.tar.gz" -fi -SRC_URI+=" https://ftp.sendmail.org/sendmail.${SENDMAIL_VER}.tar.gz" -SRC_URI+=" https://ftp.sendmail.org/past-releases/sendmail.${SENDMAIL_VER}.tar.gz" -S="${WORKDIR}/sendmail-${SENDMAIL_VER}" - -LICENSE="Sendmail" -# We increment _pN when a new sendmail tarball comes out and change the actual -# "main version" (1.0.2 at time of writing) when the version -# of libmilter included in the tarball changes. -# We used to use $(ver_cut 1-3) here (assuming ABI stability between sendmail -# versions) but that doesn't seem to apply for sendmail snapshots. -SLOT="0/${PV}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" -IUSE="ipv6 poll" - -RDEPEND="!> 24) - local actual_libmilter_ver_major=$(((actual_libmilter_ver & 0x7f000000) >> 24)) - - # SM_LM_VRS_MINOR(v) (((v) & 0x007fff00) >> 8) - local actual_libmilter_ver_minor=$(((actual_libmilter_ver & 0x007fff00) >> 8)) - - # SM_LM_VRS_PLVL(v) ((v) & 0x0000007f) - local actual_libmilter_ver_plvl=$((actual_libmilter_ver & 0x0000007f)) - - einfo "Extracted version (hex): ${actual_libmilter_ver}" - einfo "Extracted version (major): ${actual_libmilter_ver_major}" - einfo "Extracted version (minor): ${actual_libmilter_ver_minor}" - einfo "Extracted version (plvl): ${actual_libmilter_ver_plvl}" - einfo "Extracted version (final): ${actual_libmilter_ver_major}.${actual_libmilter_ver_minor}.${actual_libmilter_ver_plvl}" - - echo ${actual_libmilter_ver_major}.${actual_libmilter_ver_minor}.${actual_libmilter_ver_plvl} - } - - local actual_libmilter_ver_final=$(extract_version_from_source) - if [[ $(ver_cut 1-3) != ${actual_libmilter_ver_final} ]] ; then - eerror "Ebuild version ${PV} does not match detected version ${actual_libmilter_ver_final}!" - eerror "Expected version: $(ver_cut 1-3)" - eerror "Detected version: ${actual_libmilter_ver_final}" - die "Package version ${PV} appears to be incorrect. Please check the source or rename the ebuild." - fi - - local ENVDEF="-DNETUNIX -DNETINET -DHAS_GETHOSTBYNAME2=1" - - use ipv6 && ENVDEF+=" -DNETINET6" - use poll && ENVDEF+=" -DSM_CONF_POLL=1" - - if use elibc_musl; then - use ipv6 && ENVDEF+=" -DNEEDSGETIPNODE" - - eapply "${FILESDIR}"/${PN}-musl-stack-size.patch - eapply "${FILESDIR}"/${PN}-musl-disable-cdefs.patch - fi - - sed -e "s|@@CC@@|$(tc-getCC)|" \ - -e "s|@@CFLAGS@@|${CFLAGS}|" \ - -e "s|@@ENVDEF@@|${ENVDEF}|" \ - -e "s|@@LDFLAGS@@|${LDFLAGS}|" \ - "${FILESDIR}"/gentoo.config.m4 > devtools/Site/site.config.m4 \ - || die "failed to generate site.config.m4" -} - -src_compile() { - emake -j1 -C libmilter AR="$(tc-getAR)" MILTER_SOVER=${PV} -} - -src_install() { - dodir /usr/$(get_libdir) - - local emakeargs=( - DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" - MANROOT=/usr/share/man/man - SBINOWN=root SBINGRP=0 UBINOWN=root UBINGRP=0 - LIBOWN=root LIBGRP=0 GBINOWN=root GBINGRP=0 - MANOWN=root MANGRP=0 INCOWN=root INCGRP=0 - MSPQOWN=root CFOWN=root CFGRP=0 - MILTER_SOVER="$(ver_cut 1-3)" - ) - emake -C obj.*/libmilter "${emakeargs[@]}" install - - dodoc libmilter/README - - docinto html - dodoc -r libmilter/docs/. - - if [[ ${PV} != $(ver_cut 1-3) ]] ; then - # Move the .so file to the more specific name so it becomes a chain like - # .so -> .so.1.0.2 -> .so.1.0.2_p2, otherwise ldconfig can get confused - # (bug #864563). - # - # See comment above ${SLOT} definition above. - mv "${ED}"/usr/$(get_libdir)/"${PN}.so.$(ver_cut 1-3)" "${ED}"/usr/$(get_libdir)/${PN}.so.${PV} - dosym ${PN}.so.${PV} /usr/$(get_libdir)/${PN}.so.$(ver_cut 1-3) - fi - - find "${ED}" -name '*.a' -delete || die -} diff --git a/mail-filter/libmilter/libmilter-1.0.2_p3-r3.ebuild b/mail-filter/libmilter/libmilter-1.0.2_p3-r3.ebuild deleted file mode 100644 index 404f31071dcaa..0000000000000 --- a/mail-filter/libmilter/libmilter-1.0.2_p3-r3.ebuild +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Note: please bump this together with mail-mta/sendmail and app-shells/smrsh - -inherit toolchain-funcs - -# This library is part of sendmail, but it does not share the version number with it. -# In order to find the right libmilter version number, check SMFI_VERSION definition -# that can be found in ${S}/include/libmilter/mfapi.h (see also SM_LM_VRS_* defines). -# For example, version 1.0.1 has a SMFI_VERSION of 0x01000001. -# -# See check in src_prepare too. -SENDMAIL_VER=8.17.1.9 - -DESCRIPTION="The Sendmail Filter API (Milter)" -HOMEPAGE="https://www.proofpoint.com/us/products/email-protection/open-source-email-solution" -if [[ -n $(ver_cut 4 ${SENDMAIL_VER}) ]] ; then - # Snapshots have an extra version component (e.g. 8.17.1 vs 8.17.1.9) - SRC_URI="https://ftp.sendmail.org/snapshots/sendmail.${SENDMAIL_VER}.tar.gz" -fi -SRC_URI+=" https://ftp.sendmail.org/sendmail.${SENDMAIL_VER}.tar.gz" -SRC_URI+=" https://ftp.sendmail.org/past-releases/sendmail.${SENDMAIL_VER}.tar.gz" -S="${WORKDIR}/sendmail-${SENDMAIL_VER}" - -LICENSE="Sendmail" -# We increment _pN when a new sendmail tarball comes out and change the actual -# "main version" (1.0.2 at time of writing) when the version -# of libmilter included in the tarball changes. -# We used to use $(ver_cut 1-3) here (assuming ABI stability between sendmail -# versions) but that doesn't seem to apply for sendmail snapshots. -SLOT="0/${PV}" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="ipv6 poll" - -RDEPEND="!> 24) - local actual_libmilter_ver_major=$(((actual_libmilter_ver & 0x7f000000) >> 24)) - - # SM_LM_VRS_MINOR(v) (((v) & 0x007fff00) >> 8) - local actual_libmilter_ver_minor=$(((actual_libmilter_ver & 0x007fff00) >> 8)) - - # SM_LM_VRS_PLVL(v) ((v) & 0x0000007f) - local actual_libmilter_ver_plvl=$((actual_libmilter_ver & 0x0000007f)) - - einfo "Extracted version (hex): ${actual_libmilter_ver}" - einfo "Extracted version (major): ${actual_libmilter_ver_major}" - einfo "Extracted version (minor): ${actual_libmilter_ver_minor}" - einfo "Extracted version (plvl): ${actual_libmilter_ver_plvl}" - einfo "Extracted version (final): ${actual_libmilter_ver_major}.${actual_libmilter_ver_minor}.${actual_libmilter_ver_plvl}" - - echo ${actual_libmilter_ver_major}.${actual_libmilter_ver_minor}.${actual_libmilter_ver_plvl} - } - - local actual_libmilter_ver_final=$(extract_version_from_source) - if [[ $(ver_cut 1-3) != ${actual_libmilter_ver_final} ]] ; then - eerror "Ebuild version ${PV} does not match detected version ${actual_libmilter_ver_final}!" - eerror "Expected version: $(ver_cut 1-3)" - eerror "Detected version: ${actual_libmilter_ver_final}" - die "Package version ${PV} appears to be incorrect. Please check the source or rename the ebuild." - fi - - local ENVDEF="-DNETUNIX -DNETINET -DHAS_GETHOSTBYNAME2=1" - - use ipv6 && ENVDEF+=" -DNETINET6" - use poll && ENVDEF+=" -DSM_CONF_POLL=1" - - if use elibc_musl; then - use ipv6 && ENVDEF+=" -DNEEDSGETIPNODE" - - eapply "${FILESDIR}"/${PN}-musl-stack-size.patch - eapply "${FILESDIR}"/${PN}-musl-disable-cdefs.patch - fi - - sed -e "s|@@CC@@|$(tc-getCC)|" \ - -e "s|@@CFLAGS@@|${CFLAGS}|" \ - -e "s|@@ENVDEF@@|${ENVDEF}|" \ - -e "s|@@LDFLAGS@@|${LDFLAGS}|" \ - "${FILESDIR}"/gentoo.config.m4 > devtools/Site/site.config.m4 \ - || die "failed to generate site.config.m4" -} - -src_compile() { - emake -j1 -C libmilter AR="$(tc-getAR)" MILTER_SOVER=${PV} -} - -src_install() { - dodir /usr/$(get_libdir) - - local emakeargs=( - DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" - MANROOT=/usr/share/man/man - SBINOWN=root SBINGRP=0 UBINOWN=root UBINGRP=0 - LIBOWN=root LIBGRP=0 GBINOWN=root GBINGRP=0 - MANOWN=root MANGRP=0 INCOWN=root INCGRP=0 - MSPQOWN=root CFOWN=root CFGRP=0 - MILTER_SOVER="$(ver_cut 1-3)" - ) - emake -C obj.*/libmilter "${emakeargs[@]}" install - - dodoc libmilter/README - - docinto html - dodoc -r libmilter/docs/. - - if [[ ${PV} != $(ver_cut 1-3) ]] ; then - # Move the .so file to the more specific name so it becomes a chain like - # .so -> .so.1.0.2 -> .so.1.0.2_p2, otherwise ldconfig can get confused - # (bug #864563). - # - # See comment above ${SLOT} definition above. - mv "${ED}"/usr/$(get_libdir)/"${PN}.so.$(ver_cut 1-3)" "${ED}"/usr/$(get_libdir)/${PN}.so.${PV} - dosym ${PN}.so.${PV} /usr/$(get_libdir)/${PN}.so.$(ver_cut 1-3) - fi - - find "${ED}" -name '*.a' -delete || die -} diff --git a/mail-mta/sendmail/Manifest b/mail-mta/sendmail/Manifest index 742a2ca8c0576..728a259eba6d0 100644 --- a/mail-mta/sendmail/Manifest +++ b/mail-mta/sendmail/Manifest @@ -5,7 +5,6 @@ DIST sendmail.8.18.1.15.tar.gz.sig 543 BLAKE2B b83ebff2df2fa6a86102a39708b826176 DIST sendmail.8.18.1.16.tar.gz 2372700 BLAKE2B 0e0482111fce96d7885c226203648ca0e7a019a85e729f5dd71dc1b6036071cdbeacc0931dd5b83872c59f15fc46c7c68f97ba248884a12c9ea228e5d74f461a SHA512 92683ce741cf7da6b92cef95209f021641971466709fe5474dcbce04089b1631d54399d0f9414b9c083ea5b918db8418a90fee279b6084cd4961c27bc6389812 DIST sendmail.8.18.1.16.tar.gz.sig 543 BLAKE2B 3d97b0344dca35c7950259c370fd37e06fd8a4d3e2894df1058ef9ef735c142f6e71161d1bba598fac5ccb52641eaf4f97b45b35c87c9e37ffebe043c16861a9 SHA512 067926cec5377bfa37af81cee8138c59d7f64326558eb849b926103cda4c1cf6d75cac3962dcea3fcf92c1f2cb68079b72d13028c32c1306fadf60a9acdcf612 DIST sendmail.8.18.1.tar.gz 2401566 BLAKE2B 3afa36073fd611c7fdb43ef0ab9f02d5fb8ae388e9471bdc7275c6c9dcee0a654f46ddef505b70e978cb1b818b0da375250678e501676d8bace534d59ee40d90 SHA512 9ce713b44439d4de6faa9e3cdfa2226b44b4fbeb352a5f81584c062570e9472da244158287e489aabe258d28fe54ca4964565c7b0adc7e1763d212be42f98061 -DIST sendmail.8.18.1.tar.gz.sig 543 BLAKE2B f5f8ffaee2b4380babb033257aa30a3ade3686f3ae3dc4ced3beb25698c1917489e05456cf6b3cfcf3f0a8a1725ac42a6ce1db317939f944012e994672f6c22d SHA512 a1b3fc2278061c220ca36b954e333867a187b52c32ecd10793a12c1c90c0466bc3f1e6f76ca3aeaaf02e14f71f8cef418f5291557461b61509ed255c55c6ef47 DIST sendmail.8.18.2.tar.gz 2372458 BLAKE2B a291006fd498d61b8fe19eb02cdeb92f83cef68b5c3db0c8b6479edb8e4722ed2d2ae03cf39553c0631224a1dfa00754cf4ea32bb7bc762ad8152ccaebe606dc SHA512 55515220ea84db4b56b8154efbf21aeb7161943c92bd63527cfc20169ea566e299cc289f0a6e160dc5637f656bdc451707003750d4b42a7894d40f35f51f6040 DIST sendmail.8.18.2.tar.gz.sig 543 BLAKE2B 6c397ada6b93de4608d11bc09d58c687819f333161865129d70d5dd3fc35124fda3f5c8d2533a10b8a327804feb261b4abd3506bb9a8ede686cc0b3f159203c5 SHA512 4e531f89e5e10dba7d3c66c8c5378aadeb139ec9d2f6ac6568f272adea4d1515c1ba858bb34585e0d52ac070185052e901d58bd677ef59a5cc733b4f60fb827f DIST sendmail.8.19.0.0.tar.gz 2379422 BLAKE2B a5e8b10853f4a1eba9db8e2e8a7cfb39c1dafb79fce2d10b0045089b60888f17802e8cb5af6db2c8f1d8e8dc0a59069fd9e6cf51ec6d49d44bd09b2618f12518 SHA512 4f3b76d60f13ed5ce9c334788ae6efad42beb47b2ce649bd83572da8fef2d7607e0a30ec2a1a1613fccfd942162168cc0ecfd6604ca0d5bcdaa83a929bfaa634 diff --git a/mail-mta/sendmail/files/sendmail-8.19.0.0-newdb.patch b/mail-mta/sendmail/files/sendmail-8.19.0.0-newdb.patch new file mode 100644 index 0000000000000..0310e7f9dff1a --- /dev/null +++ b/mail-mta/sendmail/files/sendmail-8.19.0.0-newdb.patch @@ -0,0 +1,14 @@ +Link: https://narkive.com/H54UQbMD.3 +Bug: https://bugs.gentoo.org/971182 + +--- a/libsmdb/smdb2.c ++++ b/libsmdb/smdb2.c +@@ -440,7 +440,7 @@ + + static void + db_err_cb( +-# if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 ++# if DB_VERSION_MAJOR > 4 || DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 + const DB_ENV *dbenv, const char *errpfx, const char *msg + # else + const char *errpfx, char *msg diff --git a/mail-mta/sendmail/sendmail-8.18.1-r3.ebuild b/mail-mta/sendmail/sendmail-8.18.1-r3.ebuild deleted file mode 100644 index 513ed1ce3712c..0000000000000 --- a/mail-mta/sendmail/sendmail-8.18.1-r3.ebuild +++ /dev/null @@ -1,309 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Note: please bump this together with mail-filter/libmilter and app-shells/smrsh - -VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/sendmail.asc" -inherit systemd toolchain-funcs verify-sig - -DESCRIPTION="Widely-used Mail Transport Agent (MTA)" -HOMEPAGE="https://www.sendmail.org/" -if [[ -n $(ver_cut 4) ]] ; then - # Snapshots have an extra version component (e.g. 8.17.1 vs 8.17.1.9) - SRC_URI=" - https://ftp.sendmail.org/snapshots/${PN}.${PV}.tar.gz - verify-sig? ( https://ftp.sendmail.org/snapshots/${PN}.${PV}.tar.gz.sig ) - " -fi - -SRC_URI+=" - https://ftp.sendmail.org/${PN}.${PV}.tar.gz - verify-sig? ( https://ftp.sendmail.org/${PN}.${PV}.tar.gz.sig ) -" -SRC_URI+=" - https://ftp.sendmail.org/past-releases/${PN}.${PV}.tar.gz - verify-sig? ( https://ftp.sendmail.org/past-releases/${PN}.${PV}.tar.gz.sig ) -" - -LICENSE="Sendmail GPL-2" # GPL-2 is here for initscript -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="+berkdb eai fips ldap mbox nis sasl selinux ssl tcpd tinycdb" -REQUIRED_USE=" - || ( berkdb tinycdb ) - fips? ( ssl ) -" - -DEPEND=" - acct-group/smmsp - >=acct-user/smmsp-0-r2 - net-mail/mailbase - berkdb? ( >=sys-libs/db-3.2:= ) - eai? ( dev-libs/icu:= ) - elibc_musl? ( virtual/libcrypt:= ) - ldap? ( net-nds/openldap:= ) - nis? ( net-libs/libnsl:= ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.10 ) - ssl? ( - >=dev-libs/openssl-1.1.1:= - fips? ( >=dev-libs/openssl-3:=[fips] ) - ) - tcpd? ( sys-apps/tcp-wrappers ) - tinycdb? ( dev-db/tinycdb ) -" -RDEPEND=" - ${DEPEND} - >=mail-filter/libmilter-1.0.2_p2 - sys-devel/m4 - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/exim - !mail-mta/msmtp[mta] - !mail-mta/netqmail - !mail-mta/notqmail - !mail-mta/nullmailer - !mail-mta/opensmtpd - !mail-mta/postfix - !>=mail-mta/ssmtp-2.64-r2[mta] - selinux? ( sec-policy/selinux-sendmail ) -" -BDEPEND=" - sys-devel/m4 - virtual/pkgconfig - verify-sig? ( ~sec-keys/openpgp-keys-sendmail-20250220 ) -" -PDEPEND=" - !mbox? ( - || ( - mail-filter/procmail - mail-filter/maildrop - ) - ) -" -PATCHES=( - "${FILESDIR}"/${PN}-8.13.1-delivered_hdr.patch - "${FILESDIR}"/${PN}-8.16.1-build-system.patch - "${FILESDIR}"/${PN}-8.18.1-c23.patch - "${FILESDIR}"/${PN}-8.18.1-tcpwrappers.patch - "${FILESDIR}"/${PN}-8.18.1-more-c23.patch -) - -src_prepare() { - default - - local confCCOPTS="${CFLAGS}" - local confENVDEF="-DMAXDAEMONS=64 -DHAS_GETHOSTBYNAME2=1" - local confLDOPTS="${LDFLAGS}" - local confLIBS= - local confMAPDEF="-DMAP_REGEX" - local conf_sendmail_LIBS= - - # Always enable ipv6 and sockets - confENVDEF+=" -DNETINET6 -DSOCKETMAP" - - if use berkdb; then - # See bug #808954 for FLOCK - confENVDEF+=" -DHASFLOCK=1" - confMAPDEF+=" -DNEWDB" - confLIBS+=" -ldb" - else - confMAPDEF+=" -UNEWDB" - fi - - if use eai; then - confCCOPTS+=" $($(tc-getPKG_CONFIG) --cflags icu-uc)" - confENVDEF+=" -DUSE_EAI" - confLIBS+=" $($(tc-getPKG_CONFIG) --libs icu-uc)" - fi - - if use ldap; then - confMAPDEF+=" -DLDAPMAP" - confLIBS+=" -lldap -llber" - fi - - use nis && confENVDEF+=" -DNIS" - - if use sasl; then - confCCOPTS+=" $($(tc-getPKG_CONFIG) --cflags libsasl2)" - confENVDEF+=" -DSASL=2" - conf_sendmail_LIBS+=" $($(tc-getPKG_CONFIG) --libs libsasl2)" - fi - - if use ssl; then - # Bug #542370 - lets add support for modern crypto (PFS) - confCCOPTS+=" $($(tc-getPKG_CONFIG) --cflags openssl)" - confENVDEF+=" -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" - confENVDEF+=" -D_FFR_TLS_1 -D_FFR_TLS_EC" - # Bug #944822 - fix certification chain with intermediate cert file - confENVDEF+=" -D_FFR_TLS_USE_CERTIFICATE_CHAIN_FILE" - confENVDEF+=" -DDANE" - - if use fips; then - confENVDEF+=" -D_FFR_FIPSMODE" - fi - - conf_sendmail_LIBS+=" $($(tc-getPKG_CONFIG) --libs openssl)" - fi - - if use tcpd; then - confENVDEF+=" -DTCPWRAPPERS" - confLIBS+=" -lwrap" - fi - - if use tinycdb; then - confMAPDEF+=" -DCDB=2" - confLIBS+=" -lcdb" - else - confMAPDEF+=" -UCDB" - fi - - if use elibc_musl; then - confENVDEF+=" -DHASSTRERROR -DHASRRESVPORT=0 -DNEEDSGETIPNODE" - - eapply "${FILESDIR}"/${PN}-musl-stack-size.patch - eapply "${FILESDIR}"/${PN}-musl-disable-cdefs.patch - fi - - sed -e "s|@@confCC@@|$(tc-getCC)|" \ - -e "s|@@confCCOPTS@@|${confCCOPTS}|" \ - -e "s|@@confENVDEF@@|${confENVDEF}|" \ - -e "s|@@confLDOPTS@@|${confLDOPTS}|" \ - -e "s|@@confLIBS@@|${confLIBS}|" \ - -e "s|@@confMAPDEF@@|${confMAPDEF}|" \ - -e "s|@@conf_sendmail_LIBS@@|${conf_sendmail_LIBS}|" \ - "${FILESDIR}"/site.config.m4 > devtools/Site/site.config.m4 \ - || die "failed to generate site.config.m4" - - echo "APPENDDEF(\`confLIBDIRS', \`-L${EPREFIX}/usr/$(get_libdir)')" \ - >> devtools/Site/site.config.m4 || die "failed adding to site.config.m4" -} - -src_compile() { - sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "compilation failed in main build script" -} - -src_install() { - dodir /usr/{bin,$(get_libdir)} - dodir /usr/share/man/man{1,5,8} /usr/sbin /usr/share/sendmail-cf - dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d - - keepdir /var/spool/{clientmqueue,mqueue} - - local emakeargs=( - DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" - MANROOT=/usr/share/man/man - SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root - MANOWN=root MANGRP=root INCOWN=root INCGRP=root - LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root - MSPQOWN=root CFOWN=root CFGRP=root - ) - - local dir - for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap; do - emake -j1 -C obj.*/${dir} "${emakeargs[@]}" install - done - for dir in rmail mail.local; do - emake -j1 -C obj.*/${dir} "${emakeargs[@]}" force-install - done - - fowners root:smmsp /usr/sbin/sendmail - fperms 2555 /usr/sbin/sendmail - fowners smmsp:smmsp /var/spool/clientmqueue - fperms 770 /var/spool/clientmqueue - fperms 700 /var/spool/mqueue - dodoc FAQ KNOWNBUGS README RELEASE_NOTES doc/op/op.ps - - dodoc sendmail/{SECURITY,TUNING} - newdoc sendmail/README README.sendmail - newdoc smrsh/README README.smrsh - - newdoc cf/README README.cf - newdoc cf/cf/README README.install-cf - - dodoc -r contrib - - cp -pPR cf/. "${ED}"/usr/share/sendmail-cf || die - - insinto /etc/mail - if use mbox; then - newins "${FILESDIR}"/sendmail.mc-r1 sendmail.mc - else - newins "${FILESDIR}"/sendmail-maildir.mc sendmail.mc - fi - - # See discussion on bug #730890 - m4 "${ED}"/usr/share/sendmail-cf/m4/cf.m4 \ - <(grep -v "${EPREFIX}"/usr/share/sendmail-cf/m4/cf.m4 "${ED}"/etc/mail/sendmail.mc) \ - > "${ED}"/etc/mail/sendmail.cf || die "cf.m4 failed" - - echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \ - > "${ED}"/etc/mail/submit.mc || die "submit.mc echo failed" - - cat "${ED}"/usr/share/sendmail-cf/cf/submit.mc \ - >> "${ED}"/etc/mail/submit.mc || die "submit.mc cat failed" - - echo "# local-host-names - include all aliases for your machine here" \ - > "${ED}"/etc/mail/local-host-names || die "local-host-names echo failed" - - cat <<- EOF > "${ED}"/etc/mail/trusted-users || die "trusted-users cat failed" - # trusted-users - users that can send mail as others without a warning - # apache, mailman, majordomo, uucp are good candidates - EOF - - cat <<- EOF > "${ED}"/etc/mail/access || die "access cat failed" - # Check the ${EPREFIX}/usr/share/sendmail-cf/README file for a description - # of the format of this file. (search for access_db in that file) - # - - EOF - - cat <<- EOF > "${ED}"/etc/conf.d/sendmail || die "sendmail cat failed" - # Config file for /etc/init.d/sendmail - # add start-up options here - SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode - CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue - KILL_OPTS="" # add -9/-15/your favorite evil SIG level here - - EOF - - if use sasl; then - dodir /etc/sasl2 - cat <<- EOF > "${ED}"/etc/sasl2/Sendmail.conf || die "Sendmail.conf cat failed" - pwcheck_method: saslauthd - mech_list: PLAIN LOGIN - - EOF - fi - - doinitd "${FILESDIR}"/sendmail - systemd_dounit "${FILESDIR}"/sendmail.service - systemd_dounit "${FILESDIR}"/sm-client.service -} - -pkg_postinst() { - if ! use berkdb; then - ewarn "If your configuration relies on userdb, you should install" - ewarn "this package with USE=berkdb." - fi - - if ! use mbox; then - elog "Starting with mail-mta/sendmail-8.18.1 you could use either" - elog "procmail or maildrop to use maildir-style mailbox in user's home directory." - elog "" - elog "If you prefer procmail (default), emerge mail-filter/procmail with USE=-mbox" - elog "and include the following lines in sendmail.mc to create your sendmail.cf" - elog "configuration file:" - elog "\tFEATURE(\`local_procmail')dnl" - elog "\tMAILER(\`procmail')dnl" - elog "" - elog "If you prefer maildrop, you'll need to ensure that you configure a mail" - elog "storage location using DEFAULT in /etc/maildroprc, for example:" - elog "\tDEFAULT=\$HOME/.maildir" - elog "" - elog "and include the following line in sendmail.mc to create your sendmail.cf" - elog "configuration file:" - elog "\tFEATURE(\`local_procmail',\`/usr/bin/maildrop',\`maildrop -d $u')dnl" - fi -} diff --git a/mail-mta/sendmail/sendmail-8.19.0.0.ebuild b/mail-mta/sendmail/sendmail-8.19.0.0-r1.ebuild similarity index 99% rename from mail-mta/sendmail/sendmail-8.19.0.0.ebuild rename to mail-mta/sendmail/sendmail-8.19.0.0-r1.ebuild index 8b7f6c28c5fb6..221c435e3c606 100644 --- a/mail-mta/sendmail/sendmail-8.19.0.0.ebuild +++ b/mail-mta/sendmail/sendmail-8.19.0.0-r1.ebuild @@ -85,6 +85,7 @@ PDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-8.13.1-delivered_hdr.patch "${FILESDIR}"/${PN}-8.16.1-build-system.patch + "${FILESDIR}"/${PN}-8.19.0.0-newdb.patch ) src_prepare() { diff --git a/media-sound/rescrobbled/Manifest b/media-sound/rescrobbled/Manifest index 67073c509af82..60aaa1c217cf3 100644 --- a/media-sound/rescrobbled/Manifest +++ b/media-sound/rescrobbled/Manifest @@ -1,2 +1,4 @@ DIST rescrobbled-0.8.0-crates.tar.xz 12913556 BLAKE2B efdb90ca8375454dad5c2bcee7786eb18d3ad664044e0597daa58ae6857ea33b5ec75741c50e2744a723e738e9597fd25856d51c497d6a4ae981e1ab875e8375 SHA512 21521772db10eeb93d0f3b47be8147b6a480269bb0ca35016bfd381d27b77cd3e263125a911be566d61e0c16398140327f8330ec621b25da63c09f6b08edca63 DIST rescrobbled-0.8.0.tar.gz 35857 BLAKE2B 96079a72bce83043642a20a41a070a92a9f8fb2ceb8f7b292ab29b6c3875cf5865c6d1f75e9ecb3db5e16a657e87c1367060fe6f4f4ee3696c5e269229bf80f5 SHA512 2e54180b6a29266878109aaff77e0266973aa5c68f186864aeaeae6fe7b870867204d1efeaf28726c3aee53dc4841c1917cc2552d80facd82ac680302cffc4ae +DIST rescrobbled-0.9.0-crates.tar.xz 10947160 BLAKE2B 49047a8dbaf349c8ca1027b6efc3f11cd056e5e11a106f64b5ff152e2e28d67bb170dca11fd05f881f96e237b2f5f9b4694573c2514ebf92bcf51eb0edb3c122 SHA512 7aa18f2bcb8b999c400926eafd298d8f3d979e98df20744372fde071cc21a45ae5fb3b210f43aaf89bdcd6646e94d444622e729e0676ea2a28bf948e3dee3f8d +DIST rescrobbled-0.9.0.tar.gz 38985 BLAKE2B 77a8eb7a2cb3d913a7094046a43c651b23ebaf7e551dfdd01b813df0d4edee751340c8bec8af1742ad9f348ede819c7bfcee7c7b59e947c4b38cae593fecfaca SHA512 cf12be1ab2e5628a2e956ba5ca18bb18594b5b170a091245b61e471dfaf3e110a528a589fc4bd8b892b2ceee973498fc8c4d23491519ab952f307c085c198eb0 diff --git a/media-sound/rescrobbled/rescrobbled-0.9.0.ebuild b/media-sound/rescrobbled/rescrobbled-0.9.0.ebuild new file mode 100644 index 0000000000000..e61e03b3cccf2 --- /dev/null +++ b/media-sound/rescrobbled/rescrobbled-0.9.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES="" +RUST_MIN_VER="1.87.0" + +inherit cargo systemd + +DESCRIPTION="MPRIS music scrobbler daemon" +HOMEPAGE="https://github.com/InputUsername/rescrobbled" +SRC_URI="https://github.com/InputUsername/rescrobbled/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://github.com/gentoo-crate-dist/rescrobbled/releases/download/v${PV}/${P}-crates.tar.xz" + +LICENSE="GPL-3" +# Dependent crate licenses +LICENSE+=" Apache-2.0 MIT MPL-2.0 Unicode-3.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="dev-libs/openssl:= + sys-apps/dbus" + +QA_FLAGS_IGNORED="/usr/bin/rescrobbled" + +src_install() { + cargo_src_install + einstalldocs + + # Fix path in the service file. + sed -i "s|%h/.cargo/bin/rescrobbled|${EPREFIX}/usr/bin/rescrobbled|" "${S}"/rescrobbled.service || die + systemd_dounit "${S}"/rescrobbled.service + + dodoc "${FILESDIR}"/config.toml + docompress -x "/usr/share/doc/${PF}/config.toml" + + dodoc -r "${S}"/filter-script-examples +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "Sample configuration file has been installed to " + elog " /usr/share/doc/rescrobbled-${PVR}/config.toml" + elog "" + elog "Use the sample, or launch rescrobbled to create a new empty one." + elog "" + fi +} diff --git a/net-im/signal-cli-bin/Manifest b/net-im/signal-cli-bin/Manifest index 3941b5ecd5c20..16737416584b2 100644 --- a/net-im/signal-cli-bin/Manifest +++ b/net-im/signal-cli-bin/Manifest @@ -4,3 +4,6 @@ DIST signal-cli-bin-0.13.19.signal-cli.1.adoc 29286 BLAKE2B dc433b6e736991486b36 DIST signal-cli-bin-0.13.9.README.md 5538 BLAKE2B 8276e8f4f596bd639ba54f9f5bea3a1810632c63c40ba2cfe9865b1ced61366e80dd5b82e92c2302696ad0451858fc0125e62c560eb0cd1ab1e754f6f16923f6 SHA512 5dc59f87941de0e5b53e006c40d2a6a4086b114bdd8e8191ab8be2177561d70a2b1b6bdc0257d96c19b082febc90c33541e313b3022b4c1f029e4a0677574a24 DIST signal-cli-bin-0.13.9.gh.tar.gz 81929098 BLAKE2B d4ccc4514b6d159fae0dddfadb11b86603a42ec92681e11f901af3f33fcc426c7b256c12974e4049fd780cb5c9383daf557c74f9d3d6adfb948123bd4c319f2b SHA512 8b2306c0ac8354704d0f8523ca446f74cc334b66fa9ecd922e5c07f4a4800d9c7a4e497ffdf549a76c4e0a7d83f541b601c6e690f122976a643d102c9e60180f DIST signal-cli-bin-0.13.9.signal-cli.1.adoc 28911 BLAKE2B 71c806b2fb170fbf35d794ad53d71ccfa07d7d66388dbe65e84d555b756bd0f43fad8deb7bcbc1a47bfbe44d53f65155ae6145b1b0ed26af9f51fbee149762ac SHA512 0ae86aff535b909ae63e194f32398b934d826524f3609819ac00228e874c57e490edba34760fe4cc3980aa185a319d9888825c28bbb5b0bf14790de4f95a814b +DIST signal-cli-bin-0.14.1.README.md 6716 BLAKE2B 1fe99772e83f5544df93726cb310edefd648e1c195702b69284a995228767cf5c46a9ff2c64345c69c6382933d0e923fe070e8ff82f4eb6f78576d3121a40972 SHA512 9577aeb7265d650746098386445535722ef496591063140a9244044073131ccbb542b91825082788cc03b798f55b2a1e5bb1f81ebe5c73cbdf6c69069f9e9649 +DIST signal-cli-bin-0.14.1.gh.tar.gz 98014824 BLAKE2B 9554536d05ca5d2e7c0311bbadfa24e1854a1d69f8e742480b557ba77de6572d87966ba55403cb88ace2ae63dd95351b5b613068a88fa5519a355d794a6f08b2 SHA512 9d8155fb30b85fa1db0e5248136e6e9843683589eec34ef5a2e890ec9012ee540cb6d63db9068230a69eeb67c3f18fd7b16f863792d22968f03a3f40a1819cb1 +DIST signal-cli-bin-0.14.1.signal-cli.1.adoc 35276 BLAKE2B 78aff7405dea7b14e5282752941fd667ba6146c0c4a9d635a0b37f0cf5c88706884854e2e9fbd217ce87375ed8e9529e833ea304822e26d45386b6f6c7e633c5 SHA512 18775c556aed68ea1fc23f45989c50380907f06d9fac0d099ec1e385d73e74f98ae641570d669a3a8b01b0da3de8a46f07cc9f138084bc673d6f67ab58312140 diff --git a/net-im/signal-cli-bin/files/signal-cli-bin-0.14.1-use-working-java-version.patch b/net-im/signal-cli-bin/files/signal-cli-bin-0.14.1-use-working-java-version.patch new file mode 100644 index 0000000000000..06a43f3dff936 --- /dev/null +++ b/net-im/signal-cli-bin/files/signal-cli-bin-0.14.1-use-working-java-version.patch @@ -0,0 +1,33 @@ +This patch searches the jre 25 binary in the gentoo specific directories. + +Signed-off-by: Julien Roy + +--- a/bin/signal-cli ++++ b/bin/signal-cli +@@ -118,13 +118,19 @@ + + + # Determine the Java command to use to start the JVM. +-if [ -n "$JAVA_HOME" ] ; then +- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +- # IBM's JDK on AIX uses strange locations for the executables +- JAVACMD=$JAVA_HOME/jre/sh/java +- else +- JAVACMD=$JAVA_HOME/bin/java +- fi ++# This package needs Java 25, ++# so we must search for matching java binaries ++for I in /usr/lib*/openjdk-25 /opt/openjdk-bin-25 /opt/openjdk-jre-bin-25; do ++ J_TRY="$I/bin/java" ++ if [ -x "$J_TRY" ] ; then ++ "$J_TRY" -version 2>&1 | grep --fixed-strings --quiet "25." ++ if [ $? -eq 0 ] ; then ++ JAVACMD="$J_TRY" ++ break ++ fi ++ fi ++done ++if [ -n "$JAVACMD" ] ; then + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + diff --git a/net-im/signal-cli-bin/signal-cli-bin-0.14.1.ebuild b/net-im/signal-cli-bin/signal-cli-bin-0.14.1.ebuild new file mode 100644 index 0000000000000..48b30a9e679a5 --- /dev/null +++ b/net-im/signal-cli-bin/signal-cli-bin-0.14.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="signal-cli-${PV}" +DESCRIPTION="Send and receive messages of Signal Messenger over a command line interface" +HOMEPAGE="https://github.com/AsamK/signal-cli" +SRC_URI=" + https://github.com/AsamK/signal-cli/releases/download/v${PV}/${MY_P}.tar.gz -> ${P}.gh.tar.gz + https://github.com/AsamK/signal-cli/raw/v${PV}/README.md -> ${P}.README.md + https://github.com/AsamK/signal-cli/raw/v${PV}/man/signal-cli.1.adoc -> ${P}.signal-cli.1.adoc +" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + virtual/jre:25 +" +RDEPEND="${DEPEND}" +BDEPEND=" + app-text/asciidoc +" + +PATCHES=( + "${FILESDIR}/${PN}-0.14.1-use-working-java-version.patch" +) + +src_unpack() { + default + cp "${DISTDIR}/${P}.signal-cli.1.adoc" signal-cli.1.adoc || die +} + +src_compile() { + default + a2x --no-xmllint --doctype manpage --format manpage "${WORKDIR}/signal-cli.1.adoc" || die +} + +src_install() { + dodir /opt/signal-cli/{lib,bin} + insinto /opt/signal-cli + doins -r lib + into /opt/signal-cli + dobin bin/signal-cli + dosym -r /opt/signal-cli/bin/signal-cli /usr/bin/signal-cli + newdoc "${DISTDIR}/${P}.README.md" README.md + doman "${WORKDIR}/signal-cli.1" +} + +pkg_postinst() { + elog "Please read /usr/share/doc/${PF}/README.md.bz2" + elog "how to register signal-cli with the signal service and how to send" + elog "and receive messages" +} diff --git a/net-p2p/bitcoin-core/Manifest b/net-p2p/bitcoin-core/Manifest index bd3c84b73100a..647f51aa024b2 100644 --- a/net-p2p/bitcoin-core/Manifest +++ b/net-p2p/bitcoin-core/Manifest @@ -2,5 +2,5 @@ DIST bitcoin-core-29.0-qt6.patch 16737 BLAKE2B bf863852ad8d313ad26612f1496129449 DIST bitcoin-core-29.2.tar.gz 12874820 BLAKE2B 43c57637f9ae842935cc27c8d16cfbdc7a2abe7ed55f58666f3bd3a2aa2826532a2207a35a27ed846b86ea2b304e22a99446d6d7138d202029ce9bde82353577 SHA512 1c3eb5988e1f6b0292f103de3e7911dc9430429687158988c510e647520d094e55b7cc63fd9044db9225111811368c1998b8320066bcec4f154e771e2beee7eb DIST bitcoin-core-29.3.tar.gz 12882742 BLAKE2B eac67459c29ceb38b685a5de9ebf382371f24175885e9d9ff2964746ee848bec56e71ac048e9727db5a2010dfd3c995ace05e266af00107c2af172889fd29703 SHA512 66e726eff5cca74c0baa58a4ac85ff054849567dc8b9c1dd221ca11dfbdf52887835afc5b8c9cf5c8acc1c8045c815e720cfb92ec8dfe07a06ecdf673e52294d DIST bitcoin-core-30.2.tar.gz 12682326 BLAKE2B 426ea9126ea8ee0eb0152a0e4806d7f6920be067bf4203bf98d91bcb74544383652c9406da23aaf15d72b4fd55584bd6c5fcc66267741a3cc35a338e379f8ea7 SHA512 850d8da77875b9a385c92f3a25be10d13f5961f10867cce0811e6dbf0c22edf00caa283bdfee6771978fa00bdc3865a06fa252232366b7231fded65e6ea0b5a5 -DIST bitcoin-core-31.0_rc1.tar.gz 14622681 BLAKE2B 1604ec837dee081ab375483dafaf39569ce144aac521c34c0083611494d3e966d45f7ee1b19a65b105a8715efe32a97c8edebbd6a4d7ff114651e7915cfa41cd SHA512 002ee8d72b64c3abb99cb42d323ce8c2bbd02b3c560f4579a03c2228cc0ae3f98539f100a1102971cd25e16ea6d4fba44a643e73600f69da221c28d705e49488 +DIST bitcoin-core-31.0_rc2.tar.gz 14623603 BLAKE2B 0bc4cfd501d1668792441a15e84465aa4e9058e90d63b65dc8ac021427a4561a3bb09381cf461efbbd284954077e9de0a5a35695aa7ae92dba709aa2d642773b SHA512 7b7b77ef21aa4356221e2c9d25f8bb268b0d588bff6c515b42dfa7c0f6808d5cc2940c8aac1efad63819611a6120679a29e8d858e9704cce9280e3592ce6257b DIST bitcoin-core-fix-mempool_updatefromblock.patch 3361 BLAKE2B f307270c1b28d5d93815ad96c1b7b69ddd0c9e0f4a818cffdef01293a4dd8e752ae3786fe23dd8d4efacfc9bcddc582d23210df090e53aaf1e6521ec5527a5e0 SHA512 537b9998d8354fca1158970d73cfc0488e5f7a1f1eed3c0ff4956d2fe63d8cd526540c88e8750bacdb75edd9bd053eb9f4b37813e3159bea5e66b3acba3063d6 diff --git a/net-p2p/bitcoin-core/bitcoin-core-31.0_rc1.ebuild b/net-p2p/bitcoin-core/bitcoin-core-31.0_rc2.ebuild similarity index 100% rename from net-p2p/bitcoin-core/bitcoin-core-31.0_rc1.ebuild rename to net-p2p/bitcoin-core/bitcoin-core-31.0_rc2.ebuild diff --git a/net-wireless/wpa_supplicant/files/wpa_supplicant-2.11-Send-CTRL-EVENT-SIGNAL-CHANGE-message-to-control-interfaces-only.patch b/net-wireless/wpa_supplicant/files/wpa_supplicant-2.11-Send-CTRL-EVENT-SIGNAL-CHANGE-message-to-control-interfaces-only.patch new file mode 100644 index 0000000000000..e16f9fdd25030 --- /dev/null +++ b/net-wireless/wpa_supplicant/files/wpa_supplicant-2.11-Send-CTRL-EVENT-SIGNAL-CHANGE-message-to-control-interfaces-only.patch @@ -0,0 +1,50 @@ +Bug: https://bugs.gentoo.org/971605 +Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2309148 + +From c330b5820eefa8e703dbce7278c2a62d9c69166a Mon Sep 17 00:00:00 2001 +From: Kan-Ru Chen +Date: Mon, 23 Dec 2024 08:42:33 +0900 +Subject: Send CTRL-EVENT-SIGNAL-CHANGE message to control interfaces only + +The default logging level for the CTRL-EVENT-SIGNAL-CHANGE message +may be repeated many times and fill the log file or journal. + +For example https://bugzilla.redhat.com/show_bug.cgi?id=2309148 and +the first few results from searching CTRL-EVENT-SIGNAL-CHANGE on the +web contain various complaints and workarounds. + +Change the logging method to wpa_msg_ctrl to avoid sending frequent +messages to the syslog but still allow the message to be consumed by +control interface monitors. + +Signed-off-by: Kan-Ru Chen +--- + wpa_supplicant/events.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c +index 5a1bc6d58..00109a0cd 100644 +--- a/wpa_supplicant/events.c ++++ b/wpa_supplicant/events.c +@@ -6766,12 +6766,12 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, + data->eapol_rx.encrypted); + break; + case EVENT_SIGNAL_CHANGE: +- wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_SIGNAL_CHANGE +- "above=%d signal=%d noise=%d txrate=%lu", +- data->signal_change.above_threshold, +- data->signal_change.data.signal, +- data->signal_change.current_noise, +- data->signal_change.data.current_tx_rate); ++ wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_SIGNAL_CHANGE ++ "above=%d signal=%d noise=%d txrate=%lu", ++ data->signal_change.above_threshold, ++ data->signal_change.data.signal, ++ data->signal_change.current_noise, ++ data->signal_change.data.current_tx_rate); + wpa_bss_update_level(wpa_s->current_bss, + data->signal_change.data.signal); + bgscan_notify_signal_change( +-- +cgit v1.2.3 + diff --git a/net-wireless/wpa_supplicant/wpa_supplicant-2.11-r5.ebuild b/net-wireless/wpa_supplicant/wpa_supplicant-2.11-r5.ebuild new file mode 100644 index 0000000000000..7ab0c4adf82d5 --- /dev/null +++ b/net-wireless/wpa_supplicant/wpa_supplicant-2.11-r5.ebuild @@ -0,0 +1,455 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop linux-info qmake-utils readme.gentoo-r1 systemd toolchain-funcs + +DESCRIPTION="IEEE 802.1X/WPA supplicant for secure wireless transfers" +HOMEPAGE="https://w1.fi/wpa_supplicant/" +LICENSE="|| ( GPL-2 BSD )" + +if [ "${PV}" = "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://w1.fi/hostap.git" +else + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + SRC_URI="https://w1.fi/releases/${P}.tar.gz" +fi + +SLOT="0" +IUSE="+ap broadcom-sta dbus eap-sim eapol-test +fils gui macsec +mbo +mesh p2p privsep readline selinux smartcard tkip uncommon-eap-types wep wps" + +# CONFIG_PRIVSEP=y does not have sufficient support for the new driver +# interface functions used for MACsec, so this combination cannot be used +# at least for now. bug #684442 +REQUIRED_USE=" + macsec? ( !privsep ) + mesh? ( ap ) + p2p? ( ap wps ) + privsep? ( !macsec ) + broadcom-sta? ( !fils !mesh !mbo ) +" + +DEPEND=" + >=dev-libs/openssl-1.0.2k:= + dbus? ( sys-apps/dbus ) + kernel_linux? ( + >=dev-libs/libnl-3.2:3 + eap-sim? ( sys-apps/pcsc-lite ) + ) + !kernel_linux? ( net-libs/libpcap ) + gui? ( + dev-qt/qtbase:6[gui,widgets] + dev-qt/qtsvg:6 + ) + readline? ( + sys-libs/ncurses:0= + sys-libs/readline:0= + ) +" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-networkmanager ) + kernel_linux? ( + net-wireless/wireless-regdb + ) +" +BDEPEND="virtual/pkgconfig" + +DOC_CONTENTS=" + If this is a clean installation of wpa_supplicant, you + have to create a configuration file named + /etc/wpa_supplicant/wpa_supplicant.conf + An example configuration file is available for reference in + /usr/share/doc/${PF}/ +" + +S="${WORKDIR}/${P}/${PN}" + +Kconfig_style_config() { + #param 1 is CONFIG_* item + #param 2 is what to set it = to, defaulting in y + CONFIG_PARAM="${CONFIG_HEADER:-CONFIG_}$1" + setting="${2:-y}" + + if [ ! $setting = n ]; then + #first remove any leading "# " if $2 is not n + sed -i "/^# *$CONFIG_PARAM=/s/^# *//" .config || echo "Kconfig_style_config error uncommenting $CONFIG_PARAM" + #set item = $setting (defaulting to y) + if ! sed -i "/^$CONFIG_PARAM\>/s/=.*/=$setting/" .config; then + echo "Kconfig_style_config error setting $CONFIG_PARAM=$setting" + fi + if [ -z "$( grep ^$CONFIG_PARAM= .config )" ] ; then + echo "$CONFIG_PARAM=$setting" >>.config + fi + else + #ensure item commented out + if ! sed -i "/^$CONFIG_PARAM\>/s/$CONFIG_PARAM/# $CONFIG_PARAM/" .config; then + echo "Kconfig_style_config error commenting $CONFIG_PARAM" + fi + fi +} + +src_prepare() { + default + + # net/bpf.h needed for net-libs/libpcap on Gentoo/FreeBSD + sed -i \ + -e "s:\(#include \):#include \n\1:" \ + ../src/l2_packet/l2_packet_freebsd.c || die + + # Change configuration to match Gentoo locations (bug #143750) + sed -i \ + -e "s:/usr/lib/opensc:/usr/$(get_libdir):" \ + -e "s:/usr/lib/pkcs11:/usr/$(get_libdir):" \ + wpa_supplicant.conf || die + + # systemd entries to D-Bus service files (bug #372877) + echo 'SystemdService=wpa_supplicant.service' \ + | tee -a dbus/*.service >/dev/null || die + + cd "${WORKDIR}/${P}" || die + + # bug (320097) + eapply "${FILESDIR}/${PN}-2.6-do-not-call-dbus-functions-with-NULL-path.patch" + + # bug (912315) + eapply "${FILESDIR}/${PN}-2.10-allow-legacy-renegotiation.patch" + + # bug (948052) + eapply "${FILESDIR}/${PN}-2.10-use-qt6.patch" + + # bug (937452) + eapply "${FILESDIR}/${PN}-2.11-Revert-Mark-authorization-completed-on-driver-indica.patch" + + # bug (956555) + eapply "${FILESDIR}/${PN}-2.11-broadcom-wl-scanning.patch" + + # bug (971605) + eapply "${FILESDIR}/${PN}-2.11-Send-CTRL-EVENT-SIGNAL-CHANGE-message-to-control-interfaces-only.patch" + + # bug (640492) + sed -i 's#-Werror ##' wpa_supplicant/Makefile || die +} + +src_configure() { + # Toolchain setup + tc-export CC PKG_CONFIG + + cp defconfig .config || die + + # Basic setup + Kconfig_style_config CTRL_IFACE + Kconfig_style_config MATCH_IFACE + Kconfig_style_config BACKEND file + Kconfig_style_config IBSS_RSN + Kconfig_style_config IEEE80211W + Kconfig_style_config IEEE80211R + Kconfig_style_config HT_OVERRIDES + Kconfig_style_config VHT_OVERRIDES + Kconfig_style_config OCV + Kconfig_style_config TLSV11 + Kconfig_style_config TLSV12 + Kconfig_style_config GETRANDOM + + # Basic authentication methods + # NOTE: we don't set GPSK or SAKE as they conflict + # with the below options + Kconfig_style_config EAP_GTC + Kconfig_style_config EAP_MD5 + Kconfig_style_config EAP_OTP + Kconfig_style_config EAP_PAX + Kconfig_style_config EAP_PSK + Kconfig_style_config EAP_TLV + Kconfig_style_config EAP_EXE + Kconfig_style_config IEEE8021X_EAPOL + Kconfig_style_config PKCS12 + Kconfig_style_config PEERKEY + Kconfig_style_config EAP_LEAP + Kconfig_style_config EAP_MSCHAPV2 + Kconfig_style_config EAP_PEAP + Kconfig_style_config EAP_TEAP + Kconfig_style_config EAP_TLS + Kconfig_style_config EAP_TTLS + + # Enabling background scanning. + Kconfig_style_config BGSCAN_SIMPLE + Kconfig_style_config BGSCAN_LEARN + + if use dbus ; then + Kconfig_style_config CTRL_IFACE_DBUS + Kconfig_style_config CTRL_IFACE_DBUS_NEW + Kconfig_style_config CTRL_IFACE_DBUS_INTRO + else + Kconfig_style_config CTRL_IFACE_DBUS n + Kconfig_style_config CTRL_IFACE_DBUS_NEW n + Kconfig_style_config CTRL_IFACE_DBUS_INTRO n + fi + + if use eapol-test ; then + Kconfig_style_config EAPOL_TEST + fi + + # Enable support for writing debug info to a log file and syslog. + Kconfig_style_config DEBUG_FILE + Kconfig_style_config DEBUG_SYSLOG + + if use mbo ; then + Kconfig_style_config MBO + else + Kconfig_style_config MBO n + fi + + if use uncommon-eap-types; then + Kconfig_style_config EAP_GPSK + Kconfig_style_config EAP_SAKE + Kconfig_style_config EAP_GPSK_SHA256 + Kconfig_style_config EAP_IKEV2 + Kconfig_style_config EAP_EKE + fi + + if use eap-sim ; then + # Smart card authentication + Kconfig_style_config EAP_SIM + Kconfig_style_config EAP_AKA + Kconfig_style_config EAP_AKA_PRIME + Kconfig_style_config PCSC + fi + + if use readline ; then + # readline/history support for wpa_cli + Kconfig_style_config READLINE + else + #internal line edit mode for wpa_cli + Kconfig_style_config WPA_CLI_EDIT + fi + + Kconfig_style_config TLS openssl + Kconfig_style_config FST + + Kconfig_style_config EAP_PWD + if use fils; then + Kconfig_style_config FILS + Kconfig_style_config FILS_SK_PFS + fi + if use mesh; then + Kconfig_style_config MESH + else + Kconfig_style_config MESH n + fi + # WPA3 + Kconfig_style_config OWE + Kconfig_style_config SAE + Kconfig_style_config DPP + Kconfig_style_config DPP2 + Kconfig_style_config SUITEB192 + Kconfig_style_config SUITEB + + if use wep ; then + Kconfig_style_config WEP + else + Kconfig_style_config WEP n + fi + + # Watch out, reversed logic + if use tkip ; then + Kconfig_style_config NO_TKIP n + else + Kconfig_style_config NO_TKIP + fi + + if use smartcard ; then + Kconfig_style_config SMARTCARD + else + Kconfig_style_config SMARTCARD n + fi + + if use kernel_linux ; then + # Linux specific drivers + Kconfig_style_config DRIVER_ATMEL + Kconfig_style_config DRIVER_HOSTAP + Kconfig_style_config DRIVER_IPW + Kconfig_style_config DRIVER_NL80211 + Kconfig_style_config DRIVER_RALINK + Kconfig_style_config DRIVER_WEXT + Kconfig_style_config DRIVER_WIRED + + if use macsec ; then + #requires something, no idea what + #Kconfig_style_config DRIVER_MACSEC_QCA + Kconfig_style_config DRIVER_MACSEC_LINUX + Kconfig_style_config MACSEC + else + # bug #831369 and bug #684442 + Kconfig_style_config DRIVER_MACSEC_LINUX n + Kconfig_style_config MACSEC n + fi + fi + + # Wi-Fi Protected Setup (WPS) + if use wps ; then + Kconfig_style_config WPS + Kconfig_style_config WPS2 + # USB Flash Drive + Kconfig_style_config WPS_UFD + # External Registrar + Kconfig_style_config WPS_ER + # Universal Plug'n'Play + Kconfig_style_config WPS_UPNP + # Near Field Communication + Kconfig_style_config WPS_NFC + else + Kconfig_style_config WPS n + Kconfig_style_config WPS2 n + Kconfig_style_config WPS_UFD n + Kconfig_style_config WPS_ER n + Kconfig_style_config WPS_UPNP n + Kconfig_style_config WPS_NFC n + fi + + # Wi-Fi Direct (WiDi) + if use p2p ; then + Kconfig_style_config P2P + Kconfig_style_config WIFI_DISPLAY + else + Kconfig_style_config P2P n + Kconfig_style_config WIFI_DISPLAY n + fi + + # Access Point Mode + if use ap ; then + Kconfig_style_config AP + else + Kconfig_style_config AP n + fi + + # Enable essentials for AP/P2P + if use ap || use p2p ; then + # Enabling HT support (802.11n) + Kconfig_style_config IEEE80211N + + # Enabling VHT support (802.11ac) + Kconfig_style_config IEEE80211AC + fi + + # Enable mitigation against certain attacks against TKIP + Kconfig_style_config DELAYED_MIC_ERROR_REPORT + + if use privsep ; then + Kconfig_style_config PRIVSEP + fi + + if use kernel_linux ; then + Kconfig_style_config LIBNL32 + fi + + if use gui ; then + pushd "${S}"/wpa_gui-qt4 > /dev/null || die + eqmake6 wpa_gui.pro + popd > /dev/null || die + fi +} + +src_compile() { + einfo "Building wpa_supplicant" + emake V=1 BINDIR=/usr/sbin + + if use gui ; then + einfo "Building wpa_gui" + emake -C "${S}"/wpa_gui-qt4 + fi + + if use eapol-test ; then + emake eapol_test + fi +} + +src_install() { + dosbin wpa_supplicant + use privsep && dosbin wpa_priv + dobin wpa_cli wpa_passphrase + + newinitd "${FILESDIR}/${PN}-init.d" wpa_supplicant + newconfd "${FILESDIR}/${PN}-conf.d" wpa_supplicant + + exeinto /etc/wpa_supplicant/ + newexe "${FILESDIR}/wpa_cli-r1.sh" wpa_cli.sh + + readme.gentoo_create_doc + dodoc ChangeLog {eap_testing,todo}.txt README{,-WPS} \ + wpa_supplicant.conf + + newdoc .config build-config + + if [ "${PV}" != "9999" ]; then + doman doc/docbook/*.{5,8} + fi + + if use gui ; then + into /usr + dobin wpa_gui-qt4/wpa_gui + doicon wpa_gui-qt4/icons/wpa_gui.svg + domenu wpa_gui-qt4/wpa_gui.desktop + else + rm "${ED}"/usr/share/man/man8/wpa_gui.8 + fi + + if use dbus ; then + pushd "${S}"/dbus > /dev/null || die + insinto /etc/dbus-1/system.d + newins dbus-wpa_supplicant.conf wpa_supplicant.conf + insinto /usr/share/dbus-1/system-services + doins fi.w1.wpa_supplicant1.service + popd > /dev/null || die + + # This unit relies on dbus support, bug 538600. + systemd_dounit systemd/wpa_supplicant.service + fi + + if use eapol-test ; then + dobin eapol_test + fi + + systemd_dounit "systemd/wpa_supplicant@.service" + systemd_dounit "systemd/wpa_supplicant-nl80211@.service" + systemd_dounit "systemd/wpa_supplicant-wired@.service" +} + +pkg_postinst() { + readme.gentoo_print_elog + + if [[ -e "${EROOT}"/etc/wpa_supplicant.conf ]] ; then + echo + ewarn "WARNING: your old configuration file ${EROOT}/etc/wpa_supplicant.conf" + ewarn "needs to be moved to ${EROOT}/etc/wpa_supplicant/wpa_supplicant.conf" + fi + if ! use wep; then + einfo "WARNING: You are building with WEP support disabled, which is recommended since" + einfo "this protocol is deprecated and insecure. If you still need to connect to" + einfo "WEP-enabled networks, you may turn this flag back on. With this flag off," + einfo "WEP-enabled networks will not even show up as available." + einfo "If your network is missing you may wish to USE=wep" + fi + if ! use tkip; then + ewarn "WARNING: You are building with TKIP support disabled, which is recommended since" + ewarn "this protocol is deprecated and insecure. If you still need to connect to" + ewarn "TKIP-enabled networks, you may turn this flag back on. With this flag off," + ewarn "TKIP-enabled networks, including mixed mode TKIP/AES-CCMP will not even show up" + ewarn "as available. If your network is missing you may wish to USE=tkip" + fi + + # Mea culpa, feel free to remove that after some time --mgorny. + local fn + for fn in wpa_supplicant{,@wlan0}.service; do + if [[ -e "${EROOT}"/etc/systemd/system/network.target.wants/${fn} ]] + then + ebegin "Moving ${fn} to multi-user.target" + mv "${EROOT}"/etc/systemd/system/network.target.wants/${fn} \ + "${EROOT}"/etc/systemd/system/multi-user.target.wants/ || die + eend ${?} \ + "Please try to re-enable ${fn}" + fi + done + + systemd_reenable wpa_supplicant.service +} diff --git a/sys-apps/groff/files/groff-1.23.0-man-unicode-fix.patch b/sys-apps/groff/files/groff-1.23.0-man-unicode-fix.patch new file mode 100644 index 0000000000000..49a6cc589d608 --- /dev/null +++ b/sys-apps/groff/files/groff-1.23.0-man-unicode-fix.patch @@ -0,0 +1,41 @@ +format dashes as dashes so as to not confuse people + +groff 1.23.0 also changed the "utf8" device to render +"^" and "~" as U+02C6 and U+02DC respectively. +this causes similar searchability/copy-paste issue +especially for ~ which is often used to denote $HOME path. + +http://bugs.gentoo.org/16108 +http://bugs.gentoo.org/17580 +http://bugs.gentoo.org/121502 + +--- a/tmac/man.local ++++ b/tmac/man.local +@@ -1,6 +1,12 @@ + .\" This file is loaded by an.tmac. + .\" + .\" Put local modifications to groff_man(7)'s behavior here. ++.if '\*[.T]'utf8' \{\ ++. char \- \N'45' ++. char - \N'45' ++. char ^ \[ha] ++. char ~ \[ti] ++.\} + .\" + .\" Change "0" to "1" to enable OSC 8 links on SGR-capable grotty(1) + .\" output devices. +--- a/tmac/mdoc.local ++++ b/tmac/mdoc.local +@@ -1,6 +1,12 @@ + .\" This file is loaded by mdoc.tmac. + .\" + .\" Put local modifications to groff_mdoc(7)'s behavior here. ++.if '\*[.T]'utf8' \{\ ++. char \- \N'45' ++. char - \N'45' ++. char ^ \[ha] ++. char ~ \[ti] ++.\} + .\" + .\" "CW" is not a portable font name, but some man pages use it anyway. + .\" Uncomment this to suppress warnings produced by such pages. This diff --git a/sys-apps/groff/groff-1.23.0-r2.ebuild b/sys-apps/groff/groff-1.23.0-r2.ebuild new file mode 100644 index 0000000000000..923e54a05592a --- /dev/null +++ b/sys-apps/groff/groff-1.23.0-r2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +MY_P="${P/_/.}" +DESCRIPTION="Text formatter used for man pages" +HOMEPAGE="https://www.gnu.org/software/groff/groff.html" + +if [[ ${PV} == *_rc* ]] ; then + SRC_URI="https://alpha.gnu.org/gnu/groff/${MY_P}.tar.gz" +else + SRC_URI="mirror://gnu/groff/${MY_P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" +fi + +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples uchardet X" + +RDEPEND=" + uchardet? ( app-i18n/uchardet ) + X? ( + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXt + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-lang/perl + sys-apps/texinfo + sys-devel/m4 +" + +DOCS=( BUG-REPORT ChangeLog MORE.STUFF NEWS PROBLEMS PROJECTS README TODO ) + +QA_CONFIG_IMPL_DECL_SKIP=( + # False positive with older autoconf, will be fixed w/ autoconf-2.72 + static_assert +) + +PATCHES=( + # bug #16108, bug #17580, bug #121502 + "${FILESDIR}"/${PN}-1.23.0-man-unicode-fix.patch + "${FILESDIR}"/${PN}-1.23.0-musl-getopt.patch +) + +src_prepare() { + default + + # Honor Gentoo's docdir + sed -i -e "s|^docdir =.*|docdir = \"${EPREFIX}/usr/share/doc/${PF}\"|g" \ + Makefile.in \ + || die "failed to modify Makefile.in" + + local pfx=$(usex prefix ' Prefix' '') + cat <<-EOF >> tmac/mdoc.local || die + .ds volume-operating-system Gentoo${pfx} + .ds operating-system Gentoo${pfx}/${KERNEL} + .ds default-operating-system Gentoo${pfx}/${KERNEL} + EOF + + # make sure we don't get a crappy `g' nameprefix on UNIX systems with real + # troff (GROFF_G macro runs some test to see, its own troff doesn't satisfy) + sed -i -e 's/^[ \t]\+g=g$/g=/' configure || die +} + +src_configure() { + local myeconfargs=( + --with-appdefdir="${EPREFIX}"/usr/share/X11/app-defaults + --without-compatibility-wrappers # for Prefix + $(use_with uchardet) + $(use_with X x) + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + local -a CROSS_ARGS + tc-is-cross-compiler && CROSS_ARGS+=( + GROFFBIN="$(type -P groff)" + TROFFBIN="$(type -P troff)" + GROFF_BIN_DIR= + GROFF_BIN_PATH= + ) + + emake AR="$(tc-getAR)" "${CROSS_ARGS[@]}" +} + +src_install() { + default + + # The following links are required for man, bug #123674 + dosym eqn /usr/bin/geqn + dosym tbl /usr/bin/gtbl + + if ! use examples ; then + # The pdf files might not be generated if ghostscript is unavailable, bug #602020 + local pdf="${ED}/usr/share/doc/${PF}/examples/mom/mom-pdf.pdf" + if [[ -e ${pdf} ]] ; then + # Keep mom-pdf.pdf since it's more of a manual than an example + # bug #454196 and bug #516732 + mv "${pdf}" "${ED}/usr/share/doc/${PF}/pdf/" || die + fi + rm -rf "${ED}/usr/share/doc/${PF}/examples" + fi +} diff --git a/sys-libs/glibc/glibc-2.43-r1.ebuild b/sys-libs/glibc/glibc-2.43-r1.ebuild index 35dcbba64cda6..da262238c52d9 100644 --- a/sys-libs/glibc/glibc-2.43-r1.ebuild +++ b/sys-libs/glibc/glibc-2.43-r1.ebuild @@ -43,7 +43,7 @@ HOMEPAGE="https://www.gnu.org/software/libc/" if [[ ${PV} == *9999 ]]; then inherit git-r3 else - #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" SRC_URI="mirror://gnu/glibc/${P}.tar.xz" SRC_URI+=" verify-sig? ( mirror://gnu/glibc/${P}.tar.xz.sig )" SRC_URI+=" https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${P}-patches-${PATCH_VER}.tar.xz"