pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libkver Update to version 0.2.
details: https://anonhg.NetBSD.org/pkgsrc/rev/54287b169a18
branches: trunk
changeset: 462349:54287b169a18
user: seb <seb%pkgsrc.org@localhost>
date: Tue Sep 30 19:13:30 2003 +0000
description:
Update to version 0.2.
Fix a mostly harmless bug: a utsname.machine string was added at the
end of utsname.version string.
diffstat:
pkgtools/libkver/Makefile | 4 ++--
pkgtools/libkver/files/lib/kver.c | 9 ++++-----
2 files changed, 6 insertions(+), 7 deletions(-)
diffs (55 lines):
diff -r e88b751e3dfc -r 54287b169a18 pkgtools/libkver/Makefile
--- a/pkgtools/libkver/Makefile Tue Sep 30 18:20:01 2003 +0000
+++ b/pkgtools/libkver/Makefile Tue Sep 30 19:13:30 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2003/07/21 17:14:06 martti Exp $
+# $NetBSD: Makefile,v 1.6 2003/09/30 19:13:30 seb Exp $
DISTNAME= libkver-${VERSION}
CATEGORIES= pkgtools
@@ -17,7 +17,7 @@
NO_PKG_REGISTER= # defined
NO_PACKAGE= Deinstallation is not permitted
-VERSION= 0.1
+VERSION= 0.2
ONLY_FOR_PLATFORM= NetBSD-*-*
diff -r e88b751e3dfc -r 54287b169a18 pkgtools/libkver/files/lib/kver.c
--- a/pkgtools/libkver/files/lib/kver.c Tue Sep 30 18:20:01 2003 +0000
+++ b/pkgtools/libkver/files/lib/kver.c Tue Sep 30 19:13:30 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kver.c,v 1.1.1.1 2003/07/11 14:50:37 seb Exp $ */
+/* $NetBSD: kver.c,v 1.2 2003/09/30 19:13:30 seb Exp $ */
#include <sys/types.h>
#include <sys/param.h>
@@ -8,7 +8,7 @@
#include <errno.h>
#include <string.h>
-#define KVER_VERSION_FMT "NetBSD %.6s (GENERIC) #0: %.40s root@localhost:/sys/arch/%.20s/compile/GENERIC %.20s"
+#define KVER_VERSION_FMT "NetBSD %.6s (GENERIC) #0: %.40s root@localhost:/sys/arch/%.20s/compile/GENERIC"
/* _KVER_DATE is not really the real release date but the
date of src/sys/sys/param.h's revision tagged for the release */
@@ -56,8 +56,8 @@
/* 6 chars for osrelease */
/* 40 chars for the date string */
-/* 40 chars for 2 utsname.machine */
-#define KVER_VERSION_LEN (sizeof(KVER_VERSION_FMT) + 6 + 40 + 40 + 1)
+/* 20 chars for utsname.machine */
+#define KVER_VERSION_LEN (sizeof(KVER_VERSION_FMT) + 6 + 40 + 20 + 1)
static char kver_version[KVER_VERSION_LEN] = "";
static struct utsname real_utsname;
@@ -69,7 +69,6 @@
snprintf(kver_version, KVER_VERSION_LEN, KVER_VERSION_FMT,
kver_osrelease,
kver_date,
- real_utsname.machine,
real_utsname.machine);
}
Home |
Main Index |
Thread Index |
Old Index