commit:     0ba2d5062ee58521f356d91c2cd33259705d53af
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  4 07:12:23 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Jun  4 07:13:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ba2d506

dev-lang/smlnj: fix makefile

Closes: https://bugs.gentoo.org/928112
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-lang/smlnj/files/smlnj-110.99.4-shuffle.patch | 13 +++++++++++++
 dev-lang/smlnj/smlnj-110.99.4.ebuild              |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dev-lang/smlnj/files/smlnj-110.99.4-shuffle.patch 
b/dev-lang/smlnj/files/smlnj-110.99.4-shuffle.patch
new file mode 100644
index 000000000000..603eeed0f562
--- /dev/null
+++ b/dev-lang/smlnj/files/smlnj-110.99.4-shuffle.patch
@@ -0,0 +1,13 @@
+--- a/base/runtime/c-libs/posix-io/makefile    2024-06-04 08:38:20.192453601 
+0200
++++ b/base/runtime/c-libs/posix-io/makefile    2024-06-04 08:39:09.504903619 
+0200
+@@ -37,7 +37,9 @@
+         lseek.o \
+         fsync.o
+ 
+-$(LIBRARY)    : $(VERSION) $(OBJS)
++$(LIBRARY)    :
++      $(MAKE) $(VERSION)
++      $(MAKE) $(OBJS)
+       rm -rf $(LIBRARY)
+       $(AR) $(ARFLAGS) $(LIBRARY) $(OBJS)
+       $(RANLIB) $(LIBRARY)

diff --git a/dev-lang/smlnj/smlnj-110.99.4.ebuild 
b/dev-lang/smlnj/smlnj-110.99.4.ebuild
index 8b5e2ab139ba..fd72dd7ca0a9 100644
--- a/dev-lang/smlnj/smlnj-110.99.4.ebuild
+++ b/dev-lang/smlnj/smlnj-110.99.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -81,6 +81,8 @@ src_unpack() {
 
        # Unpack asdl to fix autoconf linker check
        unpack "${S}"/asdl.tgz
+
+       eapply "${FILESDIR}"/${P}-shuffle.patch
 }
 
 src_prepare() {

Reply via email to