Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2023 10:37:28 GMT
From:      =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 541c1ce13565 - main - devel/libbson: fix errors reported by pkg-fallout
Message-ID:  <202302101037.31AAbSpw088509@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=541c1ce135656f1026adc3f6b040089134a39471

commit 541c1ce135656f1026adc3f6b040089134a39471
Author:     Krzysztof <ports@bsdserwis.com>
AuthorDate: 2023-02-09 15:47:11 +0000
Commit:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
CommitDate: 2023-02-10 10:33:08 +0000

    devel/libbson: fix errors reported by pkg-fallout
    
    PR:             269420
    Reported by:    ports@bsdserwis.com (maintainer)
    Reviewed by:    Hiroo Ono
---
 devel/libbson/Makefile                   |  1 +
 devel/libbson/files/patch-CMakeLists.txt | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/devel/libbson/Makefile b/devel/libbson/Makefile
index 5677408f56ad..7f13900d789c 100644
--- a/devel/libbson/Makefile
+++ b/devel/libbson/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libbson
 PORTVERSION=	1.23.2
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	ports@bsdserwis.com
diff --git a/devel/libbson/files/patch-CMakeLists.txt b/devel/libbson/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..68a5ce58253b
--- /dev/null
+++ b/devel/libbson/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index caaf53499..2dd8cc398 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -249,7 +249,7 @@ cmake_policy (SET CMP0042 NEW)
+ # Both _BSD_SOURCE and _DEFAULT_SOURCE are defined for backwards-compatibility with glibc 2.19 and earlier.
+ # _BSD_SOURCE and _DEFAULT_SOURCE are required by `getpagesize`, `h_errno`, etc.
+ # _XOPEN_SOURCE=700 is required by `strnlen`, etc.
+-add_definitions (-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
++# add_definitions (-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
+ list (APPEND CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
+ 
+ # https://opensource.apple.com/source/Libc/Libc-1439.40.11/gen/compat.5.auto.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302101037.31AAbSpw088509>