pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/sfslite



Module Name:    pkgsrc
Committed By:   dholland
Date:           Sat Sep  9 19:45:46 UTC 2017

Modified Files:
        pkgsrc/devel/sfslite: distinfo
        pkgsrc/devel/sfslite/patches: patch-aa patch-async_ihash.h
Added Files:
        pkgsrc/devel/sfslite/patches: patch-async_aio.C patch-async_daemonize.C
            patch-async_dns.C patch-async_dnsparse.C patch-async_ifchg.C
            patch-async_ihash.C patch-async_myname.C patch-configure
            patch-configure.in

Log Message:
Make this build.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/sfslite/distinfo
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/devel/sfslite/patches/patch-aa
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/sfslite/patches/patch-async_aio.C \
    pkgsrc/devel/sfslite/patches/patch-async_daemonize.C \
    pkgsrc/devel/sfslite/patches/patch-async_dns.C \
    pkgsrc/devel/sfslite/patches/patch-async_dnsparse.C \
    pkgsrc/devel/sfslite/patches/patch-async_ifchg.C \
    pkgsrc/devel/sfslite/patches/patch-async_ihash.C \
    pkgsrc/devel/sfslite/patches/patch-async_myname.C \
    pkgsrc/devel/sfslite/patches/patch-configure \
    pkgsrc/devel/sfslite/patches/patch-configure.in
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/sfslite/patches/patch-async_ihash.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/sfslite/distinfo
diff -u pkgsrc/devel/sfslite/distinfo:1.5 pkgsrc/devel/sfslite/distinfo:1.6
--- pkgsrc/devel/sfslite/distinfo:1.5   Tue Nov  3 03:29:32 2015
+++ pkgsrc/devel/sfslite/distinfo       Sat Sep  9 19:45:46 2017
@@ -1,15 +1,24 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 03:29:32 agc Exp $
+$NetBSD: distinfo,v 1.6 2017/09/09 19:45:46 dholland Exp $
 
 SHA1 (sfslite-1.2.7.tar.gz) = 774c1defc74d9f354622f60aa5c038400b401c5b
 RMD160 (sfslite-1.2.7.tar.gz) = 3e72a4d6cb0975c13b51f13ff615e8a390c36e3b
 SHA512 (sfslite-1.2.7.tar.gz) = b2cd6d60a4349bdc54d973656fffdad9e4a4304dfa0cc8e27584e65bdd1359c2bd2be9552bd42fdd89475929b793509dd01589afe4cb72bb8ba14fca36ccb171
 Size (sfslite-1.2.7.tar.gz) = 1379432 bytes
-SHA1 (patch-aa) = 9c13092b1fe5e9d7c25eea9293fadbbaab096299
+SHA1 (patch-aa) = fa1f4a82d0d97375dafa972049aedc7ac0e80885
 SHA1 (patch-ab) = 0bfc67711150e5dc8eb74fba29e9abd5272e62db
 SHA1 (patch-ac) = 88294e8dc9785a68019f66d0513c6d043a6b9f2e
-SHA1 (patch-async_ihash.h) = 6ae910ad516739f04f0fd29849912c8eb457eca2
+SHA1 (patch-async_aio.C) = e35510da5504d401f9fdac6b9cb296bdb4f9b703
+SHA1 (patch-async_daemonize.C) = db816068eaee9c0096234795c725925ced6133ca
+SHA1 (patch-async_dns.C) = 6eb8ef8a772a6a83942d4335fd126717dae6e805
+SHA1 (patch-async_dnsparse.C) = 77dce63d143882a3fd531a78ef0a5b8edc48de1f
+SHA1 (patch-async_ifchg.C) = f941daa091908612a783bba57dbcf3bf92db3aaa
+SHA1 (patch-async_ihash.C) = 6365eadd3da6e765766f529311d58043a9b108ec
+SHA1 (patch-async_ihash.h) = 027b7b270804ebf11ba1d2e5b7ac26a025abfcda
 SHA1 (patch-async_itree.h) = a777c376d2e8ac2a4ffdd84ec319325edc2ebb9b
