commit:     4aee8ac6f6e1a0810a4c11ef51ba5686d47211ad
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Wed Jan 29 19:45:40 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 09:28:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aee8ac6

sys-block/endpoint: update EAPI 7 -> 8, fix impl decl in configure

And also fix ar problem.
Autoreconf requires rewriting configure.ac and also clobbers over
handwritten library version check. Patching configure is better in
this case

Closes: https://bugs.gentoo.org/725772
Closes: https://bugs.gentoo.org/908584
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40371
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...nt-0.1.0-r1.ebuild => endpoint-0.1.0-r2.ebuild} |  6 ++--
 sys-block/endpoint/files/endpoint-0.1.0-ar.patch   | 32 ++++++++++++++++++++++
 .../endpoint/files/endpoint-0.1.0-impl-exit.patch  | 12 ++++++++
 3 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/sys-block/endpoint/endpoint-0.1.0-r1.ebuild 
b/sys-block/endpoint/endpoint-0.1.0-r2.ebuild
similarity index 85%
rename from sys-block/endpoint/endpoint-0.1.0-r1.ebuild
rename to sys-block/endpoint/endpoint-0.1.0-r2.ebuild
index d23f599eff85..2287991fb3a1 100644
--- a/sys-block/endpoint/endpoint-0.1.0-r1.ebuild
+++ b/sys-block/endpoint/endpoint-0.1.0-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 DESCRIPTION="Endpoint turns a Linux machine with a firewire card into an SBP-2 
device"
 HOMEPAGE="http://oss.oracle.com/projects/endpoint/";
@@ -21,6 +21,8 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${P}-errormessages.patch
+       "${FILESDIR}"/${P}-impl-exit.patch
+       "${FILESDIR}"/${P}-ar.patch
 )
 
 src_install() {

diff --git a/sys-block/endpoint/files/endpoint-0.1.0-ar.patch 
b/sys-block/endpoint/files/endpoint-0.1.0-ar.patch
new file mode 100644
index 000000000000..fb80b485195f
--- /dev/null
+++ b/sys-block/endpoint/files/endpoint-0.1.0-ar.patch
@@ -0,0 +1,32 @@
+Use toolchain ar instead of declaring it explicitly
+https://bugs.gentoo.org/725772
+--- a/libjconfig/Makefile.in
++++ b/libjconfig/Makefile.in
+@@ -163,7 +163,6 @@
+ Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  
$(top_builddir)/config.status
+       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 
$(am__depfiles_maybe)
+ 
+-AR = ar
+ 
+ clean-noinstLIBRARIES:
+       -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
+--- a/librbc/Makefile.in
++++ b/librbc/Makefile.in
+@@ -169,7 +169,6 @@
+ Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  
$(top_builddir)/config.status
+       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 
$(am__depfiles_maybe)
+ 
+-AR = ar
+ 
+ clean-noinstLIBRARIES:
+       -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
+--- a/libsbp2/Makefile.in
++++ b/libsbp2/Makefile.in
+@@ -185,7 +185,6 @@
+ Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  
$(top_builddir)/config.status
+       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ 
$(am__depfiles_maybe)
+ 
+-AR = ar
+ 
+ clean-noinstLIBRARIES:
+       -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)

diff --git a/sys-block/endpoint/files/endpoint-0.1.0-impl-exit.patch 
b/sys-block/endpoint/files/endpoint-0.1.0-impl-exit.patch
new file mode 100644
index 000000000000..f5f4d57535b0
--- /dev/null
+++ b/sys-block/endpoint/files/endpoint-0.1.0-impl-exit.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/908584
+Add include with exit so test doesn't fail
+--- a/configure
++++ b/configure
+@@ -3291,6 +3291,7 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <ctype.h>
++#include <stdlib.h>
+ #if ((' ' & 0x0FF) == 0x020)
+ # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))

Reply via email to