pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/mkcmd Fix errno in library files. Never generate...
details: https://anonhg.NetBSD.org/pkgsrc/rev/45d2a817fc74
branches: trunk
changeset: 507042:45d2a817fc74
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Jan 25 15:19:16 2006 +0000
description:
Fix errno in library files. Never generate extern errno directly.
Bump revision.
diffstat:
devel/mkcmd/Makefile | 4 ++--
devel/mkcmd/distinfo | 17 +++++++++++++++--
devel/mkcmd/patches/patch-af | 17 ++++++++++++++++-
devel/mkcmd/patches/patch-ao | 12 ++++++++++++
devel/mkcmd/patches/patch-ap | 12 ++++++++++++
devel/mkcmd/patches/patch-aq | 12 ++++++++++++
devel/mkcmd/patches/patch-ar | 12 ++++++++++++
devel/mkcmd/patches/patch-as | 12 ++++++++++++
devel/mkcmd/patches/patch-at | 12 ++++++++++++
devel/mkcmd/patches/patch-au | 12 ++++++++++++
devel/mkcmd/patches/patch-av | 10 ++++++++++
devel/mkcmd/patches/patch-aw | 17 +++++++++++++++++
devel/mkcmd/patches/patch-ax | 12 ++++++++++++
devel/mkcmd/patches/patch-ay | 12 ++++++++++++
devel/mkcmd/patches/patch-az | 12 ++++++++++++
devel/mkcmd/patches/patch-ba | 12 ++++++++++++
16 files changed, 192 insertions(+), 5 deletions(-)
diffs (288 lines):
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/Makefile
--- a/devel/mkcmd/Makefile Wed Jan 25 15:04:30 2006 +0000
+++ b/devel/mkcmd/Makefile Wed Jan 25 15:19:16 2006 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2005/11/02 20:11:03 rillig Exp $
+# $NetBSD: Makefile,v 1.5 2006/01/25 15:19:16 joerg Exp $
#
DISTNAME= mkcmd-8.14
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://archive.progeny.com/pundits/
EXTRACT_SUFX= .tgz
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/distinfo
--- a/devel/mkcmd/distinfo Wed Jan 25 15:04:30 2006 +0000
+++ b/devel/mkcmd/distinfo Wed Jan 25 15:19:16 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2006/01/15 17:50:53 joerg Exp $
+$NetBSD: distinfo,v 1.5 2006/01/25 15:19:16 joerg Exp $
SHA1 (mkcmd-8.14.tgz) = 33342afc845db84a040f116202b880d37b9f626f
RMD160 (mkcmd-8.14.tgz) = e7e17759c936c35a810d814cf3c442a2fc5271a2
@@ -8,7 +8,7 @@
SHA1 (patch-ac) = 6ee5e497e09157fbcf4d158966af8ee86e768bcb
SHA1 (patch-ad) = cf3acdaf22930d577f13d28f2627515d78b8075b
SHA1 (patch-ae) = 8610cbecca38033386bb2427647f18c80120591e
-SHA1 (patch-af) = 03f13f98dc52c467c8ae60dddcbcf7d9818adf33
+SHA1 (patch-af) = 7ed867fbf9b8397ba56198a919d39700bc19b16c
SHA1 (patch-ag) = 99e4ede7f0784bd343e181754de0608d65023b9f
SHA1 (patch-ah) = 1738f8042db33232455d8cea0b033883312800df
SHA1 (patch-ai) = 0ce87f6636e545c5a27c3a165de32b7b39bbd664
@@ -16,3 +16,16 @@
SHA1 (patch-ak) = ed44815d12931845ab675ded6b32bda159d57af6
SHA1 (patch-al) = 27a7b986803e7392852eaa59ba7e28cf84df3be0
SHA1 (patch-am) = 87f3debc0efd4393d8ad342f39a5e0b981147cad
+SHA1 (patch-ao) = 8b19aba8505123661b86d4001584811785b4d7cd
+SHA1 (patch-ap) = cb9d80ff16d16253e4a455c28bf800102fc15116
+SHA1 (patch-aq) = 1153b3ed3a127fb67f169d251b2375962a3f6afd
+SHA1 (patch-ar) = 8bc13f851987155e46a3621145ac7e63df4c7a57
+SHA1 (patch-as) = 7e75feec21e62db4ae5c3a2f5ed5348682743be5
+SHA1 (patch-at) = e4f5a2000d046731a4cbc49adf8baf48c14fcdff
+SHA1 (patch-au) = b25b13d4808cf4a117a10c7fd94d6ca0217ff273
+SHA1 (patch-av) = 7472cf94fb70dffb04d81b2f8a0db52f99d43e15
+SHA1 (patch-aw) = 2161ec4980b54ba8920dfc96230c4a5ff369510e
+SHA1 (patch-ax) = 68c2cbf9164b5b444bf5dcf263df995a16c2e58c
+SHA1 (patch-ay) = ecf2852b9d6cd74f15f94f824bfc283225235b46
+SHA1 (patch-az) = 415373584b240217072b0969c7c817ba1b481541
+SHA1 (patch-ba) = 0205a467bd01903c8b03f6f6304ebd770d0a3bbb
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-af
--- a/devel/mkcmd/patches/patch-af Wed Jan 25 15:04:30 2006 +0000
+++ b/devel/mkcmd/patches/patch-af Wed Jan 25 15:19:16 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-af,v 1.1 2004/11/10 16:43:50 epg Exp $
+$NetBSD: patch-af,v 1.2 2006/01/25 15:19:17 joerg Exp $
--- bin/mkcmd/mkcmd.c.orig 2000-07-30 17:56:23.000000000 -0400
+++ bin/mkcmd/mkcmd.c
@@ -17,3 +17,18 @@
LIST
LIComm, /* header comments */
aLIExits[11], /* user hooks jusr before exit */
+@@ -119,14 +111,6 @@ LIST *pLITop;
+ Emit(fp, "#include %a\n", nilOR, *ppcComm, 0);
+ }
+
+-#if HAVE_SIMPLE_ERRNO
+- if (fWeGuess) {
+- if (IS_USED(CvtType('F')) || IS_USED(CvtType('D'))) {
+- Emit(fp, "extern int errno;\n", nilOR, nil, 0);
+- }
+- }
+-#endif
+-
+ #if !HAVE_STRERROR
+ if (fWeGuess) {
+ Emit(fp, "extern char *sys_errlist[];#define strerror(Me) (sys_errlist[Me])\n", nilOR, nil, 0);
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-ao
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-ao Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ao,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/cmd_source.mc.orig 2006-01-25 15:08:34.000000000 +0000
++++ lib/mkcmd/cmd_source.mc
+@@ -12,7 +12,6 @@ CMDSET *pCS;
+ {
+ register FILE *fpCmds;
+ register int iRet;
+- extern int errno;
+
+ iRet = 0;
+ while (0 != --argc) {
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-ap
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-ap Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ap,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/group.mc.orig 2006-01-25 15:00:29.000000000 +0000
++++ lib/mkcmd/group.mc
+@@ -13,7 +13,6 @@ char *pcName, *pcParam;
+ {
+ register struct group *pGEFound;
+ register char *pcScan;
+- extern int errno;
+
+ for (pcScan = pcName; '\000' != *pcScan; ++pcScan) {
+ if (!isdigit(*pcScan)) {
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-aq
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-aq Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-aq,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/host.mc.orig 2006-01-25 15:00:46.000000000 +0000
++++ lib/mkcmd/host.mc
+@@ -19,7 +19,6 @@ char *pcName, *pcParam;
+ register int iC;
+ auto struct in_addr IATemp;
+ auto int iDec;
+- extern int errno;
+
+ for (pcScan = pcName; '\000' != *pcScan; ++pcScan) {
+ if ('.' != *pcScan && !isdigit(*pcScan)) {
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-ar
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-ar Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ar,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/login.mc.orig 2006-01-25 15:01:16.000000000 +0000
++++ lib/mkcmd/login.mc
+@@ -13,7 +13,6 @@ char *pcName, *pcParam;
+ {
+ register struct passwd *pPWFound;
+ register char *pcScan;
+- extern int errno;
+
+ for (pcScan = pcName; '\000' != *pcScan; ++pcScan) {
+ if (!isdigit(*pcScan)) {
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-as
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-as Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-as,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/protocol.mc.orig 2006-01-25 15:01:29.000000000 +0000
++++ lib/mkcmd/protocol.mc
+@@ -16,7 +16,6 @@ char *pcName, *pcParam;
+ register char *pcStack;
+ register int iFudge = sizeof(long int) - 1;
+ register void *pvMem;
+- extern int errno;
+
+ for (pcStack = pcName; '\000' != *pcStack; ++pcStack) {
+ if (!isdigit(*pcStack))
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-at
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-at Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-at,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/service.mc.orig 2006-01-25 15:01:49.000000000 +0000
++++ lib/mkcmd/service.mc
+@@ -19,7 +19,6 @@ char *pcName, *pcParam;
+ register char *pcScan, *pcProto, *pcTemp;
+ register int iFudge = sizeof(long int) - 1;
+ % static char acDefProto[] = "%qK<service_cvt>2v"%;
+- extern int errno;
+
+ pcTemp = calloc((strlen(pcName)|iFudge)+1, sizeof(char));
+ (void)strcpy(pcTemp, pcName);
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-au
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-au Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-au,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/std_lex.mc.orig 2006-01-25 15:02:04.000000000 +0000
++++ lib/mkcmd/std_lex.mc
+@@ -11,7 +11,6 @@ yywrap()
+ {
+ register char *pcGot;
+ extern FILE *yyin;
+- extern int errno;
+
+ if (stdin == yyin) {
+ clearerr(stdin);
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-av
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-av Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,10 @@
+$NetBSD: patch-av,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/util_errno.m.orig 2006-01-25 15:02:22.000000000 +0000
++++ lib/mkcmd/util_errno.m
+@@ -5,5 +5,4 @@
+ from '<errno.h>'
+
+ %i
+-extern int errno;
+ %%
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-aw
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-aw Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aw,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/util_fts.mc.orig 2006-01-25 15:02:43.000000000 +0000
++++ lib/mkcmd/util_fts.mc
+@@ -3,4 +3,6 @@
+ */
+
++#include <errno.h>
++
+ /* example fts_walk routine for the fts interface (ksb)
+ * by default scan key "fts_path" (if no nodes were presented)
+@@ -13,5 +15,4 @@ int fts_opts;
+ register FTS *u_ftsp;
+ register FTSENT *p;
+- extern int errno;
+
+ if ((char **)0 == argv || (char *)0 == *argv) {
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-ax
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-ax Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ax,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/util_savegrent.mc.orig 2006-01-25 15:03:11.000000000 +0000
++++ lib/mkcmd/util_savegrent.mc
+@@ -10,7 +10,6 @@ struct group *pGRFound;
+ register void *pvMem;
+ register char *pcStack;
+ register int iFudge = sizeof(int) - 1;
+- extern int errno;
+ %@if group_argvs[1]
+ register int i;
+ register char *pcScan;
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-ay
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-ay Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ay,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/util_savehostent.mc.orig 2006-01-25 15:03:27.000000000 +0000
++++ lib/mkcmd/util_savehostent.mc
+@@ -14,7 +14,6 @@ char *pcParam;
+ register char *pcStack;
+ register int iFudge = sizeof(long int) - 1;
+ register void *pvMem;
+- extern int errno;
+
+ if ((struct hostent *)0 == pHESource) {
+ return (struct hostent *)0;
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-az
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-az Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-az,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/util_savepwent.mc.orig 2006-01-25 15:03:38.000000000 +0000
++++ lib/mkcmd/util_savepwent.mc
+@@ -10,7 +10,6 @@ struct passwd *pPWFound;
+ register void *pvMem;
+ register char *pcStack;
+ register int iFudge = sizeof(int) - 1;
+- extern int errno;
+
+ if ((struct passwd *)0 == pPWFound) {
+ return (struct passwd *)0;
diff -r 512565d49193 -r 45d2a817fc74 devel/mkcmd/patches/patch-ba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/mkcmd/patches/patch-ba Wed Jan 25 15:19:16 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ba,v 1.1 2006/01/25 15:19:17 joerg Exp $
+
+--- lib/mkcmd/util_saveservent.mc.orig 2006-01-25 15:03:49.000000000 +0000
++++ lib/mkcmd/util_saveservent.mc
+@@ -13,7 +13,6 @@ struct servent *pSEFound;
+ register char *pcStack;
+ register int iFudge = sizeof(long int) - 1;
+ register void *pvMem;
+- extern int errno;
+
+ if ((struct servent *)0 == pSEFound) {
+ return (struct servent *)0;
Home |
Main Index |
Thread Index |
Old Index