+SHA1 (patch-async_myname.C) = 0530b7a4bf43e99ff6a2ade6846db6af15fe4e6d
 SHA1 (patch-async_qhash.h) = c145936da65369dce93092df3535e6fad921d030
 SHA1 (patch-async_rwfd_c) = be0075129d6bfe3eda7f86721a8a977acd5296d2
 SHA1 (patch-async_vec.h) = 6f73867864f650de1c760228fc2f39f951554df5
+SHA1 (patch-configure) = 5fbf91e7b0d215a724814c36a55110df0f3409b8
+SHA1 (patch-configure.in) = a0f282d9a5fcd9843be8373ebe55511f8c9cad23
 SHA1 (patch-libsafeptr_sp__gc.h) = 1194e270b3869b26fce2f2fb6680f599a5dc675e

Index: pkgsrc/devel/sfslite/patches/patch-aa
diff -u pkgsrc/devel/sfslite/patches/patch-aa:1.1.1.1 pkgsrc/devel/sfslite/patches/patch-aa:1.2
--- pkgsrc/devel/sfslite/patches/patch-aa:1.1.1.1       Mon May  7 07:25:55 2012
+++ pkgsrc/devel/sfslite/patches/patch-aa       Sat Sep  9 19:45:46 2017
@@ -1,10 +1,29 @@
-$NetBSD: patch-aa,v 1.1.1.1 2012/05/07 07:25:55 agc Exp $
+$NetBSD: patch-aa,v 1.2 2017/09/09 19:45:46 dholland Exp $
 
-Old C++ warning
+Clean up %m abuse.
+XXX: third hunk's purpose is unknown.
 
