* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libptytty/, dev-libs/libptytty/files/
@ 2021-11-27 23:13 Marek Szuba
0 siblings, 0 replies; 2+ messages in thread
From: Marek Szuba @ 2021-11-27 23:13 UTC (permalink / raw
To: gentoo-commits
commit: 91a50cf39b59a5b35330e0897bbce079c7a52f8f
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 27 23:12:00 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sat Nov 27 23:13:36 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91a50cf3
dev-libs/libptytty: look for utmp in /run
No revbump because with the /var/run symlink not going anywhere any time
soon, this is a trivial change.
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
dev-libs/libptytty/files/libptytty-2.0-rundir.patch | 10 ++++++++++
dev-libs/libptytty/libptytty-2.0.ebuild | 4 ++++
2 files changed, 14 insertions(+)
diff --git a/dev-libs/libptytty/files/libptytty-2.0-rundir.patch b/dev-libs/libptytty/files/libptytty-2.0-rundir.patch
new file mode 100644
index 000000000000..d098811334c9
--- /dev/null
+++ b/dev-libs/libptytty/files/libptytty-2.0-rundir.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -151,6 +151,7 @@
+ PT_FIND_FILE(
+ utmp
+ PT_UTMP_FILE
++ "/run/utmp"
+ "/var/run/utmp"
+ "/var/adm/utmp"
+ "/etc/utmp"
diff --git a/dev-libs/libptytty/libptytty-2.0.ebuild b/dev-libs/libptytty/libptytty-2.0.ebuild
index 47385e16bc89..51fa6add9404 100644
--- a/dev-libs/libptytty/libptytty-2.0.ebuild
+++ b/dev-libs/libptytty/libptytty-2.0.ebuild
@@ -13,4 +13,8 @@ LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0-rundir.patch
+)
+
DOCS=( Changes README )
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libptytty/, dev-libs/libptytty/files/
@ 2023-04-22 17:02 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-04-22 17:02 UTC (permalink / raw
To: gentoo-commits
commit: ecba6d4dcd645e58a0a5861f484f452b65f21eac
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 22 17:01:06 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 22 17:01:06 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecba6d4d
dev-libs/libptytty: fix w/ clang 16
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../libptytty/files/libptytty-2.0-configure-clang16.patch | 15 +++++++++++++++
.../{libptytty-2.0.ebuild => libptytty-2.0-r1.ebuild} | 3 ++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/dev-libs/libptytty/files/libptytty-2.0-configure-clang16.patch b/dev-libs/libptytty/files/libptytty-2.0-configure-clang16.patch
new file mode 100644
index 000000000000..99b49e26e737
--- /dev/null
+++ b/dev-libs/libptytty/files/libptytty-2.0-configure-clang16.patch
@@ -0,0 +1,15 @@
+http://lists.schmorp.de/pipermail/rxvt-unicode/2023q2/002652.html
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -95,7 +95,8 @@ check_function_exists(setreuid HAVE_SETREUID)
+ check_function_exists(setresuid HAVE_SETRESUID)
+
+ check_c_source_compiles(
+- "#include <stdlib.h>
++ "#define _XOPEN_SOURCE 500
++ #include <stdlib.h>
+
+ int main ()
+ {
+
diff --git a/dev-libs/libptytty/libptytty-2.0.ebuild b/dev-libs/libptytty/libptytty-2.0-r1.ebuild
similarity index 88%
rename from dev-libs/libptytty/libptytty-2.0.ebuild
rename to dev-libs/libptytty/libptytty-2.0-r1.ebuild
index cfa4b8a6b1fc..6622e0666ff1 100644
--- a/dev-libs/libptytty/libptytty-2.0.ebuild
+++ b/dev-libs/libptytty/libptytty-2.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -15,6 +15,7 @@ KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
PATCHES=(
"${FILESDIR}"/${PN}-2.0-rundir.patch
+ "${FILESDIR}"/${PN}-2.0-configure-clang16.patch
)
DOCS=( Changes README )
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-22 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-27 23:13 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libptytty/, dev-libs/libptytty/files/ Marek Szuba
-- strict thread matches above, loose matches on Subject: below --
2023-04-22 17:02 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox