[csw-devel] SF.net SVN: gar:[16189] csw/mgar/pkg/inetutils/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Mon Nov 14 04:04:39 CET 2011


Revision: 16189
          http://gar.svn.sourceforge.net/gar/?rev=16189&view=rev
Author:   bdwalton
Date:     2011-11-14 03:04:39 +0000 (Mon, 14 Nov 2011)
Log Message:
-----------
inetutils/trunk: add configure args and a patch.  krb5 is broken for now. missing a header file; mail sent to upstream

Modified Paths:
--------------
    csw/mgar/pkg/inetutils/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/inetutils/trunk/files/0001-Handle-missing-sethostname-prototype-on-Solaris.patch

Modified: csw/mgar/pkg/inetutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/inetutils/trunk/Makefile	2011-11-13 22:01:17 UTC (rev 16188)
+++ csw/mgar/pkg/inetutils/trunk/Makefile	2011-11-14 03:04:39 UTC (rev 16189)
@@ -21,7 +21,18 @@
 MASTER_SITES = http://daily.josefsson.org/$(NAME)/
 DISTFILES  = $(DISTNAME).tar.gz
 
+PATCHFILES += 0001-Handle-missing-sethostname-prototype-on-Solaris.patch
+
+BUILD_DEPS += CSWlibncurses-dev
+BUILD_DEPS += CSWlibkrb5-dev
+
 CONFIGURE_ARGS = $(DIRPATHS)
+# CONFIGURE_ARGS += --enable-encryption
+# CONFIGURE_ARGS += --enable-authentication
+# CONFIGURE_ARGS += --with-krb5
+CONFIGURE_ARGS += --with-wrap=/opt/csw
+CONFIGURE_ARGS += --with-pam
+CONFIGURE_ARGS += --with-ncurses-include-dir=/opt/csw/include/ncursesw
 
 include gar/category.mk
 

Added: csw/mgar/pkg/inetutils/trunk/files/0001-Handle-missing-sethostname-prototype-on-Solaris.patch
===================================================================
--- csw/mgar/pkg/inetutils/trunk/files/0001-Handle-missing-sethostname-prototype-on-Solaris.patch	                        (rev 0)
+++ csw/mgar/pkg/inetutils/trunk/files/0001-Handle-missing-sethostname-prototype-on-Solaris.patch	2011-11-14 03:04:39 UTC (rev 16189)
@@ -0,0 +1,40 @@
+From 4320c84455c9f7e78eb2670a2e8630f87e56bbf6 Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Mon, 14 Nov 2011 02:30:34 +0100
+Subject: [PATCH] Handle missing sethostname prototype on Solaris
+
+Solaris before SOlaris 11 is missing a sethostname prototype in unistd.h.
+This causes a missing symbol error during compilation of src/hostname.c.
+
+Conditionally define this prototype as extern if building on Solaris 9 or
+10.
+
+Signed-off-by: Ben Walton <bwalton at artsci.utoronto.ca>
+---
+ src/hostname.c |   10 ++++++++++
+ 1 files changed, 10 insertions(+), 0 deletions(-)
+
+diff --git a/src/hostname.c b/src/hostname.c
+index 3974737..a11a559 100644
+--- a/src/hostname.c
++++ b/src/hostname.c
+@@ -34,6 +34,16 @@
+ #include "xgethostname.h"
+ #include "xgetdomainname.h"
+ 
++/* Solaris 9 and 10 are missing a prototype for sethostname in
++   unistd.h.  See: http://wesunsolve.net/bugid/id/6438052. We must
++   provide our own definition and make it extern, which will not be
++   lint clean but should allow compilation. */
++#if defined(__sun) || defined(__sun__)
++ #if defined(__SunOS_5_9) || defined(__SunOS_5_10)
++  extern int sethostname(char *, int);
++ #endif
++#endif
++
+ 
+ typedef struct
+ {
+-- 
+1.7.6.1
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list