diff options
Diffstat (limited to 'sys-devel/heirloom-devtools')
6 files changed, 411 insertions, 0 deletions
diff --git a/sys-devel/heirloom-devtools/Manifest b/sys-devel/heirloom-devtools/Manifest new file mode 100644 index 000000000000..e6179768df00 --- /dev/null +++ b/sys-devel/heirloom-devtools/Manifest @@ -0,0 +1,8 @@ +AUX heirloom-devtools-070527-64-bit.patch 1175 SHA256 fdb878ff16e8a30b5042f6b447061fb8d9c6c93c3ce691c0715ee3afe121ff1f SHA512 5523e670c9c9d57f0415e30d1aab4dfcd7d8ad74e2535136afbbe4c6e407c713e7801cbcbf7ddbe798ab2790fc196a2fdbf9d5295fa8c475c73360f5e3a27066 WHIRLPOOL 9ee49da3af1e2c0965761e764bbd84f5ff7e2ae8c77f11d44242c7d9720635faa48b29c108aa8d8462bb2427a85a1ad481b55b3a699e2e25d98447ad19c9918e +AUX heirloom-devtools-070527-solaris.patch 5636 SHA256 3c6c42ab6ccb0b03fd7dcf83b3d3ca066eeff250738bd7750d32d39cc18ad357 SHA512 335fdabef9b9a8b93ffa6eab2b66d2db11af29b24989c4b64ea64695cfadd4471c31a865c2fcb823c1f4c11eebc1babb53ab83c9c2bdf83c05f497faf16e3f1c WHIRLPOOL a9ebe3a455c70d828d93d4fd1d20609ea000ec1461b69358688901bac9697498acd5498722dc9d16b40278a2185e5534ca7d07bdd0a117bb34dd768255a238bc +DIST heirloom-devtools-070527.tar.bz2 381054 SHA256 9f233d8b78e4351fe9dd2d50d83958a0e5af36f54e9818521458a08e058691ba SHA512 1f1f10a7b49402053172cc028bbd939a46fcf933994cb867fa40e8c5bbd7b1291575b3bac254cd79dc4fce3e3a2c88fe0f890449888fda16169c8e6a2540f055 WHIRLPOOL 145d36f42b180e480afe4bcefa0c59de44787ba9eef73782588834d8b15300b9ef12bde77b47eef992229fdfed8cef9da49b993f50023aa15262166bebe57104 +EBUILD heirloom-devtools-070527-r2.ebuild 1464 SHA256 fb4ff32ede4cf84ad33ffd877397859f09cb64a190b5f18b0b815a69dbf72281 SHA512 a458bf398c070001ef760a9821cc6073a95b8eee3887ee51c8ef05291788870b8083b6ddd178012321e83d8297b98f3e75c3ee4d77d3594e10fc4fec6dd48b76 WHIRLPOOL 512a4de8fce88c38a1ca97e920348b75bb850bb8d6da1a14515fe6bfb6b494c1b9e53d4c0f408ec1f16b1ad94013485ae1e52cb6113246aa7932e74f70c5bbe8 +EBUILD heirloom-devtools-999999.ebuild 1458 SHA256 bac7472e99d310591619cd00fb9098b54b9f0e31d96231c9455ac98a7d8e8166 SHA512 03fe87d7411fe7fd7db25b3fe7154a2e1cc78f0850d6ef0460f3a78865fd99c68505f90ea8501005ee903ace55a113a996ca0d8bad36f2e190d09193376d8175 WHIRLPOOL 27879ba4c1533f9f3171aa0f62538e505dbb5df8f728d8105498b4f2508ada7ced5fb1c370898071c72a71b47d6cf8b460a1e9d5f9d9948261a65b847a4b258f +MISC ChangeLog 2934 SHA256 01cae0d50f99f0bc27bed27784c90dd570aa3b4baba1f4146bc4203ef34299ef SHA512 13494ab247842ac7862832152c01d305fc4f49a5555c7c39195d6fba384667d0a44e4a2ae9bc6240ab77599e18cf88c93a97d3a601613e15fd5581a74651ff0b WHIRLPOOL 894d70f34ef2aa6cafaaefb2639d228d8308d4f4bdb16215a1f86c8c126c60128d90b3bd85ae0b3526f9070f2ab370eb3e434670b4523b99a9ec892594cb8c7c +MISC ChangeLog-2015 1261 SHA256 2e8bf1070798c0252c722e2b3a3024d8091cd05b0d8b72948a47ad905fab4d1d SHA512 a65fa306be43932834bb9b82a9ae5347278b6aea6aa465f706fdd86a294b9edf2cb334088d5056d3cd4b3d02dfb78314cba3e3b4d7136d5d79bc67efded2ca2e WHIRLPOOL 6a9ee058fed7175162dd3bd759a2ac71c263739c9fd0039892e69d3e73c0459da3895942c6be2f9e9a62d9e007ce827b84a710e0bea04d7bee214c05f98ce350 +MISC metadata.xml 320 SHA256 60c58d3c6c0be63207a10f766ec41ab2e171e6f9c77185197f3b51eee00513eb SHA512 ff9b5a1315c7be331504f555dd9fbef1b1d20d93175700e6a963a96fcfdd5020b414a275626251f2d6a772053639e28530e74de470cc17a0b62d60aa2a5578cb WHIRLPOOL 080ee24545d4e33afa761ad9191c6fa02d3dc75428d62d3e0d45a64aee1a6dfc47aad42e7e842653972fa0b4979b36d26fcbe80722e4ed287573ee0b28c42c7a diff --git a/sys-devel/heirloom-devtools/files/heirloom-devtools-070527-64-bit.patch b/sys-devel/heirloom-devtools/files/heirloom-devtools-070527-64-bit.patch new file mode 100644 index 000000000000..d6c3cd7a5488 --- /dev/null +++ b/sys-devel/heirloom-devtools/files/heirloom-devtools-070527-64-bit.patch @@ -0,0 +1,39 @@ +--- a/make/vroot/lock.cc 2007/01/18 15:06:32 1.1 ++++ b/make/vroot/lock.cc 2007/10/01 11:44:26 1.2 +@@ -31,7 +31,7 @@ + /* + * Portions Copyright (c) 2007 Gunnar Ritter, Freiburg i. Br., Germany + * +- * Sccsid @(#)lock.cc 1.4 (gritter) 01/13/07 ++ * Sccsid @(#)lock.cc 1.5 (gritter) 10/1/07 + */ + + #include <avo/intl.h> /* for NOCATGETS */ +@@ -53,7 +53,7 @@ + extern int sys_nerr; + #endif + +-static void file_lock_error(char *msg, char *file, char *str, int arg1, int arg2); ++static void file_lock_error(char *msg, char *file, char *str, const char *arg1, const char *arg2); + + #define BLOCK_INTERUPTS sigfillset(&newset) ; \ + sigprocmask(SIG_SETMASK, &newset, &oldset) +@@ -123,7 +123,7 @@ + + if (errno != EEXIST) { + file_lock_error(msg, name, NOCATGETS("symlink(%s, %s)"), +- (int) name, (int) lockname); ++ name, lockname); + fprintf(stderr, "%s", msg); + return errno; + } +@@ -171,7 +171,8 @@ + * Format a message telling why the lock could not be created. + */ + static void +-file_lock_error(char *msg, char *file, char *str, int arg1, int arg2) ++file_lock_error(char *msg, char *file, char *str, ++ const char *arg1, const char *arg2) + { + int len; + diff --git a/sys-devel/heirloom-devtools/files/heirloom-devtools-070527-solaris.patch b/sys-devel/heirloom-devtools/files/heirloom-devtools-070527-solaris.patch new file mode 100644 index 000000000000..c6b394208762 --- /dev/null +++ b/sys-devel/heirloom-devtools/files/heirloom-devtools-070527-solaris.patch @@ -0,0 +1,230 @@ +diff --git a/make/include/mksh/defs.h b/make/include/mksh/defs.h +index 1992205..8065a77 100644 +--- a/make/include/mksh/defs.h ++++ b/make/include/mksh/defs.h +@@ -63,7 +63,6 @@ + #include <widec.h> + #endif + +-#ifndef __sun + /* + * Definition of wchar functions. + */ +@@ -90,7 +89,6 @@ + # define wscmp(x,y) wcscmp(x,y) + # undef wsncmp + # define wsncmp(x,y,z) wcsncmp(x,y,z) +-#endif + + #if defined (__FreeBSD__) || defined (__APPLE__) || defined (__hpux) + extern "C" { wchar_t *wcsdup(const wchar_t *s); } +diff --git a/make/makestate/lock.c b/make/makestate/lock.c +index cdf7562..aa6083e 100644 +--- a/make/makestate/lock.c ++++ b/make/makestate/lock.c +@@ -42,18 +42,6 @@ + #include <sys/errno.h> + #include <errno.h> /* errno */ + +-#if defined(_LP64) +-/* +- * The symbols _sys_errlist and _sys_nerr are not visible in the +- * LP64 libc. Use strerror(3C) instead. +- */ +-#else /* #_LP64 */ +-#if defined (__sun) || defined (__hpux) +-extern char * sys_errlist[]; +-extern int sys_nerr; +-#endif +-#endif /* #_LP64 */ +- + static void file_lock_error(char *, char *, const char *, char *, char *); + + /* +@@ -167,16 +155,7 @@ file_lock_error(char * msg, char * file, const char * str, char * arg1, + len = strlen(msg); + sprintf(&msg[len], str, arg1, arg2); + strcat(msg, " failed - "); +-#if defined(_LP64) + /* Needs to be changed to use strerror(3C) instead. */ + len = strlen(msg); + sprintf(&msg[len], "errno %d", errno); +-#else /* #_LP64 */ +- if (errno < sys_nerr) { +- strcat(msg, sys_errlist[errno]); +- } else { +- len = strlen(msg); +- sprintf(&msg[len], "errno %d", errno); +- } +-#endif /* #_LP64 */ + } +diff --git a/make/mksh/macro.cc b/make/mksh/macro.cc +index 6ddb624..23b0315 100644 +--- a/make/mksh/macro.cc ++++ b/make/mksh/macro.cc +@@ -43,6 +43,7 @@ + /* + * Included files + */ ++#include <alloca.h> + #include <wordexp.h> + #include <mksh/dosys.h> /* sh_command2string() */ + #include <mksh/i18n.h> /* get_char_semantics_value() */ +@@ -1403,13 +1404,6 @@ found_it:; + new_value = ALLOC_WC(length); + new_value_allocated = true; + WCSTOMBS(mbs_buffer, old_vr); +-#ifdef __sun +- wsprintf(new_value, +- NOCATGETS("/usr/arch/%s/%s:%s"), +- ha->string_mb + 1, +- ta->string_mb + 1, +- mbs_buffer); +-#else + char * mbs_new_value = (char *)getmem(length); + sprintf(mbs_new_value, + NOCATGETS("/usr/arch/%s/%s:%s"), +@@ -1418,7 +1412,6 @@ found_it:; + mbs_buffer); + MBSTOWCS(new_value, mbs_new_value); + retmem_mb(mbs_new_value); +-#endif + } + if (new_value[0] != 0) { + setvar_daemon(virtual_root, +diff --git a/make/mksh/misc.cc b/make/mksh/misc.cc +index 11122cf..d617591 100644 +--- a/make/mksh/misc.cc ++++ b/make/mksh/misc.cc +@@ -382,30 +382,7 @@ setup_char_semantics(void) + char * + errmsg(int errnum) + { +-#ifndef __sun + return strerror(errnum); +-#else // __sun +- +- extern int sys_nerr; +-#ifdef SUN4_x +- extern char *sys_errlist[]; +-#endif +- char *errbuf; +- +- if ((errnum < 0) || (errnum > sys_nerr)) { +- errbuf = getmem(6+1+11+1); +- sprintf(errbuf, "Error %d", errnum); +- return errbuf; +- } else { +-#ifdef SUN4_x +- return(sys_errlist[errnum]); +-#endif +-#ifdef SUN5_0 +- return strerror(errnum); +-#endif +- +- } +-#endif // !__sun + } + + extern const char *progname; +diff --git a/make/src/implicit.cc b/make/src/implicit.cc +index 2d388cc..a1cee7e 100644 +--- a/make/src/implicit.cc ++++ b/make/src/implicit.cc +@@ -43,10 +43,13 @@ + /* + * Included files + */ ++#include <cstdio> + #include <mk/defs.h> + #include <mksh/macro.h> /* expand_value() */ + #include <mksh/misc.h> /* retmem() */ + ++using std::printf; ++ + /* + * Defined macros + */ +@@ -97,8 +100,6 @@ extern void add_target_to_chain(Name target, Chain * query); + * recursion_level Used for tracing + */ + +-extern int printf (const char *, ...); +- + static Boolean actual_doname = false; + + /* /tolik/ +diff --git a/make/src/nse_printdep.cc b/make/src/nse_printdep.cc +index 6201a18..38826d2 100644 +--- a/make/src/nse_printdep.cc ++++ b/make/src/nse_printdep.cc +@@ -37,9 +37,12 @@ + /* + * Included files + */ ++#include <cstdio> + #include <mk/defs.h> + #include <mksh/misc.h> /* get_prop() */ + ++using std::printf; ++ + /* + * File table of contents + */ +@@ -59,7 +62,6 @@ static void print_rule(register Name target); + static void print_rec_info(Name target); + static Boolean is_out_of_date(Property line); + extern void depvar_print_results (void); +-extern int printf (const char *, ...); + extern int _flsbuf (unsigned int, FILE *); + + /* +diff --git a/make/vroot/lock.cc b/make/vroot/lock.cc +index 1d6239b..1a20bc0 100644 +--- a/make/vroot/lock.cc ++++ b/make/vroot/lock.cc +@@ -48,11 +48,6 @@ + #include <signal.h> + #include <errno.h> /* errno */ + +-#if defined(sun) || defined(HP_UX) +-extern char *sys_errlist[]; +-extern int sys_nerr; +-#endif +- + static void file_lock_error(char *msg, char *file, char *str, int arg1, int arg2); + + #define BLOCK_INTERUPTS sigfillset(&newset) ; \ +@@ -179,20 +174,6 @@ file_lock_error(char *msg, char *file, char *str, int arg1, int arg2) + len = strlen(msg); + sprintf(&msg[len], str, arg1, arg2); + strcat(msg, " failed - "); +-#ifdef __sun +- if (errno < sys_nerr) { +-#ifdef SUN4_x +- strcat(msg, sys_errlist[errno]); +-#endif +-#ifdef SUN5_0 +- strcat(msg, strerror(errno)); +-#endif +- } else { +- len = strlen(msg); +- sprintf(&msg[len], NOCATGETS("errno %d"), errno); +- } +-#else + strcat(msg, strerror(errno)); +-#endif + } + +diff --git a/sccs/src/vc.c b/sccs/src/vc.c +index d7f7187..1c0ffb1 100644 +--- a/sccs/src/vc.c ++++ b/sccs/src/vc.c +@@ -37,6 +37,7 @@ + */ + /* from OpenSolaris "sccs:cmd/vc.c" */ + # include <defines.h> ++# include <limits.h> + # include <locale.h> + + diff --git a/sys-devel/heirloom-devtools/heirloom-devtools-070527-r2.ebuild b/sys-devel/heirloom-devtools/heirloom-devtools-070527-r2.ebuild new file mode 100644 index 000000000000..53ff19979779 --- /dev/null +++ b/sys-devel/heirloom-devtools/heirloom-devtools-070527-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit flag-o-matic readme.gentoo-r1 toolchain-funcs + +DESCRIPTION="Original UNIX development tools" +HOMEPAGE="http://heirloom.sourceforge.net/devtools.html" +SRC_URI="http://downloads.sourceforge.net/project/heirloom/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="BSD BSD-4 CDDL" +SLOT="0" +KEYWORDS="~amd64 ~x64-solaris" +IUSE="" + +DEPEND="app-shells/heirloom-sh" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-solaris.patch" + "${FILESDIR}/${P}-64-bit.patch" + "${FILESDIR}/${P}-gcc6.patch" +) + +DOC_CONTENTS=" + You may want to add /usr/5bin or /usr/ucb to \$PATH + to enable using the apps of heirloom toolchest by default. + Man pages are installed in /usr/share/man/5man/ + You may need to set \$MANPATH to access them. +" + +src_prepare() { + default + sed -i \ + -e 's:^\(SHELL =\) \(.*\):\1 /bin/jsh:' \ + -e 's:^\(POSIX_SHELL =\) \(.*\):\1 /bin/sh:' \ + -e "s:^\(PREFIX=\)\(.*\):\1${EPREFIX}\2:" \ + -e "s:^\(SUSBIN=\)\(.*\):\1${EPREFIX}\2:" \ + -e "s:^\(LDFLAGS=\):\1${LDFLAGS}:" \ + -e "s:^\(CFLAGS=\)\(.*\):\1${CFLAGS}:" \ + -e 's:^\(STRIP=\)\(.*\):\1true:' \ + -e "s:^\(CXX = \)\(.*\):\1$(tc-getCXX):" \ + -e "s:^\(INSTALL=\)\(.*\):\1$(which install):" \ + ./mk.config + + echo "CC=$(tc-getCC)" >> "./mk.config" +} + +src_compile() { + emake -j1 +} + +src_install() { + emake ROOT="${D}" install + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/sys-devel/heirloom-devtools/heirloom-devtools-999999.ebuild b/sys-devel/heirloom-devtools/heirloom-devtools-999999.ebuild new file mode 100644 index 000000000000..1d97661d245b --- /dev/null +++ b/sys-devel/heirloom-devtools/heirloom-devtools-999999.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cvs flag-o-matic readme.gentoo-r1 toolchain-funcs + +ECVS_AUTH="pserver" +ECVS_USER="anonymous" +ECVS_SERVER="heirloom.cvs.sourceforge.net:/cvsroot/heirloom" +ECVS_MODULE="heirloom-devtools" +ECVS_PASS="" +ECVS_CVS_OPTIONS="-dP" + +DESCRIPTION="Original UNIX development tools" +HOMEPAGE="http://heirloom.sourceforge.net/devtools.html" +SRC_URI="" + +LICENSE="BSD BSD-4 CDDL" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="app-shells/heirloom-sh" +RDEPEND="${DEPEND}" + +DOC_CONTENTS=" + You may want to add /usr/5bin or /usr/ucb to \$PATH + to enable using the apps of heirloom toolchest by default. + Man pages are installed in /usr/share/man/5man/ + You may need to set \$MANPATH to access them. +" + +S="${WORKDIR}/${PN}" + +src_prepare() { + default + sed -i \ + -e 's:^\(SHELL =\) \(.*\):\1 /bin/jsh:' \ + -e 's:^\(POSIX_SHELL =\) \(.*\):\1 /bin/sh:' \ + -e "s:^\(PREFIX=\)\(.*\):\1${EPREFIX}\2:" \ + -e "s:^\(SUSBIN=\)\(.*\):\1${EPREFIX}\2:" \ + -e "s:^\(LDFLAGS=\):\1${LDFLAGS}:" \ + -e "s:^\(CFLAGS=\)\(.*\):\1${CFLAGS}:" \ + -e 's:^\(STRIP=\)\(.*\):\1true:' \ + -e "s:^\(CXX = \)\(.*\):\1$(tc-getCXX):" \ + -e "s:^\(INSTALL=\)\(.*\):\1$(which install):" \ + ./mk.config + + echo "CC=$(tc-getCC)" >> "./mk.config" +} + +src_compile() { + emake -j1 +} + +src_install() { + emake ROOT="${D}" install + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/sys-devel/heirloom-devtools/metadata.xml b/sys-devel/heirloom-devtools/metadata.xml new file mode 100644 index 000000000000..22ffeee07c23 --- /dev/null +++ b/sys-devel/heirloom-devtools/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ryao@gentoo.org</email> + <name>Richard Yao</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">heirloom</remote-id> + </upstream> +</pkgmetadata> |