[eso-midas] 01/03: Replace deprecated h_addr by h_addrlist[0]

Ole Streicher olebole-guest at moszumanska.debian.org
Thu May 22 07:32:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

olebole-guest pushed a commit to branch debian
in repository eso-midas.

commit 95add3dddd8af7ac0b59732eca9e4c3ea1f3eb1f
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Thu May 22 09:18:16 2014 +0200

    Replace deprecated h_addr by h_addrlist[0]
---
 debian/changelog                       |  1 +
 debian/patches/fix_missing_haddr.patch | 14 ++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b2a4a6f..be02e2f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 eso-midas (13.09pl1.2+dfsg-2) UNRELEASED; urgency=low
 
   * Fix FTBS when $HOME is missing
+  * Fix FTBS on kfreebsd and hurd
   * Remove unneeded files
   * Put manpages into the correct secion
 
diff --git a/debian/patches/fix_missing_haddr.patch b/debian/patches/fix_missing_haddr.patch
new file mode 100644
index 0000000..73095bb
--- /dev/null
+++ b/debian/patches/fix_missing_haddr.patch
@@ -0,0 +1,14 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Replace deprecated h_addr by h_addr_list[0].
+ This fixes an FTBS on kfreebsd.
+--- a/libsrc/os/unix/osx.c
++++ b/libsrc/os/unix/osx.c
+@@ -517,7 +517,7 @@
+       (void) strcpy(messg,"osxopen: unable to open host");
+       goto error_ret0;
+       }
+-   memcpy ((char *) &pin.sin_addr, hp->h_addr, hp->h_length);
++   memcpy ((char *) &pin.sin_addr, hp->h_addr_list[0], hp->h_length);
+ 
+    if (connect (xcid, (struct sockaddr *) &pin, sizeof (pin)) < 0)
+       {
diff --git a/debian/patches/series b/debian/patches/series
index 95b3aa0..c4725dd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ system_readline.patch
 dotlockfile.patch
 dfsg-free-msg_h.patch
 fix_manpages.patch
+fix_missing_haddr.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git



More information about the debian-science-commits mailing list