diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-08 15:03:58 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-08 15:03:58 +0100 |
commit | 814f4cf860e299a046b649eaee5463427984c09c (patch) | |
tree | 74c45f097899310e599dad6b8df5b63e0f085bc0 /sys-fs/bees | |
parent | 7f0ccc917c7abe6223784c703d86cd14755691fb (diff) |
gentoo resync : 08.07.2021
Diffstat (limited to 'sys-fs/bees')
-rw-r--r-- | sys-fs/bees/Manifest | 7 | ||||
-rw-r--r-- | sys-fs/bees/bees-0.6.5.ebuild (renamed from sys-fs/bees/bees-0.6.4.ebuild) | 10 | ||||
-rw-r--r-- | sys-fs/bees/bees-9999.ebuild | 15 | ||||
-rw-r--r-- | sys-fs/bees/files/v9999-0001-HACK-musl-does-not-define-pthread_getname_np.patch | 50 |
4 files changed, 15 insertions, 67 deletions
diff --git a/sys-fs/bees/Manifest b/sys-fs/bees/Manifest index 9c95431c6de7..de2f6c58b6b6 100644 --- a/sys-fs/bees/Manifest +++ b/sys-fs/bees/Manifest @@ -1,6 +1,5 @@ AUX 0001-HACK-musl-does-not-define-pthread_getname_np.patch 1406 BLAKE2B 92d82eb147a90ca65acfe9b2ff16dd6f514fa1f2a5950b1f6fcdff68963e0f4be4a8b9b2b695a912eb1ac2ffcc0b171749d4c8b38f733451aa48646b2a8653ce SHA512 93bd338ec59fa0601178e3737a4eaeb8af7df83c16b409544ec55bdf7865786785cf6a9a160dd29cb4b8eadc2c6f311f6cd3bbe6e9310ad2356fd69ff5ba35bc -AUX v9999-0001-HACK-musl-does-not-define-pthread_getname_np.patch 1481 BLAKE2B 971b52075858100a0bea860c10af4d6501cc79356730e5510fc4e430695a4f703c7d06c6f651b8403296540570230581f06a7d2fec9426e30ebe99f19ff5df05 SHA512 f36f98eef3ad942ce411331492fc6722201ddf4c9ec46695dbd8af28d87f7188443401e502ce67936d08f3cb6dfa17535264fe30150e4bf2e0652fc2c55378e3 -DIST bees-0.6.4.tar.gz 126064 BLAKE2B 562f0cfd63d15978a26f859548eb36cea0bf1be8e363c7ee5d2294e3c6407b4a93d865ffe2d15fabaeb2b3e136ad2d48cab3210c00e5fe39432985186ad62c55 SHA512 ce0eb66ac0770838e13ba6007fd765c02aea3f5eefc09e2834118d420e71693c37b8aa8511cfc9577ca09ab82d37787a1854edbed090c059759b29c70d834672 -EBUILD bees-0.6.4.ebuild 3097 BLAKE2B ccab0344ebed9ebd7f764ce15c6a1b0c553055e49b1365cf5a612fc12234cc14e4537267fc7502c6c6284e1a4c0e2bd1a3dfa735918922ce181bab709a7cb423 SHA512 2d3852a1a15739dc357987a659ec2cee1f4c2991aa7a2a8a0735484b4ef67cdebc7c972261ec71e78a19191e5a7dd6ed7f5149f61453b5a5b27bebe6769f73da -EBUILD bees-9999.ebuild 3103 BLAKE2B 8aac86dc3e6e5ec9fa947ad70d718438fc7befc991c89db9f696c25d4df85a0c664e75a8e97396d48b1d68318f52d864baae428eb4c47c2ec25dff74d9a91e68 SHA512 4267d9824b1f15535c35dae20c442355ec2c05cd16707579df21f19d6478dbcb034af6103b76c4829b6aa5b21e30bcf0bfc83989f709a0dcb2d21c7bcef933ba +DIST bees-0.6.5.tar.gz 125987 BLAKE2B 459cec5f3c706045ee12a6efe2e32315d71ca16c966bbdb4d6c813f726a7cc411cf4bd272c082ba0bbfc33e9ec4c715a6be773ba929c2b5b31f1731e10ad137c SHA512 db4cf6bc8c7709ee9aa1e2faa2ac1c6323fb8c7407470cec0c370a0f910ec4a1f3cf6ebe695d16383aaec00b62b3de77aa5bbdd47502bdb564e247b3b8879e0b +EBUILD bees-0.6.5.ebuild 3221 BLAKE2B 691a3ff0dc53473392ed9b38a0c8cdc9531cdf9063a979cf60c2160cba4dd7c1de0204acb4127424ecc6427140a1d65134e48b3ec3b3f263d6cc1a27402352b9 SHA512 b82844817a11ba984862716f8619f61e019c238e68e87e2fd38636f28ab510a2887ba15686e797bcd85b164da1923eee9a7e5574868fa900806d80a2c7911440 +EBUILD bees-9999.ebuild 3071 BLAKE2B 0b4f8cc24bdc8f1045a56ca49bd5b6dff791f48d8129bac99a3e769c8b792f1b159124932116666081a1d3338768b0a1065f30f0aed032bbdd96abd7fb85b1c5 SHA512 ec51670d6fbf96475d58af13833bc232a2516f9349327ce5f4da247077f99e013eafb1a4779439caf17b6361c0d97a98961870f786b0f48fc99452d44e8e4c62 MISC metadata.xml 621 BLAKE2B ad7950528a5e6cedcfd19fa0f1ce9e56a865a27cdd385140109378554d420a4aaece5ffedc7be785a5a3968a85415955618442986de458adb2ce268d7afaead9 SHA512 82f309ea8403bddff65a4e7843647f99084543aa008b5d183b22d9b165f0590043f25a79f504f02b1a6e578d50f87008b88d9c453fa7afa287d1cab1d92fa669 diff --git a/sys-fs/bees/bees-0.6.4.ebuild b/sys-fs/bees/bees-0.6.5.ebuild index 6c38f7b9c91e..a52e8e18f6c9 100644 --- a/sys-fs/bees/bees-0.6.4.ebuild +++ b/sys-fs/bees/bees-0.6.5.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit linux-info systemd +inherit linux-info systemd toolchain-funcs DESCRIPTION="Best-Effort Extent-Same, a btrfs dedup agent" HOMEPAGE="https://github.com/Zygo/bees" @@ -71,13 +71,15 @@ pkg_pretend() { src_prepare() { default sed -i 's/ -Werror//' makeflags || die + sed -i '/^LDFLAGS/s/=/+=/' {src,test}/Makefile || die } src_configure() { + tc-export CC CXX cat >localconf <<-EOF || die - LIBEXEC_PREFIX=/usr/libexec - PREFIX=/usr - LIBDIR="$(get_libdir)" + LIBEXEC_PREFIX="${EPREFIX}/usr/libexec" + PREFIX="${EPREFIX}/usr" + LIBDIR="${EPREFIX}/$(get_libdir)" SYSTEMD_SYSTEM_UNIT_DIR="$(systemd_get_systemunitdir)" DEFAULT_MAKE_TARGET=all EOF diff --git a/sys-fs/bees/bees-9999.ebuild b/sys-fs/bees/bees-9999.ebuild index d656c4e6cded..7777d0ea45fd 100644 --- a/sys-fs/bees/bees-9999.ebuild +++ b/sys-fs/bees/bees-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit linux-info systemd +inherit linux-info systemd toolchain-funcs DESCRIPTION="Best-Effort Extent-Same, a btrfs dedup agent" HOMEPAGE="https://github.com/Zygo/bees" @@ -29,8 +29,6 @@ RDEPEND="${DEPEND}" CONFIG_CHECK="~BTRFS_FS" ERROR_BTRFS_FS="CONFIG_BTRFS_FS: bees does currently only work with btrfs" -PATCHES=( "${FILESDIR}/v9999-0001-HACK-musl-does-not-define-pthread_getname_np.patch" ) - pkg_pretend() { if [[ ${MERGE_TYPE} != buildonly ]]; then if kernel_is -lt 4 11; then @@ -74,17 +72,16 @@ src_prepare() { } src_configure() { + tc-export CC CXX AR cat >localconf <<-EOF || die - LIBEXEC_PREFIX=/usr/libexec - PREFIX=/usr - LIBDIR="$(get_libdir)" + LIBEXEC_PREFIX="${EPREFIX}/usr/libexec" + PREFIX="${EPREFIX}/usr" + LIBDIR="${EPREFIX}/$(get_libdir)" SYSTEMD_SYSTEM_UNIT_DIR="$(systemd_get_systemunitdir)" DEFAULT_MAKE_TARGET=all EOF if [[ ${PV} != "9999" ]] ; then - cat >>localconf <<-EOF || die - BEES_VERSION=v${PV} - EOF + echo BEES_VERSION=v${PV} >>localconf || die fi if use tools; then echo OPTIONAL_INSTALL_TARGETS=install_tools >>localconf || die diff --git a/sys-fs/bees/files/v9999-0001-HACK-musl-does-not-define-pthread_getname_np.patch b/sys-fs/bees/files/v9999-0001-HACK-musl-does-not-define-pthread_getname_np.patch deleted file mode 100644 index 6b8224a5a56f..000000000000 --- a/sys-fs/bees/files/v9999-0001-HACK-musl-does-not-define-pthread_getname_np.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 02bdb636be5abd15836e5e43e9b53517595686c9 Mon Sep 17 00:00:00 2001 -From: Kai Krakow <kai@kaishome.de> -Date: Thu, 16 Apr 2020 21:21:57 +0200 -Subject: [PATCH v9999] HACK: musl does not define pthread_getname_np() - -The glibc alternative musl does not define this setter function. This -fix is probably wrong because it resets the thread names used for -logging internally to empty strings. - -Link: https://www.openwall.com/lists/musl/2019/07/17/3 -Signed-off-by: Kai Krakow <kai@kaishome.de> ---- - lib/task.cc | 2 ++ - src/bees.cc | 2 ++ - 2 files changed, 4 insertions(+) - -diff --git a/lib/task.cc b/lib/task.cc -index 937a477..85da59b 100644 ---- a/lib/task.cc -+++ b/lib/task.cc -@@ -194,7 +194,9 @@ namespace crucible { - lock.unlock(); - - char buf[24] = { 0 }; -+#ifdef _GNU_SOURCE - DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf))); -+#endif - DIE_IF_MINUS_ERRNO(pthread_setname_np(pthread_self(), m_title.c_str())); - - sched_param param = { .sched_priority = 0 }; -diff --git a/src/bees.cc b/src/bees.cc -index 03a626c..3db5d73 100644 ---- a/src/bees.cc -+++ b/src/bees.cc -@@ -152,10 +152,12 @@ BeesNote::get_name() - // OK try the pthread name next. - char buf[24]; - memset(buf, '\0', sizeof(buf)); -+#ifdef _GNU_SOURCE - int err = pthread_getname_np(pthread_self(), buf, sizeof(buf)); - if (err) { - return string("pthread_getname_np: ") + strerror(err); - } -+#endif - buf[sizeof(buf) - 1] = '\0'; - - // thread_getname_np returns process name --- -2.26.2 - |