---- async/myaddrs.C    2012/03/28 12:41:30     1.1
-+++ async/myaddrs.C    2012/03/28 12:42:18
-@@ -74,7 +74,7 @@
+--- async/myaddrs.C.orig       2009-02-12 13:20:42.000000000 +0000
++++ async/myaddrs.C
+@@ -41,7 +41,7 @@ myipaddrs (vec<in_addr> *res)
+   int s;
+ 
+   if ((s = socket (AF_INET, SOCK_DGRAM, 0)) < 0) {
+-    warn ("socket: %m\n");
++    warn ("socket: %s\n", strerror(errno));
+     return false;
+   }
+ 
+@@ -53,7 +53,7 @@ myipaddrs (vec<in_addr> *res)
+     xfree (ifc.ifc_buf);
+     ifc.ifc_buf = (char *) xmalloc (ifc.ifc_len);
+     if (ioctl (s, SIOCGIFCONF, &ifc) < 0) {
+-      warn ("SIOCGIFCONF: %m\n");
++      warn ("SIOCGIFCONF: %s\n", strerror(errno));
+       close (s);
+       xfree (ifc.ifc_buf);
+       return false;
+@@ -74,7 +74,7 @@ myipaddrs (vec<in_addr> *res)
    res->clear ();
    bhash<in_addr> addrs;
  
@@ -13,3 +32,14 @@ Old C++ warning
    e = p + ifc.ifc_len;
    while (p < e) {
      struct ifreq *ifrp = (struct ifreq *) p;
+@@ -88,8 +88,8 @@ myipaddrs (vec<in_addr> *res)
+     if (ifrp->ifr_addr.sa_family != AF_INET)
+       continue;
+     if (ioctl (s, SIOCGIFFLAGS, &ifr) < 0) {
+-      warn ("SIOCGIFFLAGS (%.*s): %m\n", (int) sizeof (ifr.ifr_name),
+-          ifr.ifr_name);
++      warn ("SIOCGIFFLAGS (%.*s): %s\n", (int) sizeof (ifr.ifr_name),
++          ifr.ifr_name, strerror(errno));
+       continue;
+     }
+     in_addr a = ((struct sockaddr_in *) &ifrp->ifr_addr)->sin_addr;

Index: pkgsrc/devel/sfslite/patches/patch-async_ihash.h
diff -u pkgsrc/devel/sfslite/patches/patch-async_ihash.h:1.1 pkgsrc/devel/sfslite/patches/patch-async_ihash.h:1.2
--- pkgsrc/devel/sfslite/patches/patch-async_ihash.h:1.1        Thu Mar 28 21:21:18 2013
+++ pkgsrc/devel/sfslite/patches/patch-async_ihash.h    Sat Sep  9 19:45:46 2017
@@ -1,6 +1,8 @@
-$NetBSD: patch-async_ihash.h,v 1.1 2013/03/28 21:21:18 joerg Exp $
+$NetBSD: patch-async_ihash.h,v 1.2 2017/09/09 19:45:46 dholland Exp $
 
---- async/ihash.h.orig 2013-03-25 14:13:37.000000000 +0000
+Catch up to C++ standards drift.
+
+--- async/ihash.h.orig 2009-02-23 16:26:42.000000000 +0000
 +++ async/ihash.h
 @@ -248,7 +248,7 @@ public:
    ihash () : eq (E ()), hash (H ()) {}
@@ -31,3 +33,54 @@ $NetBSD: patch-async_ihash.h,v 1.1 2013/
        ;
      return v;
    };
+@@ -287,13 +287,13 @@ public:
+     : eq1 (e1), eq2 (e2), hash (h) {}
+ 
+   void insert (V *elm)
+-    { insert_val (elm, hash (elm->*key1, elm->*key2)); }
++    { this->insert_val (elm, hash (elm->*key1, elm->*key2)); }
+ 
+   V *operator() (const K1 &k1, const K2 &k2) const {
+     V *v;
+-    for (v = lookup_val (hash (k1, k2));
++    for (v = this->lookup_val (hash (k1, k2));
+        v && !(eq1 (k1, v->*key1) && eq2 (k2, v->*key2));
+-       v = next_val (v))
++       v = this->next_val (v))
+       ;
+     return v;
+   }
+@@ -301,7 +301,7 @@ public:
+   V *nextkeq (V *v) {
+     const K1 &k1 = v->*key1;
+     const K1 &k2 = v->*key2;
+-    while ((v = next_val (v))
++    while ((v = this->next_val (v))
+          && !(eq1 (k1, v->*key1) && eq2 (k2, v->*key2)))
+       ;
+     return v;
+@@ -320,20 +320,20 @@ public:
+   shash () {}
+   shash (const E &e, const H &h) : eq (e), hash (h) {}
+ 
+-  void insert (V *elm) { insert_val (elm, hash (*elm)); }
++  void insert (V *elm) { this->insert_val (elm, hash (*elm)); }
+ 
+   V *operator[] (const V &k) const {
+     V *v;
+-    for (v = lookup_val (hash (k));
++    for (v = this->lookup_val (hash (k));
+        v && !eq (k, *v);
+-       v = next_val (v))
++       v = this->next_val (v))
+       ;
+     return v;
+   }
+ 
+   V *nextkeq (V *v) {
+     const V &k = *v;
+-    while ((v = next_val (v)) && !eq (k, *v))
++    while ((v = this->next_val (v)) && !eq (k, *v))
+       ;
+     return v;
+   }

Added files:

Index: pkgsrc/devel/sfslite/patches/patch-async_aio.C
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-async_aio.C:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-async_aio.C      Sat Sep  9 19:45:46 2017
@@ -0,0 +1,119 @@
+$NetBSD: patch-async_aio.C,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Clean up %m abuse.
+
+--- async/aio.C~       2009-02-12 13:20:42.000000000 +0000
++++ async/aio.C
+@@ -21,6 +21,7 @@
+  *
+  */
+ 
++#include <cstring>
+ #include "aiod.h"
+ 
+ aiobuf::aiobuf (aiod *d, size_t p, size_t l)
+@@ -62,7 +63,7 @@ aiod::writeq::output ()
+   wbuf.copyout (buf, wsize);
+   ssize_t n = write (wfd, buf, wsize);
+   if (n < 0)
+-    fatal ("write to aiod failed (%m)\n"); // XXX - should make aiod fail
++    fatal ("write to aiod failed (%s)\n", strerror(errno)); // XXX - should make aiod fail
+   wbuf.rembytes (n);
+   if (!wbuf.resid ())
+     fdcb (wfd, selwrite, NULL);
+@@ -81,7 +82,7 @@ aiod::writeq::sendmsg (aiomsg_t msg)
+   else {
+     ssize_t n = write (wfd, &msg, sizeof (msg));
+     if (n < 0)
+-      fatal ("write to aiod failed (%m)\n");
++      fatal ("write to aiod failed (%s)\n", strerror(errno));
+     if (n != sizeof (msg)) {
+       // Writes less than PIPE_BUF were supposed to be atomic
+       warn ("aiod::writeq::sendmsg: partial write (%d bytes)\n", (int) n);
+@@ -98,7 +99,7 @@ aiod::daemon::launch (str path, int shmf
+ 
+   int fds[2];
+   if (socketpair (AF_UNIX, SOCK_STREAM, 0, fds) < 0)
+-    fatal ("aiod::daemon::launch: socketpair failed: %m\n");
++    fatal ("aiod::daemon::launch: socketpair failed: %s\n", strerror(errno));
+   wq.wfd = fd = fds[0];
+   close_on_exec (fd);
+ 
+@@ -166,24 +167,24 @@ aiod::aiod (u_int nproc, ssize_t shmsize
+       xfree (temp);
+     }
+   if (!tmpfile)
+-    fatal ("aiod: could not create temporary file: %m\n");
++    fatal ("aiod: could not create temporary file: %s\n", strerror(errno));
+   umask (m);
+   close_on_exec (shmfd);
+   if (ftruncate (shmfd, shmmax) < 0)
+-    fatal ("aiod: could not grow shared mem file (%m)\n");
++    fatal ("aiod: could not grow shared mem file (%s)\n", strerror(errno));
+   struct stat sb;
+   if (fstat (shmfd, &sb) < 0)
+-    fatal ("fstat (%s): %m\n", tmpfile.cstr ());
++    fatal ("fstat (%s): %s\n", tmpfile.cstr (), strerror(errno));
+ 
+   shmbuf = static_cast<char *>
+     (mmap (NULL, (size_t) shmmax, PROT_READ|PROT_WRITE,
+          MAP_FILE|MAP_SHARED, shmfd, 0));
+   if (shmbuf == (char *) MAP_FAILED)
+-    fatal ("aiod: could not mmap shared mem file (%m)\n");
++    fatal ("aiod: could not mmap shared mem file (%s)\n", strerror(errno));
+ 
+   int fds[2];
+   if (pipe (fds) < 0)
+-    fatal ("aiod: pipe syscall failed: %m\n");
++    fatal ("aiod: pipe syscall failed: %s\n", strerror(errno));
+   wq.wfd = fds[1];
+   close_on_exec (wq.wfd);
+   int rfd = fds[0];
+@@ -201,10 +202,10 @@ aiod::aiod (u_int nproc, ssize_t shmsize
+      * wherever possible we use flock as it is faster.)  */
+     int fd = ::open (tmpfile, O_RDWR);
+     if (fd < 0)
+-      fatal ("cannot reopen %s: %m\n", tmpfile.cstr ());
++      fatal ("cannot reopen %s: %s\n", tmpfile.cstr (), strerror(errno));
+     struct stat sb2;
+     if (fstat (fd, &sb2) < 0)
+-      fatal ("fstat (%s): %m\n", tmpfile.cstr ());
++      fatal ("fstat (%s): %s\n", tmpfile.cstr (), strerror(errno));
+     if (sb.st_dev != sb2.st_dev || sb.st_ino != sb2.st_ino)
+       fatal ("aiod: somone tampered with %s\n", tmpfile.cstr ());
+ 
+@@ -223,14 +224,14 @@ aiod::aiod (u_int nproc, ssize_t shmsize
+    * consuming disk space to make sure it gets garbage collected
+    * properly.  */
+   if (::unlink (tmpfile) < 0)
+-    fatal ("aiod: unlink (%s): %m\n", tmpfile.cstr ());
++    fatal ("aiod: unlink (%s): %s\n", tmpfile.cstr (), strerror(errno));
+ }
+ 
+ aiod::~aiod ()
+ {
+   fail ();
+   if (munmap (shmbuf, shmlen) < 0)
+-    warn ("~aiod could not unmap shared mem: %m\n");
++    warn ("~aiod could not unmap shared mem: %s\n", strerror(errno));
+   close (shmfd);
+   delete[] dv;
+ }
+@@ -267,7 +268,7 @@ aiod::input (int i)
+   ssize_t n = read (dv[i].fd, buf, sizeof (buf));
+   if (n <= 0) {
+     if (n < 0)
+-      warn ("aiod: read: %m\n");
++      warn ("aiod: read: %s\n", strerror(errno));
+     else
+       warn ("aiod: EOF\n");
+     fail ();
+@@ -469,7 +470,7 @@ aiod::bufalloc_cb2 (size_t inc, ptr<aiob
+     bb.settotsize (shmlen + inc);
+     shmlen = bb.gettotsize ();
+     if (shmpin && mlock (shmbuf + oshmlen, shmlen - oshmlen) < 0)
+-      warn ("could not pin aiod shared memory: %m\n");
++      warn ("could not pin aiod shared memory: %s\n", strerror(errno));
+     bufwake ();
+   }
+ }
Index: pkgsrc/devel/sfslite/patches/patch-async_daemonize.C
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-async_daemonize.C:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-async_daemonize.C        Sat Sep  9 19:45:46 2017
@@ -0,0 +1,93 @@
+$NetBSD: patch-async_daemonize.C,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Clean up %m abuse.
+
+--- async/daemonize.C~ 2009-02-12 13:20:42.000000000 +0000
++++ async/daemonize.C
+@@ -21,6 +21,7 @@
+  *
+  */
+ 
++#include <cstring>
+ #include "async.h"
+ 
+ str syslog_priority ("daemon.notice");
+@@ -31,7 +32,7 @@ start_log_to_file (const str &line, cons
+   int fd;
+   int n;
+   if ((fd = open (logfile.cstr (), flags, m)) < 0) {
+-    warn ("%s: %m\n", logfile.cstr ());
++    warn ("%s: %s\n", logfile.cstr (), strerror(errno));
+     fd = errfd;
+   } else {
+     warn << "Logging via logfile: " << logfile << "\n";
+@@ -65,7 +66,7 @@ start_logger (const str &priority, const
+   pid_t pid;
+   int status;
+   if ((pid = spawn (PATH_LOGGER, av, 0, 0, errfd)) < 0) {
+-    warn ("%s: %m\n", PATH_LOGGER);
++    warn ("%s: %s\n", PATH_LOGGER, strerror(errno));
+     return start_log_to_file (line, logfile, flags, mode);
+   } 
+   if (waitpid (pid, &status, 0) <= 0 || !WIFEXITED (status) || 
+@@ -74,7 +75,7 @@ start_logger (const str &priority, const
+ 
+   int fds[2];
+   if (socketpair (AF_UNIX, SOCK_STREAM, 0, fds) < 0)
+-    fatal ("socketpair: %m\n");
++    fatal ("socketpair: %s\n", strerror(errno));
+   close_on_exec (fds[0]);
+   if (fds[1] != 0)
+     close_on_exec (fds[1]);
+@@ -84,7 +85,7 @@ start_logger (const str &priority, const
+     close (fds[1]);
+     return fds[0];
+   } else 
+-    warn ("%s: %m\n", PATH_LOGGER);
++    warn ("%s: %s\n", PATH_LOGGER, strerror(errno));
+ #endif /* PATH_LOGGER */
+   return start_log_to_file (line, logfile, flags, mode);
+ }
+@@ -103,7 +104,7 @@ start_logger ()
+     close (fd);
+ 
+   if (socketpair (AF_UNIX, SOCK_STREAM, 0, fds) < 0)
+-    fatal ("socketpair: %m\n");
++    fatal ("socketpair: %s\n", strerror(errno));
+   close_on_exec (fds[0]);
+   if (fds[1] != 0)
+     close_on_exec (fds[1]);
+@@ -113,7 +114,7 @@ start_logger ()
+     if (fds[0] != errfd) {
+       err_flush ();           // XXX - we shouldn't depend on aerr.C
+       if (dup2 (fds[0], errfd) < 0)
+-      fatal ("dup2: %m\n");
++      fatal ("dup2: %s\n", strerror(errno));
+       close (fds[0]);
+     }
+     if (errfd != 1)
+@@ -121,7 +122,7 @@ start_logger ()
+     return;
+   }
+   else
+-    warn ("%s: %m\n", PATH_LOGGER);
++    warn ("%s: %s\n", PATH_LOGGER, strerror(errno));
+ #endif /* PATH_LOGGER */
+   
+   /* No logger, at least send chatter to stdout rather than stderr, so
+@@ -161,13 +162,13 @@ daemonize (const str &nm)
+   default:
+     _exit (0);
+   case -1:
+-    fatal ("fork: %m\n");
++    fatal ("fork: %s\n", strerror(errno));
+   case 0:
+     break;
+   }
+     
+   if (setsid () == -1)
+-    fatal ("setsid: %m\n");
++    fatal ("setsid: %s\n", strerror(errno));
+   if (!builddir) {
+     start_logger ();
+     str path = strbuf () << PIDDIR << "/" << pidfilebase << ".pid";
Index: pkgsrc/devel/sfslite/patches/patch-async_dns.C
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-async_dns.C:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-async_dns.C      Sat Sep  9 19:45:46 2017
@@ -0,0 +1,40 @@
+$NetBSD: patch-async_dns.C,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Clean up %m abuse.
+
+--- async/dns.C~       2009-02-12 13:20:42.000000000 +0000
++++ async/dns.C
+@@ -156,13 +156,13 @@ resolver::udpinit ()
+   udpsock = NULL;
+   int fd = socket (addr->sa_family, SOCK_DGRAM, 0);
+   if (fd < 0) {
+-    warn ("resolver::udpsock: socket: %m\n");
++    warn ("resolver::udpsock: socket: %s\n", strerror(errno));
+     return false;
+   }
+   make_async (fd);
+   close_on_exec (fd);
+   if (connect (fd, addr, addrlen) < 0) {
+-    warn ("resolver::udpsock: connect: %m\n");
++    warn ("resolver::udpsock: connect: %s\n", strerror(errno));
+     close (fd);
+     return false;
+   }
+@@ -177,7 +177,7 @@ resolver::tcpinit ()
+   tcpsock = NULL;
+   int fd = socket (addr->sa_family, SOCK_STREAM, 0);
+   if (fd < 0) {
+-    warn ("resolver::tcpsock: socket: %m\n");
++    warn ("resolver::tcpsock: socket: %s\n", strerror(errno));
+     return false;
+   }
+   make_async (fd);
+@@ -415,7 +415,7 @@ resolv_conf::reload_cb (ref<bool> d, boo
+   reload_lock = false;
+   last_reload = sfs_get_timenow();
+   if (!newres) {
+-    warn ("resolv_conf::reload_cb: fork: %m\n");
++    warn ("resolv_conf::reload_cb: fork: %s\n", strerror(errno));
+     setsock (true);
+     return;
+   }
Index: pkgsrc/devel/sfslite/patches/patch-async_dnsparse.C
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-async_dnsparse.C:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-async_dnsparse.C Sat Sep  9 19:45:46 2017
@@ -0,0 +1,25 @@
+$NetBSD: patch-async_dnsparse.C,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Fix up illegal pointer aliasing.
+
+--- async/dnsparse.C~  2009-02-12 13:20:42.000000000 +0000
++++ async/dnsparse.C
+@@ -757,10 +757,15 @@ printaddrs (const char *msg, ptr<hostent
+ void
+ printhints (addrhint **hpp)
+ {
+-  for (; *hpp; hpp++)
+-    if ((*hpp)->h_addrtype == AF_INET)
++  in_addr ia;
++
++  for (; *hpp; hpp++) {
++    if ((*hpp)->h_addrtype == AF_INET) {
++      memcpy(&ia, (*hpp)->h_address, sizeof(ia));
+       printf ("    (hint:  %s %s)\n", (*hpp)->h_name,
+-            inet_ntoa (*(in_addr *) (*hpp)->h_address));
++            inet_ntoa (ia));
++    }
++  }
+ }
+ 
+ void
Index: pkgsrc/devel/sfslite/patches/patch-async_ifchg.C
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-async_ifchg.C:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-async_ifchg.C    Sat Sep  9 19:45:46 2017
@@ -0,0 +1,23 @@
+$NetBSD: patch-async_ifchg.C,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Clean up %m abuse.
+
+--- async/ifchg.C~     2009-02-12 13:20:42.000000000 +0000
++++ async/ifchg.C
+@@ -21,6 +21,7 @@
+  *
+  */
+ 
++#include <cstring>
+ #include "async.h"
+ #include "dns.h"
+ #include "list.h"
+@@ -74,7 +75,7 @@ ifchgcb (cbv cb)
+ {
+   if (!lazy) {
+     if (!myipaddrs (&ifchg_addrs))
+-      fatal ("myipaddrs: %m\n");
++      fatal ("myipaddrs: %s\n", strerror(errno));
+     lazy = lazycb (60, wrap (ifchgcb_test));
+   }
+   ifchgcb_t *chg = New ifchgcb_t (cb);
Index: pkgsrc/devel/sfslite/patches/patch-async_ihash.C
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-async_ihash.C:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-async_ihash.C    Sat Sep  9 19:45:46 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-async_ihash.C,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Use legal C++ syntax.
+
+--- async/ihash.C~     2009-02-23 16:26:42.000000000 +0000
++++ async/ihash.C
+@@ -53,7 +53,7 @@ _ihash_grow (_ihash_table *htp, const si
+       nbuckets = 3;
+   }
+   
+-  ntab = New (void * [nbuckets]);
++  ntab = New void * [nbuckets];
+   bzero (ntab, nbuckets * sizeof (*ntab));
+ 
+   for (i = 0; i < htp->buckets; i++)
Index: pkgsrc/devel/sfslite/patches/patch-async_myname.C
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-async_myname.C:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-async_myname.C   Sat Sep  9 19:45:46 2017
@@ -0,0 +1,23 @@
+$NetBSD: patch-async_myname.C,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Clean up %m abuse.
+
+--- async/myname.C~    2009-02-12 13:20:42.000000000 +0000
++++ async/myname.C
+@@ -21,6 +21,7 @@
+  *
+  */
+ 
++#include <cstring>
+ #include "dns.h"
+ 
+ str
+@@ -42,7 +43,7 @@ myname ()
+   char namebuf[MAXHOSTNAMELEN+1];
+   namebuf[MAXHOSTNAMELEN] = '\0';
+   if (gethostname (namebuf, MAXHOSTNAMELEN) < 0)
+-    panic ("gethostname: %m\n");
++    panic ("gethostname: %s\n", strerror(errno));
+ 
+   if (strchr (namebuf, '.'))
+     return namebuf;
Index: pkgsrc/devel/sfslite/patches/patch-configure
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-configure:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-configure        Sat Sep  9 19:45:46 2017
@@ -0,0 +1,17 @@
+$NetBSD: patch-configure,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Don't trash LDFLAGS.
+
+--- configure~ 2009-06-09 14:29:57.000000000 +0000
++++ configure
+@@ -35514,9 +35514,9 @@ for flag in $LDFLAGS; do
+       LIBAPM=
+       new_LDFLAGS="$new_LDFLAGS -all-static"
+     else
+-      new_LDFLAGS=" $flag"
++      new_LDFLAGS="$new_LDFLAGS $flag"
+     fi
+ done
+ LDFLAGS="$new_LDFLAGS"
+ 
+ { $as_echo "$as_me:$LINENO: checking for MAP_NOSYNC option" >&5
Index: pkgsrc/devel/sfslite/patches/patch-configure.in
diff -u /dev/null pkgsrc/devel/sfslite/patches/patch-configure.in:1.1
--- /dev/null   Sat Sep  9 19:45:46 2017
+++ pkgsrc/devel/sfslite/patches/patch-configure.in     Sat Sep  9 19:45:46 2017
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure.in,v 1.1 2017/09/09 19:45:46 dholland Exp $
+
+Don't trash LDFLAGS.
+
+--- configure.in~      2009-06-09 14:29:36.000000000 +0000
++++ configure.in
+@@ -347,7 +347,7 @@ for flag in $LDFLAGS; do
+       LIBAPM=
+       new_LDFLAGS="$new_LDFLAGS -all-static"
+     else
+-      new_LDFLAGS=" $flag"
++      new_LDFLAGS="$new_LDFLAGS $flag"
+     fi
+ done
+ LDFLAGS="$new_LDFLAGS"



Home | Main Index | Thread Index | Old Index