Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sparc-utils/files/, sys-apps/sparc-utils/
Date: Mon, 01 Jan 2018 21:06:27
Message-Id: 1514840778.28c5dc0f9fc2bd2a2cbe8db0d398a3407f350ec4.slyfox@gentoo
1 commit: 28c5dc0f9fc2bd2a2cbe8db0d398a3407f350ec4
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 1 21:03:25 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 1 21:06:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28c5dc0f
7
8 sys-apps/sparc-utils: bump debian patchset, refresh EAPI=6
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 sys-apps/sparc-utils/Manifest | 1 +
13 .../files/sparc-utils-1.9-no-implicit.patch | 21 ++++++++
14 sys-apps/sparc-utils/sparc-utils-1.9-r5.ebuild | 61 ++++++++++++++++++++++
15 3 files changed, 83 insertions(+)
16
17 diff --git a/sys-apps/sparc-utils/Manifest b/sys-apps/sparc-utils/Manifest
18 index 4611687355c..c796e304cd2 100644
19 --- a/sys-apps/sparc-utils/Manifest
20 +++ b/sys-apps/sparc-utils/Manifest
21 @@ -1,2 +1,3 @@
22 DIST sparc-utils_1.9-3.diff.gz 10337 BLAKE2B 03ee7ca15c4e736955fa08c66bbd1db2ec39764b4334fbec3838f5bcea3945d22c7a3148c00ab43a67324827af473739d014d7a6a895dbbd58c43ba13cbb1efe SHA512 c6eba75261ffee55cc49e3da71ad3a2f12e04574158975c69db0bbd94d7c22ca4dec50f3140cf0bf9f35bb547865deca3cfd3e28e76c70b9173926bc0b8f34ee
23 +DIST sparc-utils_1.9-4.diff.gz 9083 BLAKE2B e4b16c26fe67be73d0fd3ad8e1e80b19356d5961abac344f28650e4d355cac9c557999591947391c41be88d819ebb703ae1ff177b4fbe0d9bea7a411a791821f SHA512 ef79dc480471117da3a778450b3a122eaf64fdee69d35ff30b301f2360ff5d76c6343ce37c25cc188891c1619809daa0595d01c6e85781ddd7ddf1713c8378b7
24 DIST sparc-utils_1.9.orig.tar.gz 110080 BLAKE2B 52f47c130fb8e24b0340589c846292fb2e4e9b211a10cddf52a7a63edd70673e2b7d05c2415e558c5f2d1235f33f4ae65b777d3f8b2cf2c50a601d1f0a7a941a SHA512 bde05f1a98211aaf502be6dfd757ddfb21c136cedbb46ca84a4539706c71901815c9d8bedfebc3800c7340634b32276197c75f92f9cc829e4f50c37d203e9358
25
26 diff --git a/sys-apps/sparc-utils/files/sparc-utils-1.9-no-implicit.patch b/sys-apps/sparc-utils/files/sparc-utils-1.9-no-implicit.patch
27 new file mode 100644
28 index 00000000000..567edd3c611
29 --- /dev/null
30 +++ b/sys-apps/sparc-utils/files/sparc-utils-1.9-no-implicit.patch
31 @@ -0,0 +1,21 @@
32 +diff --git a/prtconf-1.3/eeprom.c b/prtconf-1.3/eeprom.c
33 +index b801f95..b15e74c 100644
34 +--- a/prtconf-1.3/eeprom.c
35 ++++ b/prtconf-1.3/eeprom.c
36 +@@ -33,4 +33,6 @@
37 + #include <dirent.h>
38 + #include <pwd.h>
39 ++#include <ctype.h> /* isdigit() */
40 ++#include <sys/ioctl.h> /* ioctl() */
41 +
42 + #include <asm/openpromio.h>
43 +diff --git a/prtconf-1.3/prtconf.c b/prtconf-1.3/prtconf.c
44 +index b9d8c89..c9b54be 100644
45 +--- a/prtconf-1.3/prtconf.c
46 ++++ b/prtconf-1.3/prtconf.c
47 +@@ -30,4 +30,5 @@
48 + #include <sys/stat.h>
49 + #include <sys/utsname.h>
50 ++#include <sys/ioctl.h> /* ioctl() */
51 +
52 + #include <asm/openpromio.h>
53
54 diff --git a/sys-apps/sparc-utils/sparc-utils-1.9-r5.ebuild b/sys-apps/sparc-utils/sparc-utils-1.9-r5.ebuild
55 new file mode 100644
56 index 00000000000..80f6a939f0d
57 --- /dev/null
58 +++ b/sys-apps/sparc-utils/sparc-utils-1.9-r5.ebuild
59 @@ -0,0 +1,61 @@
60 +# Copyright 1999-2018 Gentoo Foundation
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=6
64 +
65 +inherit eutils toolchain-funcs
66 +
67 +DESCRIPTION="Various sparc utilities from Debian GNU/Linux"
68 +HOMEPAGE="https://packages.debian.org/sparc-utils"
69 +SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz
70 + mirror://debian/pool/main/s/${PN}/${PN}_${PV}-4.diff.gz"
71 +
72 +LICENSE="GPL-2"
73 +SLOT="0"
74 +KEYWORDS="-* ~sparc"
75 +IUSE=""
76 +
77 +DEPEND="virtual/os-headers"
78 +RDEPEND=">=sys-apps/util-linux-2.13-r1"
79 +
80 +S=${WORKDIR}/${P}.orig
81 +
82 +PATCHES=(
83 + "${WORKDIR}/${PN}_${PV}-4.diff"
84 + "${FILESDIR}"/${P}-no-implicit.patch
85 +)
86 +
87 +src_compile() {
88 + emake -C elftoaout-2.3 \
89 + CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
90 + emake -C src piggyback piggyback64 \
91 + CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
92 + emake -C prtconf-1.3 all \
93 + CC="$(tc-getCC)"
94 +}
95 +
96 +src_install() {
97 + # since the debian/piggyback64.1 manpage is a pointer to the
98 + # debian/piggyback.1 manpage, copy debian/piggyback.1 to
99 + # debian/piggyback64.1
100 +
101 + cp "${S}"/debian/piggyback.1 "${S}"/debian/piggyback64.1 || die
102 +
103 + dobin elftoaout-2.3/elftoaout
104 + dobin src/piggyback
105 + dobin src/piggyback64
106 + dosbin prtconf-1.3/prtconf
107 + dosbin prtconf-1.3/eeprom
108 +
109 + doman elftoaout-2.3/elftoaout.1
110 + doman prtconf-1.3/prtconf.8
111 + doman prtconf-1.3/eeprom.8
112 + doman debian/piggyback.1
113 + doman debian/piggyback64.1
114 +}
115 +
116 +pkg_postinst() {
117 + ewarn "In order to have /usr/sbin/eeprom, make sure you build /dev/openprom"
118 + ewarn "device support (CONFIG_SUN_OPENPROMIO) into the kernel, or as a"
119 + ewarn "module (and that the module is loaded)."
120 +}