diff options
author | marcus <marcus@FreeBSD.org> | 2003-02-18 04:37:21 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-02-18 04:37:21 +0800 |
commit | 3e16a60f0f38a865690f111acae72055e39fdf9c (patch) | |
tree | 0b6094c69f43c982f980a3ba9ebedbf0eb26e136 /devel | |
parent | 3437b2f114304aff411252735b69fe758778bd2e (diff) | |
download | freebsd-ports-graphics-3e16a60f0f38a865690f111acae72055e39fdf9c.tar.gz freebsd-ports-graphics-3e16a60f0f38a865690f111acae72055e39fdf9c.tar.zst freebsd-ports-graphics-3e16a60f0f38a865690f111acae72055e39fdf9c.zip |
Do not die if libgtop encounters a different OS version than the one on which
it was compiled. Instead, warn the user, and keep on going.
Submitted by: Thomas E. Zander <riggs@rrr.de>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libgtop/Makefile | 4 | ||||
-rw-r--r-- | devel/libgtop/files/patch-src_daemon_server.c | 17 | ||||
-rw-r--r-- | devel/libgtop2/Makefile | 2 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-src_daemon_server.c | 17 |
4 files changed, 37 insertions, 3 deletions
diff --git a/devel/libgtop/Makefile b/devel/libgtop/Makefile index 2626a4eb9be..39272bd6dcd 100644 --- a/devel/libgtop/Makefile +++ b/devel/libgtop/Makefile @@ -7,10 +7,10 @@ PORTNAME= libgtop PORTVERSION= 1.0.13 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} -MASTER_SITE_SUBDIR= sources/libgtop/1.0 +MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.0 MAINTAINER= gnome@FreeBSD.org diff --git a/devel/libgtop/files/patch-src_daemon_server.c b/devel/libgtop/files/patch-src_daemon_server.c new file mode 100644 index 00000000000..bf0bba5c7f2 --- /dev/null +++ b/devel/libgtop/files/patch-src_daemon_server.c @@ -0,0 +1,17 @@ +--- src/daemon/server.c.orig Mon Feb 17 15:22:19 2003 ++++ src/daemon/server.c Mon Feb 17 15:23:31 2003 +@@ -88,11 +88,12 @@ + if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) || + strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) || + strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) { +- fprintf (stderr, "Can only run on %s %s %s\n", ++ fprintf (stderr, "This libgtop was compiled on %s %s %s\n", + LIBGTOP_COMPILE_SYSTEM, + LIBGTOP_COMPILE_RELEASE, + LIBGTOP_COMPILE_MACHINE); +- _exit (1); ++ fprintf (stderr, "If you see strange problems caused by it,\n"); ++ fprintf (stderr, "you should recompile libgtop and dependent applications\n"); + } + #endif + diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile index ebfcc640961..0e0cc92b4a6 100644 --- a/devel/libgtop2/Makefile +++ b/devel/libgtop2/Makefile @@ -7,7 +7,7 @@ PORTNAME= libgtop2 PORTVERSION= 2.0.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.0 diff --git a/devel/libgtop2/files/patch-src_daemon_server.c b/devel/libgtop2/files/patch-src_daemon_server.c new file mode 100644 index 00000000000..bf0bba5c7f2 --- /dev/null +++ b/devel/libgtop2/files/patch-src_daemon_server.c @@ -0,0 +1,17 @@ +--- src/daemon/server.c.orig Mon Feb 17 15:22:19 2003 ++++ src/daemon/server.c Mon Feb 17 15:23:31 2003 +@@ -88,11 +88,12 @@ + if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) || + strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) || + strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) { +- fprintf (stderr, "Can only run on %s %s %s\n", ++ fprintf (stderr, "This libgtop was compiled on %s %s %s\n", + LIBGTOP_COMPILE_SYSTEM, + LIBGTOP_COMPILE_RELEASE, + LIBGTOP_COMPILE_MACHINE); +- _exit (1); ++ fprintf (stderr, "If you see strange problems caused by it,\n"); ++ fprintf (stderr, "you should recompile libgtop and dependent applications\n"); + } + #endif + |