commit: 37170167b11728c7d128a3434409f579285c3442 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Feb 22 14:45:39 2026 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Feb 22 16:34:23 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37170167
dev-libs/libf2c: drop 20130927-r1 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> dev-libs/libf2c/Manifest | 1 - .../20090407-link-shared-libf2c-correctly.patch | 11 ---- .../files/libf2c-20110801-format-security.patch | 11 ---- .../files/libf2c-20130927-fix-buildsystem.patch | 65 ---------------------- dev-libs/libf2c/libf2c-20130927-r1.ebuild | 55 ------------------ 5 files changed, 143 deletions(-) diff --git a/dev-libs/libf2c/Manifest b/dev-libs/libf2c/Manifest index 982d923a5c3d..7c337e0bb166 100644 --- a/dev-libs/libf2c/Manifest +++ b/dev-libs/libf2c/Manifest @@ -1,2 +1 @@ -DIST libf2c-20130927.zip 129082 BLAKE2B 09f818bde8888b569858784c39e93a6a11b3103039f44c3f6a1246b29efb5f8ae6e45f787ed0c2216bea383a79b9554aff30e1fbb00668bbc872b4bc30d87ba8 SHA512 1a12093dec3c250f4775eebd06f1a9144fdb956ea3162202fb67569fdd956ac5591bc563a0726ca65ea10d465efaac1c1d8024d63bc4a4b5c88bf46242607c8a DIST libf2c-20240130.zip 130671 BLAKE2B 3e8b989064e677d9725a703870b14531ea045b8ef167b11218687def75068c2b59997726acf4c3e5c0b20e024754f9207ffc9354b6feeb46414b59d99e7ec896 SHA512 596bd0017e0c4b61191200a0bc788777585049eb939c528625349404cc8d9bbd0957efecd79077c487fdff5fc7e435189574b2c495cafaa6006dd2585b13960a diff --git a/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch b/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch deleted file mode 100644 index e22f0cf0bfb0..000000000000 --- a/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/makefile.u -+++ b/makefile.u -@@ -82,7 +82,7 @@ - ## of "cc -shared". - - libf2c.so: $(OFILES) -- $(CC) -shared -o libf2c.so $(OFILES) -+ $(CC) -shared $(LDFLAGS) -Wl,-soname,libf2c.so.2 $(OFILES) -o libf2c.so.2 -lm - - ### If your system lacks ranlib, you don't need it; see README. - diff --git a/dev-libs/libf2c/files/libf2c-20110801-format-security.patch b/dev-libs/libf2c/files/libf2c-20110801-format-security.patch deleted file mode 100644 index 3caa80f787c4..000000000000 --- a/dev-libs/libf2c/files/libf2c-20110801-format-security.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/arithchk.c -+++ b/arithchk.c -@@ -122,7 +122,7 @@ - long Cray1; - - /* Cray1 = 4617762693716115456 -- without overflow on non-Crays */ -- Cray1 = printf(emptyfmt) < 0 ? 0 : 4617762; -+ Cray1 = fputs(emptyfmt, stdout) < 0 ? 0 : 4617762; - if (printf(emptyfmt, Cray1) >= 0) - Cray1 = 1000000*Cray1 + 693716; - if (printf(emptyfmt, Cray1) >= 0) diff --git a/dev-libs/libf2c/files/libf2c-20130927-fix-buildsystem.patch b/dev-libs/libf2c/files/libf2c-20130927-fix-buildsystem.patch deleted file mode 100644 index d3de94b38380..000000000000 --- a/dev-libs/libf2c/files/libf2c-20130927-fix-buildsystem.patch +++ /dev/null @@ -1,65 +0,0 @@ ---- a/makefile.u -+++ b/makefile.u -@@ -12,16 +12,12 @@ - # -fPIC - # to the CFLAGS = line below. - --.SUFFIXES: .c .o --CC = cc - SHELL = /bin/sh --CFLAGS = -O - - # compile, then strip unnecessary symbols - .c.o: -- $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c -- ld -r -x -o $*.xxx $*.o -- mv $*.xxx $*.o -+ $(CC) -c $(CPPFLAGS) $(CFLAGS) -DSkip_f2c_Undefs $< -o $@ -+ - ## Under Solaris (and other systems that do not understand ld -x), - ## omit -x in the ld line above. - ## If your system does not have the ld command, comment out -@@ -74,8 +70,8 @@ - $(OFILES): f2c.h signal1.h sysdep1.h - - libf2c.a: $(OFILES) -- ar r libf2c.a $? -- -ranlib libf2c.a -+ $(AR) r libf2c.a $? -+ $(RANLIB) libf2c.a - - ## Shared-library variant: the following rule works on Linux - ## systems. Details are system-dependent. Under Linux, -fPIC -@@ -92,12 +88,6 @@ - - ### If your system lacks ranlib, you don't need it; see README. - --f77vers.o: f77vers.c -- $(CC) -c f77vers.c -- --i77vers.o: i77vers.c -- $(CC) -c i77vers.c -- - # To get an "f2c.h" for use with "f2c -C++", first "make hadd" - hadd: f2c.h0 f2ch.add - cat f2c.h0 f2ch.add >f2c.h -@@ -125,7 +115,7 @@ - - install: libf2c.a - cp libf2c.a $(LIBDIR) -- -ranlib $(LIBDIR)/libf2c.a -+ $(RANLIB) $(LIBDIR)/libf2c.a - - clean: - rm -f libf2c.a *.o arith.h signal1.h sysdep1.h -@@ -185,8 +175,8 @@ - xwsne.o: fmt.h - - arith.h: arithchk.c -- $(CC) $(CFLAGS) -DNO_FPINIT arithchk.c -lm ||\ -- $(CC) -DNO_LONG_LONG $(CFLAGS) -DNO_FPINIT arithchk.c -lm -+ $(CC) $(CPPFLAGS) $(CFLAGS) -DNO_FPINIT arithchk.c -lm ||\ -+ $(CC) -DNO_LONG_LONG $(CPPFLAGS) $(CFLAGS) -DNO_FPINIT arithchk.c -lm - ./a.out >arith.h - rm -f a.out arithchk.o - diff --git a/dev-libs/libf2c/libf2c-20130927-r1.ebuild b/dev-libs/libf2c/libf2c-20130927-r1.ebuild deleted file mode 100644 index 13d4a22da7ff..000000000000 --- a/dev-libs/libf2c/libf2c-20130927-r1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic toolchain-funcs - -DESCRIPTION="Library that converts FORTRAN to C source" -HOMEPAGE="http://www.netlib.org/f2c/" -SRC_URI="http://www.netlib.org/f2c/${PN}.zip -> ${P}.zip" - -LICENSE="HPND" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86" -IUSE="static-libs" - -BDEPEND="app-arch/unzip" - -S="${WORKDIR}" - -PATCHES=( - "${FILESDIR}"/20051004-add-ofiles-dep.patch - "${FILESDIR}"/20090407-link-shared-libf2c-correctly.patch - "${FILESDIR}"/${PN}-20110801-main.patch - "${FILESDIR}"/${PN}-20110801-64bit-long.patch - "${FILESDIR}"/${PN}-20110801-format-security.patch - "${FILESDIR}"/${PN}-20130927-fix-buildsystem.patch -) - -src_configure() { - tc-export AR CC RANLIB -} - -src_compile() { - if use static-libs; then - emake -f makefile.u all - # Clean up files so we can recompile - # with -fPIC for the shared lib - rm -v *.o || die "clean failed" - fi - - append-cflags -fPIC - emake -f makefile.u libf2c.so -} - -src_install() { - doheader f2c.h - - dolib.so libf2c.so.2 - dosym libf2c.so.2 /usr/$(get_libdir)/libf2c.so - use static-libs && dolib.a libf2c.a - - einstalldocs - dodoc Notice -}
