sys-apps/attr: add attr/xattr.h include shim #648864
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Jun 2018 02:50:24 +0000 (22:50 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Jun 2018 02:50:24 +0000 (22:50 -0400)
This will let us upgrade attr while other packages get around to
fixing their source.

Bug: https://bugs.gentoo.org/648864

profiles/package.mask
sys-apps/attr/attr-2.4.48-r1.ebuild [moved from sys-apps/attr/attr-2.4.48.ebuild with 89% similarity]
sys-apps/attr/files/attr-2.4.48-perl-5.26.patch
sys-apps/attr/files/xattr-shim.h [new file with mode: 0644]

index 6bbaea0ad1c37be94cb8273ca1b3a58930c01dbf..4d9b131d27074ab3e6425d7dc237af6479a9805a 100644 (file)
@@ -531,12 +531,6 @@ sys-libs/uclibc
 # mpv >= 0.28.0 requires currently masked ffmpeg >= 4.0.
 >=media-video/mpv-0.28.0
 
-# Richard Freeman <rich0@gentoo.org> (09 Jan 2018)
-# Bug 644048 - temp QA mask until it can get sorted out
-# Lars Wendler <polynomial-c@gentoo.org> (26 Feb 2018)
-# See also tracker bug: https://bugs.gentoo.org/648864
-~sys-apps/attr-2.4.48
-
 # Lars Wendler <polynomial-c@gentoo.org> (10 Jan 2018)
 # Mask followup bugfixes for =sys-apps/attr-2.4.48 as well until proper
 # testing has been conducted.
similarity index 89%
rename from sys-apps/attr/attr-2.4.48.ebuild
rename to sys-apps/attr/attr-2.4.48-r1.ebuild
index 0de153129dfc27d4a99b1da1ecfd55d21d54bda9..96c88984f87ded0c495677903935af11767a7921 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI="6"
 
 inherit libtool ltprune toolchain-funcs multilib-minimal
 
@@ -39,7 +39,8 @@ multilib_src_configure() {
 
        local myeconfargs=(
                --bindir="${EPREFIX}"/bin
-               --enable-shared $(use_enable static-libs static)
+               --enable-shared
+               $(use_enable static-libs static)
                $(use_enable nls)
                --libexecdir="${EPREFIX}"/usr/$(get_libdir)
                $(use_enable debug)
@@ -53,6 +54,10 @@ multilib_src_install() {
        if multilib_is_native_abi; then
                # we install attr into /bin, so we need the shared lib with it
                gen_usr_ldscript -a attr
+
+               # Add a wrapper until people upgrade.
+               insinto /usr/include/attr
+               newins "${FILESDIR}"/xattr-shim.h xattr.h
        fi
 }
 
index 6f3d2a22c1405bc1d3608295b4f5c1b6a9c9178b..49b4c1a5766508721762a71b5888e7b2efb0acb1 100644 (file)
@@ -1,13 +1,17 @@
+From 406eab7aa09da9df787a964d3c152c0bda6e23c4 Mon Sep 17 00:00:00 2001
+From: Troy Dawson <tdawson@redhat.com>
+Date: Mon, 24 Jul 2017 14:42:06 +0200
+Subject: [PATCH attr] test: escape left brace in a regex in test/run
+
 ... to fix test-suite failure with perl-5.26.0
 
 Bug: https://bugzilla.redhat.com/1473853
-Upstream: http://lists.nongnu.org/archive/html/acl-devel/2017-07/msg00001.html
 ---
  test/run | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/test/run b/test/run
-index 4b1f8d0..07e916c 100755
+index 4b1f8d0d6134..07e916c41947 100755
 --- a/test/run
 +++ b/test/run
 @@ -106,7 +106,7 @@ for (;;) {
@@ -20,4 +24,4 @@ index 4b1f8d0..07e916c 100755
    if (defined $line) {
      if ($line =~ s/^\s*< ?//) {
 -- 
-2.13.0
\ No newline at end of file
+2.16.1
diff --git a/sys-apps/attr/files/xattr-shim.h b/sys-apps/attr/files/xattr-shim.h
new file mode 100644 (file)
index 0000000..818b4c1
--- /dev/null
@@ -0,0 +1,6 @@
+/* Small shim until we update all packages. */
+#ifndef __XATTR_H__
+#define __XATTR_H__
+#include <sys/xattr.h>
+#warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
+#endif