From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 77AE71382C5 for ; Thu, 29 Mar 2018 15:10:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B37BE089A; Thu, 29 Mar 2018 15:10:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5F939E089A for ; Thu, 29 Mar 2018 15:10:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1A68335D23 for ; Thu, 29 Mar 2018 15:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1706226E for ; Thu, 29 Mar 2018 15:10:50 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1522336248.94132bac4609f09fab26fa59b9769a2bda95034f.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/heirloom-tools/, sys-apps/heirloom-tools/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/heirloom-tools/files/heirloom-tools-070715-major.patch sys-apps/heirloom-tools/heirloom-tools-070715-r1.ebuild X-VCS-Directories: sys-apps/heirloom-tools/ sys-apps/heirloom-tools/files/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 94132bac4609f09fab26fa59b9769a2bda95034f X-VCS-Branch: master Date: Thu, 29 Mar 2018 15:10:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 74cfff0e-4f5b-415b-832b-dee56b288cde X-Archives-Hash: 1acf454770731315cd6cc844b6a68cf5 commit: 94132bac4609f09fab26fa59b9769a2bda95034f Author: Jeroen Roovers gentoo org> AuthorDate: Thu Mar 29 15:10:31 2018 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Thu Mar 29 15:10:48 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94132bac sys-apps/heirloom-tools: Fix many bugs (also bug #649788). Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../files/heirloom-tools-070715-major.patch | 25 ++++++++++ .../heirloom-tools/heirloom-tools-070715-r1.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/sys-apps/heirloom-tools/files/heirloom-tools-070715-major.patch b/sys-apps/heirloom-tools/files/heirloom-tools-070715-major.patch new file mode 100644 index 00000000000..82d32315d81 --- /dev/null +++ b/sys-apps/heirloom-tools/files/heirloom-tools-070715-major.patch @@ -0,0 +1,25 @@ +--- a/cpio/cpio.c ++++ b/cpio/cpio.c +@@ -91,9 +91,9 @@ + #include + #include + +-#ifdef _AIX ++#if defined (_AIX) || defined (__GLIBC__) + #include +-#endif /* _AIX */ ++#endif /* _AIX || __GLIBC__ */ + + #ifndef major + #include +--- a/ls/ls.c ++++ b/ls/ls.c +@@ -119,7 +119,7 @@ + #include + #endif /* USE_TERMCAP */ + +-#ifdef _AIX ++#if defined (_AIX) || defined (__GLIBC__) + #include + #endif + diff --git a/sys-apps/heirloom-tools/heirloom-tools-070715-r1.ebuild b/sys-apps/heirloom-tools/heirloom-tools-070715-r1.ebuild new file mode 100644 index 00000000000..9d55edab0b4 --- /dev/null +++ b/sys-apps/heirloom-tools/heirloom-tools-070715-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Heirloom toolchest - original Unix tools" +HOMEPAGE="http://heirloom.sourceforge.net/tools.html" +SRC_URI="http://downloads.sourceforge.net/project/heirloom/heirloom/${PV}/heirloom-${PV}.tar.bz2" + +LICENSE="CDDL GPL-2 LGPL-2.1 9base ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/zlib +" +DEPEND=" + ${RDEPEND} + sys-apps/ed + virtual/pkgconfig +" +S="${WORKDIR}/heirloom-${PV}" +PATCHES=( + "${FILESDIR}"/${P}-major.patch +) + +# slightly broken +RESTRICT="test" + +src_prepare() { + find . -name '*.c' -exec sed -i -e 's|#ifndef[[:space:]]*major|#include \n#if 0|g' {} + || die + + default +} +src_compile() { + append-cppflags -D_GNU_SOURCE + emake -j1 \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" \ + LCURS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \ + LDFLAGS="${LDFLAGS}" \ + LIBZ=-lz +} + +src_install() { + # we don't want to strip here, so use "true" as noop + emake STRIP="true" ROOT="${D}" -j1 install +} + +pkg_postinst() { + elog "You may want to add /usr/5bin or /usr/ucb to \$PATH" + elog "to enable using the apps of heirloom toolchest by default." + elog "Man pages are installed in /usr/share/man/5man/" + elog "You may need to set \$MANPATH to access them." +}