summaryrefslogtreecommitdiff
path: root/sys-apps/dnotify
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/dnotify')
-rw-r--r--sys-apps/dnotify/Manifest3
-rw-r--r--sys-apps/dnotify/dnotify-0.18.0-r1.ebuild12
-rw-r--r--sys-apps/dnotify/files/dnotify-0.18.0-fix-implicit-declarations.patch38
3 files changed, 50 insertions, 3 deletions
diff --git a/sys-apps/dnotify/Manifest b/sys-apps/dnotify/Manifest
index 211fa78ad15e..fd108628cb40 100644
--- a/sys-apps/dnotify/Manifest
+++ b/sys-apps/dnotify/Manifest
@@ -1,5 +1,6 @@
+AUX dnotify-0.18.0-fix-implicit-declarations.patch 1472 BLAKE2B f58abe4c9b87a55ec041eae2a786db85c8f344171075d437c3fb207e8b659bc832d51cdb36cb1ef0bee68df534a8de493a56a3515481e3635d6ff4925f2d91c2 SHA512 71120b9a82170d3aa3f90255175e659eb787876c7faba78a68cd33fd307b9bca2b2337e85950fada0ee958f4dbb46bf06cce112e2ee1e8f080845d08b8d209d0
AUX dnotify-0.18.0-glibc-212.patch 217 BLAKE2B 79ba1f388c427af04cca8481d1fcf685e9a8d1b4124e2e1e61b051b568f39bbb230b1951d4d25e47925cdc2e0ffcc665aadf5c6a00e5b67f23bf11f48ba040b4 SHA512 bf32edfc97aabf5eaae1289105f0c65bd25adf60fe44ec139666265f01ed9fa7b664d12e26bcbbcd95069797b40f386276b6b730739c9900c039b432f6494db1
AUX dnotify-0.18.0-nls.patch 175 BLAKE2B e16d86e6448b784509004912931fb5cf381274aa1c4a3b5c0d3238b497732f8b03fb72edbe24dea378bb4f505e097db9f6552460387dbe8ce3a678399cbd0bad SHA512 f1abed01b278c1a198edc5fd52eb69b9479a1879805fac58bdc079e0cac6a1507c7974b87579fe9b426d920d8f82f41cb47eb3cedfcd56531c11745ce8abe52b
DIST dnotify-0.18.0.tar.gz 187909 BLAKE2B 35131f6a04b1bf7cb9b6461fe99e28205ed6ba39b6e660cbf9ac9c059e6339d83485848dcbb858f2a1ff0a021181f897da7322a3a0f02283f83b1649e2d6753a SHA512 5b41fcf131b3ed5e16f7003e0b9b11952b03b7e2ef27554dd40b0b3de3f9c6d2f7911a76e5c4abe079edd5596f416226a28ebd6b4a8f05c589216c2a6e16446e
-EBUILD dnotify-0.18.0-r1.ebuild 514 BLAKE2B f1861c9eca6aac93de01caa15056424a27f94e2bd7314fcde4f3608a3b2db7090ce717aa80ef9173383e2bcccdee41b85e5092f86e7f491ef60009f2c4cdf229 SHA512 5778a655d5ef9394a8a69a8e7ab112776b4bc4554ba87ade73b22e228cf35e8600e6b469b03b5671da958a1b684b98b683953dfa0c67454fcedd13b3153ea72f
+EBUILD dnotify-0.18.0-r1.ebuild 627 BLAKE2B 7b7da683e99dabc9accc61a9574926b66b70b65203be71e4b31429a37d048a8e27a2163046d45ddfe2158a280211c47b176a7614ac9828d1fb76bac1dfe8897f SHA512 d1107b312409ed78051bb53b1de23b4ec3e140789ae0f66bb18d1d8159f3b11ee269bf8091c780877f6bdb35b2efe1285a65ae5fca95fe7a89eca3f03f5c44d6
MISC metadata.xml 254 BLAKE2B f3a9f843cf94243d1129711770df727fcdc8808bca829ef784819cab6f5410dfa463cfed85182f8228c7de796a674dd602653ad3ef817a62c0c3e7198b23befe SHA512 b9fcd3084a7e197f6138e1ce8b0eff99c4c203c37a7d5c40de207040ba1501ef0e5b2f4e00216a567037bcd6d3394fdec6ff587484c9ba2fca9d04f431733b7c
diff --git a/sys-apps/dnotify/dnotify-0.18.0-r1.ebuild b/sys-apps/dnotify/dnotify-0.18.0-r1.ebuild
index b92ef1d92179..c267d8c59219 100644
--- a/sys-apps/dnotify/dnotify-0.18.0-r1.ebuild
+++ b/sys-apps/dnotify/dnotify-0.18.0-r1.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+inherit autotools
+
DESCRIPTION="Execute a command when the contents of a directory change"
HOMEPAGE="https://directory.fsf.org/project/dnotify/"
SRC_URI="mirror://gentoo/${P}.tar.gz"
@@ -12,13 +14,19 @@ SLOT="0"
KEYWORDS="amd64 ~mips ppc -sparc x86"
IUSE="nls"
-DEPEND="nls? ( sys-devel/gettext )"
+BDEPEND="nls? ( sys-devel/gettext )"
PATCHES=(
"${FILESDIR}/${P}-nls.patch"
"${FILESDIR}/${P}-glibc-212.patch"
+ "${FILESDIR}/${P}-fix-implicit-declarations.patch"
)
+src_prepare() {
+ default
+ eautoreconf
+}
+
src_configure() {
econf $(use_enable nls)
}
diff --git a/sys-apps/dnotify/files/dnotify-0.18.0-fix-implicit-declarations.patch b/sys-apps/dnotify/files/dnotify-0.18.0-fix-implicit-declarations.patch
new file mode 100644
index 000000000000..f2b503c72bb3
--- /dev/null
+++ b/sys-apps/dnotify/files/dnotify-0.18.0-fix-implicit-declarations.patch
@@ -0,0 +1,38 @@
+fix error on -Wimplicit-function-declaration in configure & compile
+
+> conftest.c:50:14: error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
+> conftest.c:102:2: error: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
+> string.c:45:9: error: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
+
+diff '--color=auto' -urN a/configure.ac b/configure.ac
+--- a/configure.ac 2004-10-18 16:09:36.000000000 -0000
++++ b/configure.ac 2025-02-26 18:23:10.470314477 -0000
+@@ -63,6 +63,7 @@
+ AC_TRY_RUN([
+ #include <stdio.h>
+ #include <signal.h>
++#include <stdlib.h>
+ int main() { exit(SIGRTMIN >= 0 ? 0 : 1); }
+ ], [
+ AC_MSG_RESULT([yes])
+@@ -94,6 +95,8 @@
+ #include <fcntl.h>
+ #include <signal.h>
+ #include <unistd.h>
++#include <stdlib.h>
++#include <sys/wait.h>
+
+ volatile int count = 0;
+
+diff '--color=auto' -urN a/src/string.c b/src/string.c
+--- a/src/string.c 2004-10-06 05:13:30.000000000 -0000
++++ b/src/string.c 2025-02-26 18:23:35.692315718 -0000
+@@ -22,6 +22,7 @@
+ #include <stdint.h>
+ #include <limits.h>
+ #include <errno.h>
++#include <stdlib.h>
+ #include "dnotify.h"
+ #include "gettext.h"
+ #define _(s) gettext(s)
+