pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libepoll-shim libepoll-shim: take out CFLAGS fro...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b6daae8980c
branches:  trunk
changeset: 382891:5b6daae8980c
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Aug 07 23:29:49 2022 +0000

description:
libepoll-shim: take out CFLAGS from the pkg-config file

This is a patently Gross Hack<TM>.
But without it random package's configure scripts that use gtk3+ can pick
up broken epoll support via "pkg-config --cflags gtk+-x11-3.0", since that
will include -I/usr/pkg/include/libepoll-shim.

Direct consumers of libepoll-shim must add the CFLAGS explicitly.

diffstat:

 devel/libepoll-shim/Makefile                            |   4 +-
 devel/libepoll-shim/distinfo                            |   3 +-
 devel/libepoll-shim/patches/patch-epoll-shim.pc.cmakein |  18 +++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 54dde8fc9c6f -r 5b6daae8980c devel/libepoll-shim/Makefile
--- a/devel/libepoll-shim/Makefile      Sun Aug 07 23:17:02 2022 +0000
+++ b/devel/libepoll-shim/Makefile      Sun Aug 07 23:29:49 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2022/08/04 14:41:40 nia Exp $
+# $NetBSD: Makefile,v 1.9 2022/08/07 23:29:49 tnn Exp $
 
 DISTNAME=      ${GITHUB_PROJECT}-0.0.20210418
 PKGNAME=       lib${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=jiixyj/}
 GITHUB_PROJECT=        epoll-shim
diff -r 54dde8fc9c6f -r 5b6daae8980c devel/libepoll-shim/distinfo
--- a/devel/libepoll-shim/distinfo      Sun Aug 07 23:17:02 2022 +0000
+++ b/devel/libepoll-shim/distinfo      Sun Aug 07 23:29:49 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:15:18 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/08/07 23:29:49 tnn Exp $
 
 BLAKE2s (epoll-shim-0.0.20210418.tar.gz) = 991a4a90d3395dbe02430502802c57cfb7100b84a18b88d6b4148e0c2c485be2
 SHA512 (epoll-shim-0.0.20210418.tar.gz) = 34272a694165bfb47f8a103d18aec304f7a72b36491b83268ff63dd696f5103ab53dc9e32173ed20ddd7baa36b9d7ca2b3ec6236eef8dc2f02a101819b75eb7b
 Size (epoll-shim-0.0.20210418.tar.gz) = 91936 bytes
+SHA1 (patch-epoll-shim.pc.cmakein) = 6a31165678618c40104d9e592cb888e4a00a596c
 SHA1 (patch-src_CMakeLists.txt) = 47f32282b12c79a9b51d8ffc821cd4ffbf19b728
diff -r 54dde8fc9c6f -r 5b6daae8980c devel/libepoll-shim/patches/patch-epoll-shim.pc.cmakein
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libepoll-shim/patches/patch-epoll-shim.pc.cmakein   Sun Aug 07 23:29:49 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-epoll-shim.pc.cmakein,v 1.1 2022/08/07 23:29:49 tnn Exp $
+
+libepoll-shim: take out CFLAGS from the pkg-config file
+
+This is a patently Gross Hack<TM>.
+But without it random package's configure scripts that use gtk3+ can pick
+up broken epoll support via "pkg-config --cflags gtk+-x11-3.0", since that
+will include -I/usr/pkg/include/libepoll-shim.
+
+Direct consumers of libepoll-shim must add the CFLAGS explicitly.
+
+--- epoll-shim.pc.cmakein.orig 2021-04-18 19:28:52.000000000 +0000
++++ epoll-shim.pc.cmakein
+@@ -9,4 +9,3 @@ Description: Small epoll implementation 
+ Version: 
+ Libs: -L${libdir} -lepoll-shim
+ Libs.private: -pthread -lrt
+-Cflags: -I${includedir}/libepoll-shim



Home | Main Index | Thread Index | Old Index