diff options
author | Matt Turner <mattst88@gentoo.org> | 2020-03-31 22:01:01 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2020-03-31 22:07:50 -0700 |
commit | e63b7c35c2c49b7ae4cce57ca167035737480e53 (patch) | |
tree | fa973199146797d6e235a973b0146847b74bb83c /sys-apps/sparc-utils/sparc-utils-1.9-r6.ebuild | |
parent | profiles/default/linux/ppc64le/17.0/developer: new exp profile (diff) | |
download | gentoo-e63b7c35c2c49b7ae4cce57ca167035737480e53.tar.gz gentoo-e63b7c35c2c49b7ae4cce57ca167035737480e53.tar.bz2 gentoo-e63b7c35c2c49b7ae4cce57ca167035737480e53.zip |
sys-apps/sparc-utils: Add patch to fix on 64-bit userland
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'sys-apps/sparc-utils/sparc-utils-1.9-r6.ebuild')
-rw-r--r-- | sys-apps/sparc-utils/sparc-utils-1.9-r6.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-apps/sparc-utils/sparc-utils-1.9-r6.ebuild b/sys-apps/sparc-utils/sparc-utils-1.9-r6.ebuild new file mode 100644 index 000000000000..3aec8e00f8eb --- /dev/null +++ b/sys-apps/sparc-utils/sparc-utils-1.9-r6.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="Various sparc utilities from Debian GNU/Linux" +HOMEPAGE="https://packages.debian.org/sparc-utils" +SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz + mirror://debian/pool/main/s/${PN}/${PN}_${PV}-4.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* sparc" +IUSE="" + +DEPEND="virtual/os-headers" +RDEPEND=">=sys-apps/util-linux-2.13-r1" + +S=${WORKDIR}/${P}.orig + +PATCHES=( + "${WORKDIR}/${PN}_${PV}-4.diff" + "${FILESDIR}"/${P}-no-implicit.patch + "${FILESDIR}"/elftoaout-2.3-64bit_fixes-1.patch +) + +src_compile() { + emake -C elftoaout-2.3 \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" + emake -C src piggyback piggyback64 \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" + emake -C prtconf-1.3 all \ + CC="$(tc-getCC)" +} + +src_install() { + # since the debian/piggyback64.1 manpage is a pointer to the + # debian/piggyback.1 manpage, copy debian/piggyback.1 to + # debian/piggyback64.1 + + cp "${S}"/debian/piggyback.1 "${S}"/debian/piggyback64.1 || die + + dobin elftoaout-2.3/elftoaout + dobin src/piggyback + dobin src/piggyback64 + dosbin prtconf-1.3/prtconf + dosbin prtconf-1.3/eeprom + + doman elftoaout-2.3/elftoaout.1 + doman prtconf-1.3/prtconf.8 + doman prtconf-1.3/eeprom.8 + doman debian/piggyback.1 + doman debian/piggyback64.1 +} + +pkg_postinst() { + ewarn "In order to have /usr/sbin/eeprom, make sure you build /dev/openprom" + ewarn "device support (CONFIG_SUN_OPENPROMIO) into the kernel, or as a" + ewarn "module (and that the module is loaded)." +} |