diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-09 12:18:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-09 12:18:21 +0000 |
commit | 83c424cc446967ca87809e13c2ef264eebce79f8 (patch) | |
tree | bce1c3a7e1f36095b5a4956a97e7ec63d3414d41 /sys-fs/libeatmydata | |
parent | 92ed25ce2ff461f502de1dd96ab0accd683b69d2 (diff) |
gentoo auto-resync : 09:01:2023 - 12:18:20
Diffstat (limited to 'sys-fs/libeatmydata')
-rw-r--r-- | sys-fs/libeatmydata/Manifest | 3 | ||||
-rw-r--r-- | sys-fs/libeatmydata/files/libeatmydata-131-gnu_source.patch | 52 | ||||
-rw-r--r-- | sys-fs/libeatmydata/libeatmydata-131.ebuild | 39 |
3 files changed, 94 insertions, 0 deletions
diff --git a/sys-fs/libeatmydata/Manifest b/sys-fs/libeatmydata/Manifest index 46e539b3dc23..a465ee96c6a5 100644 --- a/sys-fs/libeatmydata/Manifest +++ b/sys-fs/libeatmydata/Manifest @@ -1,4 +1,7 @@ AUX libeatmydata-130-implicit-function-decl-test.patch 611 BLAKE2B cd8fa997d0dd36d0414cd8b1bec9fc82616444a2db0e61ff5fd1e773c1800bb1294b0ae8134d67061b0baded60a1ec890f31ecc6791ea87c811a14338be9d64c SHA512 a4e5e13b8a66723ef813328ef67b62ee33bcb84173eed76ada886c2a5c1d316552ed089a404d19effa765f159bae03772738eeaa5a4bddbe000c740d83382ba2 +AUX libeatmydata-131-gnu_source.patch 1941 BLAKE2B abf46ff6eb4dc0547e1dc758384df86794564fd2fb337404374788690e850013be71d79c8054d320788fe98cb980986cb47998d20ad545506a8d630d1ac238de SHA512 c5ddcca4fd02c1245d494a5945df0e392b4f10f4320a3c625caf53281d89eeee225035ff502916124b25bbdc908fd7b48506da23e60f7179190e65036e359c20 DIST libeatmydata-130.tar.gz 375627 BLAKE2B a1f65050572e8a7fc8345082a12e2831a8fb1e68e1d198ae507752375b2081a79fa6e5e589028104cd9d767d86b4d453c0eac0ad7f366c90d6734f5868f8e0cd SHA512 80edeee1b39e14d10e7d04d7fff63a233119c6e13216e92ec786cc41ecd79eb58937da0e621aaef697490e9fb285f3e1109b786ee6967fa1736bb4879e100f18 +DIST libeatmydata-131.tar.gz 368469 BLAKE2B 1b59f80ba72caeafa40272c5996e0fb03774c69c35d7a2194d312e53c48212caca84abed56ec63a9fba2b4142efbee4aa371c3869a76f8c5674936ffe0daea5d SHA512 064417dc085cb82e4baf1d160fcde2c6e0d9fed60e5c595799630b030053c373d888853055894c127c5b384be9204e8bbb251877651811b5fc5cdca8ffd9cf42 EBUILD libeatmydata-130.ebuild 943 BLAKE2B ad8fe9386fe35838aba815f8b24d22e631612750d0f9b14ec0bfbabe9dce4a027b28ae38a817f33810687f731f4bb12e3128a85efbdeced97e2156e4e0634386 SHA512 46f166d40c734e48c09f87f2126ad9d9d4afa74b999785b4e3f6512f2bb494fbff6a8ecbea01db8d29067b88e1546e0505c359e90b9b08300281d2c7b96093a2 +EBUILD libeatmydata-131.ebuild 929 BLAKE2B 6f90fbd8bc8e702202b348bfe8bbd69c4036eafded49954a955cb3468ba2e1c83de0d62bd6807903e5743dee3cc736ddc73fe106d91c71ac8a360e78786ef574 SHA512 bb7b2cc163b5fbb301d1e1573558fbe0b3fba5f055164f6ece5ab597fd099707f14d85bd0f65d6ef05a8a14eff456c195beddce6434425c14d86583b690fe1ce MISC metadata.xml 511 BLAKE2B 34fcc6f9c449e64c078f8e77d41afed2d5acc2ef4f7eb298f1dd35241520c28452d610b216a5811de0dc6bdc79efef7d8ee31d680547674b5e8fd9f2eb47bb17 SHA512 c58ddfef161abdf2775d9e2f8f7eb4850088bd1a8ddbc2cc6a43c26154b48bb571695f6c439275e66b84af8bff7922aecfeabd8a55839260633de530c4a9205c diff --git a/sys-fs/libeatmydata/files/libeatmydata-131-gnu_source.patch b/sys-fs/libeatmydata/files/libeatmydata-131-gnu_source.patch new file mode 100644 index 000000000000..b60cdea868c4 --- /dev/null +++ b/sys-fs/libeatmydata/files/libeatmydata-131-gnu_source.patch @@ -0,0 +1,52 @@ +https://github.com/stewartsmith/libeatmydata/pull/30 + +From 9b37e3994f94687085e234d153c9ae3abdd038d3 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Mon, 9 Jan 2023 05:50:13 +0000 +Subject: [PATCH] Avoid redefining _GNU_SOURCE + +It's harmless, but with 3dea342f64a73a271d24779474d1b304b8f5618c, we get: +``` +x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-fs/libeatmydata-131/work/libeatmydata-131 -O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -Wreturn-type -ggdb3 -Werror=implicit-function-declaration -Werror=implicit-int -c -o libeatmydata/test/tst-cancel4.o /var/tmp/portage/sys-fs/libeatmydata-131/work/libeatmydata-131/libeatmydata/test/tst-cancel4.c +/var/tmp/portage/sys-fs/libeatmydata-131/work/libeatmydata-131/libeatmydata/test/tst-cancel4.c:28: warning: "_GNU_SOURCE" redefined + 28 | #define _GNU_SOURCE + | +In file included from /var/tmp/portage/sys-fs/libeatmydata-131/work/libeatmydata-131/libeatmydata/test/tst-cancel4.c:26: +./config.h:115: note: this is the location of the previous definition + 115 | # define _GNU_SOURCE 1 + | +``` + +This is because we already have `AC_USE_SYSTEM_EXTENSIONS` in configure.ac +which sets GNU_SOURCE in config.h for us. + +We also explicitly add a config.h include to tst-invalidvd.c instead +of relying on it via portability.h. +--- a/libeatmydata/test/tst-cancel4.c ++++ b/libeatmydata/test/tst-cancel4.c +@@ -25,7 +25,6 @@ + + #include "config.h" + +-#define _GNU_SOURCE + #include <errno.h> + #include <fcntl.h> + #include <limits.h> +--- a/libeatmydata/test/tst-invalidfd.c ++++ b/libeatmydata/test/tst-invalidfd.c +@@ -13,6 +13,7 @@ + * with this program. If not, see <http://www.gnu.org/licenses/>. + * END LICENSE */ + ++#include "config.h" + #include "libeatmydata/portability.h" + + #include <stdio.h> +@@ -21,7 +22,6 @@ + #include <assert.h> + + #ifdef HAVE_SYNC_FILE_RANGE +-#define _GNU_SOURCE + #include <fcntl.h> + #endif + diff --git a/sys-fs/libeatmydata/libeatmydata-131.ebuild b/sys-fs/libeatmydata/libeatmydata-131.ebuild new file mode 100644 index 000000000000..92d05a4733a5 --- /dev/null +++ b/sys-fs/libeatmydata/libeatmydata-131.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Multilib because "handy to inject into wine" +inherit multilib-minimal + +DESCRIPTION="LD_PRELOAD hack to convert sync()/msync() and the like to NO-OP" +HOMEPAGE="https://www.flamingspork.com/projects/libeatmydata/" +SRC_URI="https://github.com/stewartsmith/${PN}/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-util/strace )" + +PATCHES=( + "${FILESDIR}"/${PN}-131-gnu_source.patch +) + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf +} + +multilib_src_test() { + # Sandbox fools LD_PRELOAD and libeatmydata does not get control + # feature of sandbox + SANDBOX_ON=0 LD_PRELOAD= emake -k check +} + +multilib_src_install_all() { + find "${ED}" -name '*.la' -type f -delete || die + + dodoc AUTHORS README.md +} |