public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-apps/acl/, sys-apps/acl/files/
@ 2016-03-30 23:48 Mike Frysinger
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2016-03-30 23:48 UTC (permalink / raw
  To: gentoo-commits

commit:     9c6b4434d44aa7df5ca6e71ae6cbcbf972a29ced
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 30 22:49:28 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Mar 30 23:47:43 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c6b4434

sys-apps/acl: drop old <2.2.52-r1 versions

 sys-apps/acl/Manifest                            |  3 --
 sys-apps/acl/acl-2.2.49-r1.ebuild                | 62 -----------------------
 sys-apps/acl/acl-2.2.49.ebuild                   | 64 ------------------------
 sys-apps/acl/acl-2.2.51.ebuild                   | 63 -----------------------
 sys-apps/acl/acl-2.2.52.ebuild                   | 49 ------------------
 sys-apps/acl/files/acl-2.2.49-quote-strchr.patch | 25 ---------
 sys-apps/acl/files/acl-2.2.51-config-shell.patch | 53 --------------------
 sys-apps/acl/metadata.xml                        |  4 --
 8 files changed, 323 deletions(-)

diff --git a/sys-apps/acl/Manifest b/sys-apps/acl/Manifest
index ef88026..fc5af6a 100644
--- a/sys-apps/acl/Manifest
+++ b/sys-apps/acl/Manifest
@@ -1,4 +1 @@
-DIST acl-2.2.42-CITI_NFS4_ALL-2.dif 97276 SHA256 10c930e4c6d147d03ad6dc67e38663522fd277525c149d932a8279e2cbe1b95e SHA512 4998e1402eeeef4159c2482a5df9a61235dadb38a0747416d2701545c5a58614a57c94907c28dbe5c390bd216fc44e2f1edf007bc55ce65ce7bd0e8786c2756d WHIRLPOOL bbee022fb8a36ceb4d49256f3fc7ab7452fe719ba13e7f2a1b436908788ff1373567a628849a0a880062221d82336023e09384de27a5339a30faa84e65b6e2dc
-DIST acl-2.2.49.src.tar.gz 362743 SHA256 b9c7f4752e4ef4930a62fa5aa0d7efe1cba2b5a3a2d6ee2b45c0a70c72b7e5d5 SHA512 c65b1ca18c16e434f1ff5b196908d1c39d62399740826a4a9b3ef0e6ba5cc4fced838b4a844ccffc5cb26554c4755b2f4e0fd69c9045d692f9019972ce3f7f0b WHIRLPOOL 028f373f334700896b8c455f41a9f83dc6da82a6454da9da81a98e05f5f058ee88d0b1487f97e9d5b7c204a97ed125fc331bdcce6cb454ddbfbe9eeb6de0a55c
-DIST acl-2.2.51.src.tar.gz 385378 SHA256 06854521cf5d396801af7e54b9636680edf8064355e51c07657ec7442a185225 SHA512 32b0c7f5aff27b1a0278dea2cc7aacf03f791c5bd7e9ae520bf29516bf3e52969c0a7ce9af3c2fa95b222cc70d4e19da167d008dcdf0fb46bda86cd584c96d98 WHIRLPOOL 0c41e39008c0bbb254d3ca29dc597e888d0a76820d8f78246ae06448ea5fdf9d25b54c112d86137420007641d23e172c67402d05acdc34af5b6b387b32c290a2
 DIST acl-2.2.52.src.tar.gz 386604 SHA256 179074bb0580c06c4b4137be4c5a92a701583277967acdb5546043c7874e0d23 SHA512 59973199d371cd0b2368e95bc829a1b47f04e808a174fefba4c6854e766158bd19a71d9dbcc8d6fdc1573a1f971cdda39c453f7fa243bce02c1ab97c6e7c72e7 WHIRLPOOL 19bcc46e56ce0226e084bb6f86e411b09418d53f094f478afd60c3c568cf2066d9f0352a4da20f6f41d6e08c13412a182a7306aa3fbe2a248d1f6388856f63a2

diff --git a/sys-apps/acl/acl-2.2.49-r1.ebuild b/sys-apps/acl/acl-2.2.49-r1.ebuild
deleted file mode 100644
index cb39907..0000000
--- a/sys-apps/acl/acl-2.2.49-r1.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="access control list utilities, libraries and headers"
-HOMEPAGE="http://savannah.nongnu.org/projects/acl"
-SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz
-	nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
-IUSE="nfs nls static-libs"
-
-RDEPEND=">=sys-apps/attr-2.4
-	nfs? ( net-libs/libnfsidmap )"
-DEPEND="${RDEPEND}
-	nls? ( sys-devel/gettext )"
-
-src_prepare() {
-	if use nfs ; then
-		cp "${DISTDIR}"/acl-2.2.42-CITI_NFS4_ALL-2.dif . || die
-		sed -i \
-			-e '/^diff --git a.debian.changelog b.debian.changelog/,/^diff --git/d' \
-			acl-2.2.42-CITI_NFS4_ALL-2.dif || die
-		epatch acl-2.2.42-CITI_NFS4_ALL-2.dif
-	fi
-	epatch "${FILESDIR}"/${P}-quote-strchr.patch
-	sed -i \
-		-e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
-		configure # hack PATH with AC_PATH_PROG
-	sed -i \
-		-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-		-e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
-		include/builddefs.in \
-		|| die "failed to update builddefs"
-	strip-linguas po
-}
-
-src_configure() {
-	unset PLATFORM #184564
-	export OPTIMIZER=${CFLAGS}
-	export DEBUG=-DNDEBUG
-
-	econf \
-		$(use_enable nls gettext) \
-		--enable-shared $(use_enable static-libs static) \
-		--libexecdir="${EPREFIX}"/usr/$(get_libdir) \
-		--bindir="${EPREFIX}"/bin
-}
-
-src_install() {
-	emake DIST_ROOT="${D}" install install-dev install-lib || die
-	use static-libs || find "${D}" -name '*.la' -delete
-
-	# move shared libs to /
-	gen_usr_ldscript -a acl
-}

diff --git a/sys-apps/acl/acl-2.2.49.ebuild b/sys-apps/acl/acl-2.2.49.ebuild
deleted file mode 100644
index 243dd1c..0000000
--- a/sys-apps/acl/acl-2.2.49.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="access control list utilities, libraries and headers"
-HOMEPAGE="http://savannah.nongnu.org/projects/acl"
-SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz
-	nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
-IUSE="nfs nls"
-
-RDEPEND=">=sys-apps/attr-2.4
-	nfs? ( net-libs/libnfsidmap )"
-DEPEND="${RDEPEND}
-	nls? ( sys-devel/gettext )"
-
-src_unpack() {
-	unpack ${P}.src.tar.gz
-	cd "${S}"
-	if use nfs ; then
-		cp "${DISTDIR}"/acl-2.2.42-CITI_NFS4_ALL-2.dif . || die
-		sed -i \
-			-e '/^diff --git a.debian.changelog b.debian.changelog/,/^diff --git/d' \
-			acl-2.2.42-CITI_NFS4_ALL-2.dif || die
-		epatch acl-2.2.42-CITI_NFS4_ALL-2.dif
-	fi
-	epatch "${FILESDIR}"/${P}-quote-strchr.patch
-	sed -i \
-		-e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
-		configure # hack PATH with AC_PATH_PROG
-	sed -i \
-		-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-		-e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
-		include/builddefs.in \
-		|| die "failed to update builddefs"
-	strip-linguas po
-}
-
-src_compile() {
-	use prefix || EPREFIX=
-	unset PLATFORM #184564
-	export OPTIMIZER=${CFLAGS}
-	export DEBUG=-DNDEBUG
-
-	econf \
-		$(use_enable nls gettext) \
-		--libexecdir="${EPREFIX}"/usr/$(get_libdir) \
-		--bindir="${EPREFIX}"/bin
-
-	emake || die
-}
-
-src_install() {
-	emake DIST_ROOT="${D}" install install-dev install-lib || die
-	prepalldocs
-
-	# move shared libs to /
-	gen_usr_ldscript -a acl
-}

diff --git a/sys-apps/acl/acl-2.2.51.ebuild b/sys-apps/acl/acl-2.2.51.ebuild
deleted file mode 100644
index 81e6130..0000000
--- a/sys-apps/acl/acl-2.2.51.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="access control list utilities, libraries and headers"
-HOMEPAGE="http://savannah.nongnu.org/projects/acl"
-SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz
-	nfs? ( http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/2.2.42-2/acl-2.2.42-CITI_NFS4_ALL-2.dif )"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
-IUSE="nfs nls static-libs"
-
-RDEPEND=">=sys-apps/attr-2.4
-	nfs? ( net-libs/libnfsidmap )"
-DEPEND="${RDEPEND}
-	nls? ( sys-devel/gettext )"
-
-src_prepare() {
-	if use nfs ; then
-		cp "${DISTDIR}"/acl-2.2.42-CITI_NFS4_ALL-2.dif . || die
-		sed -i \
-			-e '/^diff --git a.debian.changelog b.debian.changelog/,/^diff --git/d' \
-			acl-2.2.42-CITI_NFS4_ALL-2.dif || die
-		epatch acl-2.2.42-CITI_NFS4_ALL-2.dif
-	fi
-	epatch "${FILESDIR}"/${PN}-2.2.49-quote-strchr.patch
-	epatch "${FILESDIR}"/${PN}-2.2.51-config-shell.patch #365397
-	sed -i \
-		-e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
-		configure # hack PATH with AC_PATH_PROG
-	sed -i \
-		-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-		-e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
-		include/builddefs.in \
-		|| die "failed to update builddefs"
-	strip-linguas po
-}
-
-src_configure() {
-	unset PLATFORM #184564
-	export OPTIMIZER=${CFLAGS}
-	export DEBUG=-DNDEBUG
-
-	econf \
-		$(use_enable nls gettext) \
-		--enable-shared $(use_enable static-libs static) \
-		--libexecdir="${EPREFIX}"/usr/$(get_libdir) \
-		--bindir="${EPREFIX}"/bin
-}
-
-src_install() {
-	emake DIST_ROOT="${D}" install install-dev install-lib || die
-	use static-libs || find "${D}" -name '*.la' -delete
-
-	# move shared libs to /
-	gen_usr_ldscript -a acl
-}

diff --git a/sys-apps/acl/acl-2.2.52.ebuild b/sys-apps/acl/acl-2.2.52.ebuild
deleted file mode 100644
index ccb800c..0000000
--- a/sys-apps/acl/acl-2.2.52.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="access control list utilities, libraries and headers"
-HOMEPAGE="http://savannah.nongnu.org/projects/acl"
-SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.src.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
-IUSE="nls static-libs"
-
-RDEPEND=">=sys-apps/attr-2.4"
-DEPEND="${RDEPEND}
-	nls? ( sys-devel/gettext )"
-
-src_prepare() {
-	sed -i \
-		-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
-		-e '/HAVE_ZIPPED_MANPAGES/s:=.*:=false:' \
-		include/builddefs.in \
-		|| die
-	strip-linguas po
-}
-
-src_configure() {
-	unset PLATFORM #184564
-	export OPTIMIZER=${CFLAGS}
-	export DEBUG=-DNDEBUG
-
-	econf \
-		$(use_enable nls gettext) \
-		--enable-shared $(use_enable static-libs static) \
-		--libexecdir="${EPREFIX}"/usr/$(get_libdir) \
-		--bindir="${EPREFIX}"/bin
-}
-
-src_install() {
-	emake DIST_ROOT="${D}" install install-dev install-lib || die
-	use static-libs || find "${ED}" -name '*.la' -delete
-
-	# move shared libs to /
-	gen_usr_ldscript -a acl
-}

diff --git a/sys-apps/acl/files/acl-2.2.49-quote-strchr.patch b/sys-apps/acl/files/acl-2.2.49-quote-strchr.patch
deleted file mode 100644
index d2510da..0000000
--- a/sys-apps/acl/files/acl-2.2.49-quote-strchr.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 7565e4fcb9209782ed02f3caff246cf5ea816674 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Fri, 8 Jan 2010 21:28:31 -0500
-Subject: [PATCH] quote: pull in string.h for strchr prototype
-
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- libmisc/quote.c |    1 +
- 1 files changed, 1 insertions(+), 0 deletions(-)
-
-diff --git a/libmisc/quote.c b/libmisc/quote.c
-index f98c887..bf8f9eb 100644
---- a/libmisc/quote.c
-+++ b/libmisc/quote.c
-@@ -20,6 +20,7 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
-+#include <string.h>
- #include "misc.h"
- 
- const char *quote(const char *str, const char *quote_chars)
--- 
-1.6.6
-

diff --git a/sys-apps/acl/files/acl-2.2.51-config-shell.patch b/sys-apps/acl/files/acl-2.2.51-config-shell.patch
deleted file mode 100644
index 78b3f0f..0000000
--- a/sys-apps/acl/files/acl-2.2.51-config-shell.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-https://bugs.gentoo.org/365397
-
-From 10bfb16245ec4b55c1f5b6dc5554913bc9b13c9c Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Mon, 16 May 2011 01:59:52 -0400
-Subject: [PATCH] use SHELL from configure
-
-If /bin/sh is not a functional enough shell, configure will select a
-SHELL of /bin/bash or better.  But the current build helpers always
-hardcode /bin/sh, so if libtool itself configures itself for /bin/bash,
-things will fail when it attempts to do:
-	SHELL = /bin/sh
-	LIBTOOL = $(SHELL) .../libtool
-	...
-	eval: 1: base_compile+= -pipe: not found
-	...
-
-So rather than hardcoding SHELL to /bin/sh, set it to @SHELL@ and let
-configure find a good value for us.
-
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- include/builddefs.in |    1 +
- include/buildmacros  |    1 -
- 2 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/include/builddefs.in b/include/builddefs.in
-index d054a56..434ce95 100644
---- a/include/builddefs.in
-+++ b/include/builddefs.in
-@@ -46,6 +46,7 @@ MAKE		= @make@
- ECHO		= @echo@
- SORT		= @sort@
- LN_S		= @LN_S@
-+SHELL		= @SHELL@
- LIBTOOL		= @LIBTOOL@
- MAKEDEPEND	= @makedepend@
- 
-diff --git a/include/buildmacros b/include/buildmacros
-index ab89182..8efb32e 100644
---- a/include/buildmacros
-+++ b/include/buildmacros
-@@ -42,7 +42,6 @@ OBJECTS = $(ASFILES:.s=.o) \
- 
- INSTALL	= $(TOPDIR)/include/install-sh -o $(PKG_USER) -g $(PKG_GROUP)
- 
--SHELL = /bin/sh
- IMAGES_DIR = $(TOPDIR)/all-images
- DIST_DIR = $(TOPDIR)/dist
- 
--- 
-1.7.5.rc3
-

diff --git a/sys-apps/acl/metadata.xml b/sys-apps/acl/metadata.xml
index 63978cc..ede75b3 100644
--- a/sys-apps/acl/metadata.xml
+++ b/sys-apps/acl/metadata.xml
@@ -3,11 +3,7 @@
 <pkgmetadata>
 <maintainer type="project">
 	<email>base-system@gentoo.org</email>
-	<name>Gentoo Base System</name>
 </maintainer>
-<use>
-	<flag name="nfs">add support for NFS acls</flag>
-</use>
 <upstream>
 	<remote-id type="cpe">cpe:/a:xfs:acl</remote-id>
 </upstream>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-apps/acl/, sys-apps/acl/files/
@ 2023-05-08 13:38 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-05-08 13:38 UTC (permalink / raw
  To: gentoo-commits

commit:     6273f7c0c37bc0fae7071ec6237654796bdcca55
Author:     Violet Purcell <vimproved <AT> inventati <DOT> org>
AuthorDate: Mon May  8 04:34:02 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon May  8 13:38:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6273f7c0

sys-apps/acl: Fix build with musl 1.2.4

Closes: https://bugs.gentoo.org/905910
Signed-off-by: Violet Purcell <vimproved <AT> inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/30925
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../acl/{acl-2.3.1.ebuild => acl-2.3.1-r2.ebuild}  | 25 +++++++++++++--
 sys-apps/acl/acl-2.3.1.ebuild                      |  6 +++-
 .../acl/files/acl-2.3.1-musl-1.2.4-lfs64-fix.patch | 37 ++++++++++++++++++++++
 3 files changed, 65 insertions(+), 3 deletions(-)

diff --git a/sys-apps/acl/acl-2.3.1.ebuild b/sys-apps/acl/acl-2.3.1-r2.ebuild
similarity index 58%
copy from sys-apps/acl/acl-2.3.1.ebuild
copy to sys-apps/acl/acl-2.3.1-r2.ebuild
index 521af3d45354..887d476d910d 100644
--- a/sys-apps/acl/acl-2.3.1.ebuild
+++ b/sys-apps/acl/acl-2.3.1-r2.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=7
@@ -11,7 +11,7 @@ SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz"
 
 LICENSE="LGPL-2.1"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
 IUSE="nls static-libs"
 
 RDEPEND="
@@ -20,6 +20,10 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="nls? ( sys-devel/gettext )"
 
+PATCHES=(
+	"${FILESDIR}/${PN}-2.3.1-musl-1.2.4-lfs64-fix.patch"
+)
+
 src_prepare() {
 	default
 
@@ -32,6 +36,23 @@ multilib_src_configure() {
 	# bug #667372
 	filter-flags -flto*
 
+	# Broken with FORTIFY_SOURCE=3
+	# Our toolchain sets F_S=2 by default w/ >= -O2, so we need
+	# to unset F_S first, then explicitly set 2, to negate any default
+	# and anything set by the user if they're choosing 3 (or if they've
+	# modified GCC to set 3).
+	#
+	# Refs:
+	# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104964
+	# https://savannah.nongnu.org/bugs/index.php?62519
+	# bug #847280
+	if is-flagq '-O[23]' || is-flagq '-Ofast' ; then
+		# We can't unconditionally do this b/c we fortify needs
+		# some level of optimisation.
+		filter-flags -D_FORTIFY_SOURCE=3
+		append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
+	fi
+
 	local myeconfargs=(
 		--bindir="${EPREFIX}"/bin
 		$(use_enable static-libs static)

diff --git a/sys-apps/acl/acl-2.3.1.ebuild b/sys-apps/acl/acl-2.3.1.ebuild
index 521af3d45354..517cb13a2f4b 100644
--- a/sys-apps/acl/acl-2.3.1.ebuild
+++ b/sys-apps/acl/acl-2.3.1.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=7
@@ -20,6 +20,10 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="nls? ( sys-devel/gettext )"
 
+PATCHES=(
+	"${FILESDIR}/${PN}-2.3.1-musl-1.2.4-lfs64-fix.patch"
+)
+
 src_prepare() {
 	default
 

diff --git a/sys-apps/acl/files/acl-2.3.1-musl-1.2.4-lfs64-fix.patch b/sys-apps/acl/files/acl-2.3.1-musl-1.2.4-lfs64-fix.patch
new file mode 100644
index 000000000000..3b5d2c6babdc
--- /dev/null
+++ b/sys-apps/acl/files/acl-2.3.1-musl-1.2.4-lfs64-fix.patch
@@ -0,0 +1,37 @@
+Bug: https://bugs.gentoo.org/905910
+Upstream Bug: https://savannah.nongnu.org/bugs/index.php?64162
+
+From a9100afd77fea00b311f114a5a04108283aa681a Mon Sep 17 00:00:00 2001
+From: Violet Purcell <vimproved@inventati.org>
+Date: Mon, 8 May 2023 04:17:07 +0000
+Subject: [PATCH] musl 1.2.4 LFS64 removal fixes
+
+---
+ tools/chacl.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tools/chacl.c b/tools/chacl.c
+index 525a7ff..8fff875 100644
+--- a/tools/chacl.c
++++ b/tools/chacl.c
+@@ -320,7 +320,7 @@ walk_dir(acl_t acl, acl_t dacl, const char *fname)
+ {
+ 	int failed = 0;
+ 	DIR *dir;
+-	struct dirent64 *d;
++	struct dirent *d;
+ 	char *name;
+ 
+ 	if ((dir = opendir(fname)) == NULL) {
+@@ -332,7 +332,7 @@ walk_dir(acl_t acl, acl_t dacl, const char *fname)
+ 		return(0);	/* got a file, not an error */
+ 	}
+ 
+-	while ((d = readdir64(dir)) != NULL) {
++	while ((d = readdir(dir)) != NULL) {
+ 		/* skip "." and ".." entries */
+ 		if (strcmp(d->d_name, ".") == 0 || strcmp(d->d_name, "..") == 0)
+ 			continue;
+-- 
+2.40.1
+


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-08 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 23:48 [gentoo-commits] repo/gentoo:master commit in: sys-apps/acl/, sys-apps/acl/files/ Mike Frysinger
  -- strict thread matches above, loose matches on Subject: below --
2023-05-08 13:38 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox