[med-svn] [Git][med-team/fastdnaml][master] 3 commits: Add patch to fix FTBFS with implicit-function-declaration (Closes: #1066709)

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Sun Apr 7 10:40:59 BST 2024



Nilesh Patra pushed to branch master at Debian Med / fastdnaml


Commits:
596df407 by Nilesh Patra at 2024-04-07T14:47:19+05:30
Add patch to fix FTBFS with implicit-function-declaration (Closes: #1066709)

- - - - -
00d0112e by Nilesh Patra at 2024-04-07T14:47:38+05:30
Bump Standards-Version to 4.6.2 (no changes needed)

- - - - -
1ba1470a by Nilesh Patra at 2024-04-07T14:48:08+05:30
Upload to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/fixup-implicit-function-declaration.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+fastdnaml (1.2.2-16) unstable; urgency=medium
+
+  * Team Upload.
+  * Add patch to fix FTBFS with
+    implicit-function-declaration (Closes: #1066709)
+  * Bump Standards-Version to 4.6.2 (no changes needed)
+
+ -- Nilesh Patra <nilesh at iki.fi>  Sun, 07 Apr 2024 14:47:48 +0530
+
 fastdnaml (1.2.2-15) unstable; urgency=medium
 
   * Standards-Version: 4.5.1 (routine-update)


=====================================
debian/control
=====================================
@@ -5,7 +5,7 @@ Uploaders: Andreas Tille <tille at debian.org>,
 Section: science
 Priority: optional
 Build-Depends: debhelper-compat (= 13)
-Standards-Version: 4.5.1
+Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/med-team/fastdnaml
 Vcs-Git: https://salsa.debian.org/med-team/fastdnaml.git
 Homepage: ftp://ftp.bio.indiana.edu/molbio/evolve/fastdnaml/fastDNAml.html


=====================================
debian/patches/fixup-implicit-function-declaration.patch
=====================================
@@ -0,0 +1,63 @@
+--- a/source/fastDNAml.h
++++ b/source/fastDNAml.h
+@@ -5,6 +5,7 @@
+ #define headerDate     "March 9, 1998"
+ 
+ #ifndef dnaml_h
++#include <stdlib.h>
+ 
+ /*  Compile time switches for various updates to program:
+  *    0 gives original version
+@@ -218,7 +219,7 @@
+ 
+ #if  ANSI || MALLOC_VOID
+    void *malloc();
+-#else
++#elif !defined(__STDC__)
+    char *malloc();
+ #endif
+ 
+--- a/source/fastDNAml.c
++++ b/source/fastDNAml.c
+@@ -204,6 +204,8 @@
+ 
+ #include <stdio.h>
+ #include <math.h>
++#include <unistd.h>
++#include <string.h>
+ #include "fastDNAml.h"  /*  Requires version 1.2  */
+ 
+ #if Master || Slave
+@@ -2853,32 +2855,6 @@
+   } /* buildSimpleTree */
+ 
+ 
+-char * strchr (char *str, int chr)
+- { /* strchr */
+-    int  c;
+-
+-    while (c = *str)  {if (c == chr) return str; str++;}
+-    return  (char *) NULL;
+- } /* strchr */
+-
+-
+-char * strstr (char *str1, char *str2)
+- { /* strstr */
+-    char *s1, *s2;
+-    int  c;
+-
+-    while (*(s1 = str1)) {
+-      s2 = str2;
+-      do {
+-        if (! (c = *s2++))  return str1;
+-        } 
+-        while (*s1++ == c);
+-      str1++;
+-      }
+-    return  (char *) NULL;
+- } /* strstr */
+-
+-
+ boolean readKeyValue (char *string, char *key, char *format, void *value)
+   { /* readKeyValue */
+ 


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ Makefile.patch
 scripts.patch
 hardening.patch
 cross.patch
+fixup-implicit-function-declaration.patch



View it on GitLab: https://salsa.debian.org/med-team/fastdnaml/-/compare/45a7df96e9c18365a9aff09e55387a417ddf006f...1ba1470ac35cbc7b216893c907ac0aa43421e1d3

-- 
View it on GitLab: https://salsa.debian.org/med-team/fastdnaml/-/compare/45a7df96e9c18365a9aff09e55387a417ddf006f...1ba1470ac35cbc7b216893c907ac0aa43421e1d3
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240407/c912c7f4/attachment-0001.htm>


More information about the debian-med-commit mailing list