I am uploading a NMU to DELAYED/10 in order to fix this.
Please find the debdiff attached.
diff -Nru asmail-2.1/asmail.c asmail-2.1/asmail.c
--- asmail-2.1/asmail.c 2023-10-02 22:56:43.000000000 +0200
+++ asmail-2.1/asmail.c 2007-04-09 09:46:38.000000000 +0200
@@ -70,10 +70,6 @@
  * Set up the defaults that cannot be determined at compile time.
  */
 void defaults() {
-       if (getenv("HOME") == NULL) {
-               fprintf(stderr, "missing HOME variable\n");
-               exit(1);
-       }
        strncpy(config_file_name, (char *) getenv("HOME"), MAX_INPUT_LENGTH);
        strncat(config_file_name, "/", 
MAX_INPUT_LENGTH-strlen(config_file_name));
        strncat(config_file_name, RCFILE, 
MAX_INPUT_LENGTH-strlen(config_file_name));
diff -Nru asmail-2.1/asmailrc.sample asmail-2.1/asmailrc.sample
--- asmail-2.1/asmailrc.sample  2023-10-02 22:56:43.000000000 +0200
+++ asmail-2.1/asmailrc.sample  2007-02-27 19:19:38.000000000 +0100
@@ -38,8 +38,8 @@
                # animation refresh rate in 1/100 sec
                refresh 10
                # xpm picture files
-               frame none
-               #frame 
/usr/local/share/afterstep/desktop/icons/16bpp/ASBBlockTransparent.xpm
+               #frame none
+               frame 
/usr/local/share/afterstep/desktop/icons/16bpp/ASBBlockTransparent.xpm
                nomail /usr/local/share/asmail/pixmaps/e-no.xpm
                old /usr/local/share/asmail/pixmaps/e0.xpm
                new /usr/local/share/asmail/pixmaps/e1.xpm
diff -Nru asmail-2.1/autoconf/config.h.in asmail-2.1/autoconf/config.h.in
--- asmail-2.1/autoconf/config.h.in     2023-10-02 22:56:43.000000000 +0200
+++ asmail-2.1/autoconf/config.h.in     2003-06-23 06:44:04.000000000 +0200
@@ -13,7 +13,7 @@
 #undef HAVE_MACHINE_SOUNDCARD_H
 
 /* Define if you have the <openssl/ssl.h> header file.  */
-//#undef HAVE_OPENSSL_SSL_H
+#undef HAVE_OPENSSL_SSL_H
 
 /* Define if you have the <pthread.h> header file.  */
 #undef HAVE_PTHREAD_H
diff -Nru asmail-2.1/configure asmail-2.1/configure
--- asmail-2.1/configure        2023-10-02 22:56:43.000000000 +0200
+++ asmail-2.1/configure        2007-04-09 09:50:33.000000000 +0200
@@ -2000,7 +2000,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-#LIBS="-lICE $X_EXTRA_LIBS $LIBS"
+LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 2006 "configure"
 #include "confdefs.h"
@@ -2028,7 +2028,7 @@
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-#  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 else
   echo "$ac_t""no" 1>&6
 fi
@@ -2745,7 +2745,7 @@
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-#  SSL_LIB="-lssl" HAVESSL="-lssl"
+  SSL_LIB="-lssl" HAVESSL="-lssl"
 else
   echo "$ac_t""no" 1>&6
 fi
diff -Nru asmail-2.1/debian/changelog asmail-2.1/debian/changelog
--- asmail-2.1/debian/changelog 2023-10-02 22:56:43.000000000 +0200
+++ asmail-2.1/debian/changelog 2023-10-02 22:53:08.000000000 +0200
@@ -1,3 +1,10 @@
+asmail (2.1-5.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Convert to source format 3.0 (closes: #1007274)
+
+ -- Bastian Germann <b...@debian.org>  Mon, 02 Oct 2023 22:53:08 +0200
+
 asmail (2.1-5) unstable; urgency=medium
 
   * Fix FTCBFS: Export a suitable CC for ./configure. (closes: #928322)
diff -Nru asmail-2.1/debian/patches/debian.patch 
asmail-2.1/debian/patches/debian.patch
--- asmail-2.1/debian/patches/debian.patch      1970-01-01 01:00:00.000000000 
+0100
+++ asmail-2.1/debian/patches/debian.patch      2023-10-02 22:53:08.000000000 
+0200
@@ -0,0 +1,86 @@
+--- asmail-2.1.orig/asmail.c
++++ asmail-2.1/asmail.c
+@@ -70,6 +70,10 @@ static void err_printf(char const *tmpl,
+  * Set up the defaults that cannot be determined at compile time.
+  */
+ void defaults() {
++      if (getenv("HOME") == NULL) {
++              fprintf(stderr, "missing HOME variable\n");
++              exit(1);
++      }
+       strncpy(config_file_name, (char *) getenv("HOME"), MAX_INPUT_LENGTH);
+       strncat(config_file_name, "/", 
MAX_INPUT_LENGTH-strlen(config_file_name));
+       strncat(config_file_name, RCFILE, 
MAX_INPUT_LENGTH-strlen(config_file_name));
+--- asmail-2.1.orig/asmailrc.sample
++++ asmail-2.1/asmailrc.sample
+@@ -38,8 +38,8 @@ x11 {
+               # animation refresh rate in 1/100 sec
+               refresh 10
+               # xpm picture files
+-              #frame none
+-              frame 
/usr/local/share/afterstep/desktop/icons/16bpp/ASBBlockTransparent.xpm
++              frame none
++              #frame 
/usr/local/share/afterstep/desktop/icons/16bpp/ASBBlockTransparent.xpm
+               nomail /usr/local/share/asmail/pixmaps/e-no.xpm
+               old /usr/local/share/asmail/pixmaps/e0.xpm
+               new /usr/local/share/asmail/pixmaps/e1.xpm
+--- asmail-2.1.orig/autoconf/config.h.in
++++ asmail-2.1/autoconf/config.h.in
+@@ -13,7 +13,7 @@
+ #undef HAVE_MACHINE_SOUNDCARD_H
+ 
+ /* Define if you have the <openssl/ssl.h> header file.  */
+-#undef HAVE_OPENSSL_SSL_H
++//#undef HAVE_OPENSSL_SSL_H
+ 
+ /* Define if you have the <pthread.h> header file.  */
+ #undef HAVE_PTHREAD_H
+--- asmail-2.1.orig/configure
++++ asmail-2.1/configure
+@@ -2000,7 +2000,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_save_LIBS="$LIBS"
+-LIBS="-lICE $X_EXTRA_LIBS $LIBS"
++#LIBS="-lICE $X_EXTRA_LIBS $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 2006 "configure"
+ #include "confdefs.h"
+@@ -2028,7 +2028,7 @@ LIBS="$ac_save_LIBS"
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+-  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
++#  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+@@ -2745,7 +2745,7 @@ LIBS="$ac_save_LIBS"
+ fi
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+-  SSL_LIB="-lssl" HAVESSL="-lssl"
++#  SSL_LIB="-lssl" HAVESSL="-lssl"
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+--- asmail-2.1.orig/gui.c
++++ asmail-2.1/gui.c
+@@ -284,7 +284,7 @@ void draw_window(Window win) {
+               }
+               if ( x11_set.old && x11_set.new ) {
+                       sprintf(&NumOfMsg.chars[strlen(NumOfMsg.chars)], 
+-                                      x11_set.delimiter);
++                                "%s", x11_set.delimiter);
+               }
+               if ( x11_set.old ) {
+                       if ( 0 != o )
+@@ -323,7 +323,7 @@ void draw_window(Window win) {
+                       }
+                       if ( x11_set.old && x11_set.new ) {
+                               sprintf(&NumOfMsg.chars[strlen(NumOfMsg.chars)],
+-                                              x11_set.delimiter);
++                                              "%s", x11_set.delimiter);
+                       }
+                       if ( x11_set.old ) {
+                               if ( 0 != mb->ctotal )
diff -Nru asmail-2.1/debian/patches/series asmail-2.1/debian/patches/series
--- asmail-2.1/debian/patches/series    1970-01-01 01:00:00.000000000 +0100
+++ asmail-2.1/debian/patches/series    2023-10-02 22:53:08.000000000 +0200
@@ -0,0 +1 @@
+debian.patch
diff -Nru asmail-2.1/debian/source/format asmail-2.1/debian/source/format
--- asmail-2.1/debian/source/format     1970-01-01 01:00:00.000000000 +0100
+++ asmail-2.1/debian/source/format     2023-10-02 22:53:08.000000000 +0200
@@ -0,0 +1 @@
+3.0 (quilt)
diff -Nru asmail-2.1/gui.c asmail-2.1/gui.c
--- asmail-2.1/gui.c    2023-10-02 22:56:43.000000000 +0200
+++ asmail-2.1/gui.c    2007-02-27 19:19:38.000000000 +0100
@@ -284,7 +284,7 @@
                }
                if ( x11_set.old && x11_set.new ) {
                        sprintf(&NumOfMsg.chars[strlen(NumOfMsg.chars)], 
-                                "%s", x11_set.delimiter);
+                                       x11_set.delimiter);
                }
                if ( x11_set.old ) {
                        if ( 0 != o )
@@ -323,7 +323,7 @@
                        }
                        if ( x11_set.old && x11_set.new ) {
                                sprintf(&NumOfMsg.chars[strlen(NumOfMsg.chars)],
-                                               "%s", x11_set.delimiter);
+                                               x11_set.delimiter);
                        }
                        if ( x11_set.old ) {
                                if ( 0 != mb->ctotal )

Reply via email to