diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-03-19 11:37:34 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-03-19 11:37:34 +0000 |
commit | b7b97785ebbb2f11d24d14dab8b81ed274f4ce6a (patch) | |
tree | 9fd110f9fc996e8a4213eeda994a8c112491b86d /app-misc/fdutils | |
parent | 066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (diff) |
gentoo resync : 19.03.2019
Diffstat (limited to 'app-misc/fdutils')
-rw-r--r-- | app-misc/fdutils/Manifest | 7 | ||||
-rw-r--r-- | app-misc/fdutils/fdutils-5.5.20060227-r1.ebuild | 59 | ||||
-rw-r--r-- | app-misc/fdutils/files/fdutils-5.5-superformat-snprintf.patch | 16 | ||||
-rw-r--r-- | app-misc/fdutils/files/fdutils-5.5.20060227-r1-parallel.patch | 18 | ||||
-rw-r--r-- | app-misc/fdutils/metadata.xml | 5 |
5 files changed, 103 insertions, 2 deletions
diff --git a/app-misc/fdutils/Manifest b/app-misc/fdutils/Manifest index c16294dff19f..290dc7f13e8a 100644 --- a/app-misc/fdutils/Manifest +++ b/app-misc/fdutils/Manifest @@ -1,4 +1,9 @@ +AUX fdutils-5.5-superformat-snprintf.patch 655 BLAKE2B 635b89f3a3f20a6e255e56ed7e2cd306365a7b7bfa5047cb20d551919daffe4b956d53bc3896814d9aae84ab9586a98017c9e70df3101b5efd1f02d88173e1b7 SHA512 42d6fb5beed1548815c67921d74dcdef05e76c45cbfde08ba4265de29a58f26af22b1ea7bdd5b1b71a34f0268c7cdb9063652565c7856cd6503dd0425d56171a +AUX fdutils-5.5.20060227-r1-parallel.patch 607 BLAKE2B 2fc63e7a08071afbe90c891785fb3bedcc93bb7b47077eee1af6ca19a449df3ea4c9b48885f0a6d58d6a47d0397b35c21ca7ba1aa93f5fe42e9b0b9d81b220f5 SHA512 c3ef752ae6580816e3a451cbd1d56f169d71608c723d5a7ce77cd80db5021b7ea2c85c78dddc4219f9cf59b5995248c222bb39f746b72f7244ab0c998f3cf732 +DIST fdutils-5.5-20060227_20081027.diff.gz 6748 BLAKE2B a6d9bf332a777c6c09c85ea85adfaf02422ed2e459d3cb5248c5f6c122e11d39c1a426288d8b611f61ee5ed33ceb5695644f6fbf5421e7a0b1b9937c6a3c26f3 SHA512 979ad8116a5e0c82584a534095e60689d3920d16f0685a184619012d4146f89d6dce063d896668242bf10a6372579ad16ee3e2093e386ff430f265a23458750d DIST fdutils_5.5-20060227-6.debian.tar.gz 54489 BLAKE2B 4d0fbd1c9c4f115a9df3f7092e062173f6a8956df8d465bb0186f712f51f6ef9e4fc67c4c642cdf7ae7e9daa775d6657c4306f5837307a51daa0abcc12639b0e SHA512 db6759bd2b98ae65bca39cf5b09fdb250371e02daa7665d8d21f93c3ab968cfe345cecb20faedaf2600104b22e2fb4df6868860dac3ead0ffb28d2141c8d7149 +DIST fdutils_5.5-20060227-8.debian.tar.xz 48480 BLAKE2B 16de5a3b9f634c3eafbe9048d84c6ff29933e5b5ad878de79e6b03aac49ec44334e7e8e090ad0518bc83e8adb91dd19612850f0de7e28bc9d9c10663fd9a5252 SHA512 a55823c2a4defe1ebad5a92c96a85766520a744b75f49e9f99eb14ec2c0ec44f91a72437d070942a4603f7e337ed60c380f61635b4aba57dbb5ddc8d771d8b89 DIST fdutils_5.5-20060227.orig.tar.gz 222915 BLAKE2B d76a4b30ab60ea081e333817af11fe3815e8e19149c643afbcb931dc670fa3893cb96bb6be2136dea10fea06894a02e7fd1ecc4500ca6dd786054bbdaea19262 SHA512 a25d23827b9178a9a54d0012ad20248072e07aa5798bb3661fd0412d2441239b7bbf1778b5e34acb1a09a25a76e44c1801b706a242ce3b2337c06757e0ac02dd +EBUILD fdutils-5.5.20060227-r1.ebuild 1727 BLAKE2B d3d56facbd81c613526ab722d59fc9a11e5c4f17f6bdc3b49e7c6cb0b0a2d873e469abd02fc95fea5a0db6212771c742af2b5189f32ad5c878d8e225140d991b SHA512 6ac168d7f5b0ce3fec16c8f9027f4f9eaeb11e0d47f997c6215fd6c33ac62d56c0a24df7fddd160c09cb91b0e3dc035b2dafd4b3b62e71a33fd1b2c33dbe4833 EBUILD fdutils-5.5.20060227.ebuild 1344 BLAKE2B 3e80aef85d10e768ba7a18aabc9e25e746adf1eb4ff7b4c9b7a340e3158159901bdf7c071abdb817afba9c805708bdd8ed3c2b97a668793929fa534ce65b69ce SHA512 52042b4a2d05e325a64cd85703c777af4c154d6e79e59ac04fb138f1798ccaa60dfc9f5312390a382214d41ef59dcd933bf40b8c369952747ecea8a4791d95e9 -MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 +MISC metadata.xml 250 BLAKE2B fe89695d5dcb55e3a59fe901cba061e1b73e5d09cc72d362bb3ec127aecdba741ba23920096bfad7a39c43e35ffbc006fe84f3e50a34c91097a32deceeb91e84 SHA512 c599b09b9aaf744dfe13d0707adde7d3dfd1a8a411e937fcba25e65c6045792cdcf6ceb9004e3dd38b014c486c9f1334bfc898419f59806ec6abebfc71bca382 diff --git a/app-misc/fdutils/fdutils-5.5.20060227-r1.ebuild b/app-misc/fdutils/fdutils-5.5.20060227-r1.ebuild new file mode 100644 index 000000000000..d234389a9e19 --- /dev/null +++ b/app-misc/fdutils/fdutils-5.5.20060227-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils + +MY_P=${PN}_5.5-20060227 + +DESCRIPTION="utilities for configuring and debugging the Linux floppy driver" +HOMEPAGE="https://fdutils.linux.lu" +SRC_URI="mirror://debian/pool/main/f/${PN}/${MY_P}.orig.tar.gz + mirror://debian/pool/main/f/${PN}/${MY_P}-8.debian.tar.xz + https://dev.gentoo.org/~robbat2/distfiles/fdutils-5.5-20060227_20081027.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" + +RDEPEND=">=sys-fs/mtools-4" +DEPEND="${RDEPEND} + sys-apps/texinfo + virtual/os-headers + doc? ( virtual/texi2dvi )" + +S=${WORKDIR}/${PN}-5.5-20060227 + +src_prepare() { + local d="${WORKDIR}"/debian/patches + EPATCH_SOURCE="${d}" epatch $(<"${d}"/series) + sed -i -e 's:{LDFLAFS}:(LDFLAGS):' src/Makefile.in || die #337721 + # The build sets up config.h and uses some symbols, but forgots to + # actually include it in most places. + sed -i '1i#include "../config.h"' src/*.c || die #580060 + epatch "${FILESDIR}"/fdutils-5.5.20060227-r1-parallel.patch || die # 315577 + epatch "${DISTDIR}"/fdutils-5.5-20060227_20081027.diff.gz || die # upstream did make a patch-based release after 20060227! + epatch "${FILESDIR}"/fdutils-5.5-superformat-snprintf.patch || die # but it had a bug that strict GCC catches +} + +src_configure() { + econf --enable-fdmount-floppy-only +} + +src_compile() { + emake $(use doc || echo compile) +} + +src_install() { + dodir /etc + use doc && dodir /usr/share/info + + emake DESTDIR="${D}" install + + # The copy in sys-apps/man-pages is more recent + rm -f "${ED}"/usr/share/man/man4/fd.4 || die + + # Rename to match binary + mv "${ED}"/usr/share/man/man1/{makefloppies,MAKEFLOPPIES}.1 || die +} diff --git a/app-misc/fdutils/files/fdutils-5.5-superformat-snprintf.patch b/app-misc/fdutils/files/fdutils-5.5-superformat-snprintf.patch new file mode 100644 index 000000000000..49753478e5e6 --- /dev/null +++ b/app-misc/fdutils/files/fdutils-5.5-superformat-snprintf.patch @@ -0,0 +1,16 @@ +Fix of snprintf bug in upstream's 20081027 diff. + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> + +diff -Nuar --exclude '*.orig' --exclude '*~' fdutils-5.5-20060227.orig/src/superformat.c fdutils-5.5-20060227/src/superformat.c +--- fdutils-5.5-20060227.orig/src/superformat.c 2019-03-17 14:46:44.051851597 -0700 ++++ fdutils-5.5-20060227/src/superformat.c 2019-03-17 14:48:34.550873108 -0700 +@@ -1140,7 +1140,7 @@ + if (verbosity >= 5) + printf("calling mformat\n"); + if (use_2m) +- snprintf(twom_buffer, 5, "-2 %2d", fd0.dsect); ++ snprintf(twom_buffer, 6, "-2 %2d", fd0.dsect); + else + twom_buffer[0]='\0'; + snprintf(command_buffer, 79, diff --git a/app-misc/fdutils/files/fdutils-5.5.20060227-r1-parallel.patch b/app-misc/fdutils/files/fdutils-5.5.20060227-r1-parallel.patch new file mode 100644 index 000000000000..52c0a1357a59 --- /dev/null +++ b/app-misc/fdutils/files/fdutils-5.5.20060227-r1-parallel.patch @@ -0,0 +1,18 @@ +The Makefile implicit archive format ('Archives' in make.info) from, e.g. +'libfdutils.a($(LIBFILES))' does not support parallel operations. Convert to +parallel-safe structure. + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> + +--- fdutils-5.5-20060227.orig/src/Makefile.in 2019-03-17 13:25:43.891918479 -0700 ++++ fdutils-5.5-20060227/src/Makefile.in 2019-03-17 13:30:05.067424657 -0700 +@@ -67,7 +67,7 @@ + lex.%.c: %.lex + lex -P$* $< + +-libfdutils.a: libfdutils.a($(LIBFILES)) +- ranlib libfdutils.a ++libfdutils.a: $(LIBFILES) ++ ar rcs $@ $^ + + floppycontrol.o getfdprm setfdprm: /usr/include/linux/fd.h diff --git a/app-misc/fdutils/metadata.xml b/app-misc/fdutils/metadata.xml index 6f49eba8f496..4073267daf2a 100644 --- a/app-misc/fdutils/metadata.xml +++ b/app-misc/fdutils/metadata.xml @@ -1,5 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<!-- maintainer-needed --> + <maintainer type="person"> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + </maintainer> </pkgmetadata> |