From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0125E15800A for ; Sat, 15 Jul 2023 06:27:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 353F1E08A5; Sat, 15 Jul 2023 06:27:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17631E08A5 for ; Sat, 15 Jul 2023 06:27:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1BEC334067D for ; Sat, 15 Jul 2023 06:27:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C8ACA6A for ; Sat, 15 Jul 2023 06:27:44 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1689402258.c2d834070ccb4ddc64f8e7af5e4bc092a384920c.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/procenv/files/, sys-process/procenv/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/procenv/files/procenv-0.51-musl-sysmacros.patch sys-process/procenv/procenv-0.51-r1.ebuild X-VCS-Directories: sys-process/procenv/ sys-process/procenv/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: c2d834070ccb4ddc64f8e7af5e4bc092a384920c X-VCS-Branch: master Date: Sat, 15 Jul 2023 06:27:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6f365042-dbf7-460d-bcbf-f08859da8a5a X-Archives-Hash: 5c2922a955df94ec579ce5f861df12da commit: c2d834070ccb4ddc64f8e7af5e4bc092a384920c Author: Brahmajit Das gmail com> AuthorDate: Tue Jun 6 17:01:43 2023 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sat Jul 15 06:24:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2d83407 sys-process/procenv: Fix call to undeclared function makedev Closes: https://bugs.gentoo.org/898856 Signed-off-by: Brahmajit Das gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31318 Signed-off-by: Joonas Niilola gentoo.org> .../files/procenv-0.51-musl-sysmacros.patch | 53 ++++++++++++++++++++++ sys-process/procenv/procenv-0.51-r1.ebuild | 29 ++++++++++++ 2 files changed, 82 insertions(+) diff --git a/sys-process/procenv/files/procenv-0.51-musl-sysmacros.patch b/sys-process/procenv/files/procenv-0.51-musl-sysmacros.patch new file mode 100644 index 000000000000..cd93a1d359ac --- /dev/null +++ b/sys-process/procenv/files/procenv-0.51-musl-sysmacros.patch @@ -0,0 +1,53 @@ +https://github.com/jamesodhunt/procenv/pull/27 +From: Brahmajit Das +Date: Mon, 5 Jun 2023 14:10:48 +0000 +Subject: [PATCH] Fix build on musl libc + +On util.c the guard around #include sys/sysmacros.h prevents musl libc +from including the file, even though musl provides the header file, thus +failing with errors such as "call to undeclared function makedev". + +In procenv.c although the function makedev is used but the file +sysmacros.h was never included, thus resulting in similar "call to +undeclared function makedev" error hence moving inclusion sysmacros.h to +source file from header file. + +Signed-off-by: Brahmajit Das +--- a/src/procenv.c ++++ b/src/procenv.c +@@ -27,6 +27,8 @@ + */ + + #include ++/* major(3) / minor(3) */ ++#include + + /** + * doc: +--- a/src/procenv.h ++++ b/src/procenv.h +@@ -103,9 +103,6 @@ + #define PACKAGE_STRING PACKAGE_NAME + #endif + +-/* major(3) / minor(3) */ +-#include +- + #endif /* PROCENV_PLATFORM_ANDROID */ + + /*********************************************************************/ +--- a/src/util.c ++++ b/src/util.c +@@ -17,9 +17,7 @@ + */ + + #include "util.h" +-#if __GLIBC__ + #include +-#endif + + // FIXME + extern struct procenv_user user; +-- +2.40.1 + diff --git a/sys-process/procenv/procenv-0.51-r1.ebuild b/sys-process/procenv/procenv-0.51-r1.ebuild new file mode 100644 index 000000000000..d59d5338b0af --- /dev/null +++ b/sys-process/procenv/procenv-0.51-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="command-line utility to show process environment" +HOMEPAGE="https://github.com/jamesodhunt/procenv" +SRC_URI="https://github.com/jamesodhunt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-libs/check )" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.45-flags.patch + "${FILESDIR}"/${PN}-0.51-musl-sysmacros.patch +) + +src_prepare() { + default + eautoreconf +}