Your message dated Wed, 15 Nov 2017 21:04:31 +0000
with message-id <e1ef4rh-000hyv...@fasolo.debian.org>
and subject line Bug#876164: fixed in alpine 2.21+dfsg1-1
has caused the Debian Bug report #876164,
regarding alpine FTCBFS: many reasons
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
876164: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876164
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: alpine
Version: 2.20+dfsg1-7
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

alpine fails to cross build from source. Figuring why is a long road.
Here are the major road marks:
 * ./configure fails figuring out whether openssl is recent enough.
   After converting the check from AC_RUN_IFELSE to AC_TRY_COMPILE,
   configure succeeds.
 * When running make, the imap subdirectory somehow misses the compiler
   set up by ./configure and uses "cc" instead. Thus it fails finding
   openssl, which is only available for the host architecture. After
   passing cross compilers to make explicitly, the build proceeds.
 * It fails running help_c_gen and help_h_gen. These tools are not
   installed into the package, but only used for building. Thus they
   should be compiled with CC_FOR_BUILD rather than CC.

Finally, alpine cross builds. Please consider applying the attached
patch.

Helmut
diff --minimal -Nru alpine-2.20+dfsg1/debian/changelog 
alpine-2.20+dfsg1/debian/changelog
--- alpine-2.20+dfsg1/debian/changelog  2016-12-20 09:23:45.000000000 +0100
+++ alpine-2.20+dfsg1/debian/changelog  2017-09-19 08:45:06.000000000 +0200
@@ -1,3 +1,12 @@
+alpine (2.20+dfsg1-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Add 95_cross.patch
+    + Force cross compilers on make as they are not propagated.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 19 Sep 2017 08:45:06 +0200
+
 alpine (2.20+dfsg1-7) unstable; urgency=medium
 
   * Make the build reproducible. Thanks Chris Lamb. (Closes: #791923)
diff --minimal -Nru alpine-2.20+dfsg1/debian/control 
alpine-2.20+dfsg1/debian/control
--- alpine-2.20+dfsg1/debian/control    2016-12-20 09:18:16.000000000 +0100
+++ alpine-2.20+dfsg1/debian/control    2017-09-19 08:45:06.000000000 +0200
@@ -6,7 +6,7 @@
  Unit 193 <unit...@ubuntu.com>
 Build-Depends: debhelper (>= 9), libldap2-dev, libpam0g-dev, libncurses-dev,
  libssl1.0-dev | libssl-dev (<< 1.1), dh-autoreconf, ca-certificates, 
automake, autoconf, libtool, libkrb5-dev,
- aspell, dpkg-dev (>= 1.16.1~)
+ aspell, dpkg-dev (>= 1.16.1~), autoconf-archive
 Standards-Version: 3.9.6
 Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/alpine.git
 Vcs-Git: git://anonscm.debian.org/collab-maint/alpine.git
diff --minimal -Nru alpine-2.20+dfsg1/debian/patches/95_cross.patch 
alpine-2.20+dfsg1/debian/patches/95_cross.patch
--- alpine-2.20+dfsg1/debian/patches/95_cross.patch     1970-01-01 
01:00:00.000000000 +0100
+++ alpine-2.20+dfsg1/debian/patches/95_cross.patch     2017-09-19 
08:45:06.000000000 +0200
@@ -0,0 +1,70 @@
+From: Helmut Grohne <hel...@subdivi.de>
+Subject: make cross compilation work
+
+ * Use AC_TRY_COMPILE rather than AC_RUN_IFELSE for checking openssl.
+ * Use CC_FOR_BUILD to compile help_[ch]_gen.
+
+Index: alpine-2.20+dfsg1/configure.ac
+===================================================================
+--- alpine-2.20+dfsg1.orig/configure.ac
++++ alpine-2.20+dfsg1/configure.ac
+@@ -39,6 +39,7 @@
+ dnl CHECK PROGRAMS
+ 
+ AC_PROG_CC
++AX_PROG_CC_FOR_BUILD
+ AC_PROG_CC_STDC
+ AC_PROG_INSTALL
+ AC_PROG_MAKE_SET
+@@ -1353,22 +1354,18 @@
+ dnl Check Openssl/LibreSSL version first
+ if test "x$alpine_SSLTYPE" != "xnone" ; then
+   AC_MSG_CHECKING([Openssl library version >= 1.0.1c])
+-  AC_RUN_IFELSE(
+-      [AC_LANG_SOURCE([[
++  AC_TRY_COMPILE([
+ #include <stdio.h>
+ #include <stdlib.h>
+ #if HAVE_STDINT_H
+ #include <stdint.h>
+ #endif /* HAVE_STDINT_H */
+ #include <openssl/ssl.h>
+-int main(void) {
+-
+-      if (OPENSSL_VERSION_NUMBER >= 0x1000003f)
+-              exit(0);
+-
+-      exit(2);
+-}
+-      ]])],
++        ],[
++#if OPENSSL_VERSION_NUMBER < 0x1000003f
++#error too old
++#endif
++      ],
+       [ AC_MSG_RESULT(yes) ],
+       [ alpine_SSLTYPE="none" ])
+ 
+Index: alpine-2.20+dfsg1/pith/Makefile.am
+===================================================================
+--- alpine-2.20+dfsg1.orig/pith/Makefile.am
++++ alpine-2.20+dfsg1/pith/Makefile.am
+@@ -29,12 +29,12 @@
+       state.c status.c store.c stream.c string.c strlst.c takeaddr.c 
tempfile.c text.c \
+       thread.c adjtime.c url.c util.c helptext.c smkeys.c smime.c
+ 
+-help_c_gen$(EXEEXT): $(help_c_gen_OBJECTS) $(help_c_gen_DEPENDENCIES) 
+-      @rm -f help_c_gen$(EXEEXT)
+-      $(LINK) $(help_c_gen_OBJECTS) $(help_c_gen_LDADD)
+-help_h_gen$(EXEEXT): $(help_h_gen_OBJECTS) $(help_h_gen_DEPENDENCIES) 
+-      @rm -f help_h_gen$(EXEEXT)
+-      $(LINK) $(help_h_gen_OBJECTS) $(help_h_gen_LDADD)
++help_c_gen$(BUILD_EXEEXT): help_c_gen.c
++      @rm -f help_c_gen$(BUILD_EXEEXT)
++      $(CC_FOR_BUILD) help_c_gen.c -o help_c_gen$(BUILD_EXEEXT)
++help_h_gen$(BUILD_EXEEXT):
++      @rm -f help_h_gen$(BUILD_EXEEXT)
++      $(CC_FOR_BUILD) help_h_gen.c -o help_h_gen$(BUILD_EXEEXT)
+ 
+ helptext.c: help_c_gen pine.hlp
+       ./help_c_gen < pine.hlp > $@
diff --minimal -Nru alpine-2.20+dfsg1/debian/patches/series 
alpine-2.20+dfsg1/debian/patches/series
--- alpine-2.20+dfsg1/debian/patches/series     2016-12-20 09:23:01.000000000 
+0100
+++ alpine-2.20+dfsg1/debian/patches/series     2017-09-19 08:43:00.000000000 
+0200
@@ -5,3 +5,4 @@
 40_fix_browser_hardcoded_paths.patch
 80_remove_phone_home.patch
 90_reproducible_build.patch
+95_cross.patch
diff --minimal -Nru alpine-2.20+dfsg1/debian/rules 
alpine-2.20+dfsg1/debian/rules
--- alpine-2.20+dfsg1/debian/rules      2016-12-17 03:49:04.000000000 +0100
+++ alpine-2.20+dfsg1/debian/rules      2017-09-19 08:45:06.000000000 +0200
@@ -21,6 +21,10 @@
                             --with-krb5 \
                             --with-krb5-dir=/usr
 
+override_dh_auto_build:
+       # force cross compilers onto make as they are not propagated from 
configure
+       dh_auto_build --buildsystem=makefile
+
 override_dh_install:
        dh_install --list-missing
        # Rename pico to pico.alpine.

--- End Message ---
--- Begin Message ---
Source: alpine
Source-Version: 2.21+dfsg1-1

We believe that the bug you reported is fixed in the latest version of
alpine, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 876...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Unit 193 <unit...@ubuntu.com> (supplier of updated alpine package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 13 Nov 2017 17:09:24 -0500
Source: alpine
Binary: alpine alpine-doc alpine-pico pilot
Architecture: source
Version: 2.21+dfsg1-1
Distribution: unstable
Urgency: medium
Maintainer: Asheesh Laroia <ashe...@asheesh.org>
Changed-By: Unit 193 <unit...@ubuntu.com>
Description:
 alpine     - Text-based email client, friendly for novices but powerful
 alpine-doc - Text-based email client's documentation
 alpine-pico - Simple text editor from Alpine, a text-based email client
 pilot      - Simple file browser from Alpine, a text-based email client
Closes: 851054 862952 876164
Changes:
 alpine (2.21+dfsg1-1) unstable; urgency=medium
 .
   * New upstream version 2.21+dfsg1 (Closes: #862952)
     - Refresh patches.
   * Bump Standards-Version to 4.1.1.
   * Run wrap-and-sort -s.
   * d/control, d/watch: Update homepage to alpine.freeiz.com.
   * d/control, d/compat: Use debhelper compat 10.
   * d/control:
     - Switch to https in Vcs-*.
     - Mark alpine-doc as Multi-Arch foreign.
     - Drop requirement of libssl-dev to be 1.0. (Closes: #851054)
     - Drop explicit build-depend on auto(conf,make), dh-autoreconf and libtool.
     - Drop priority: extra from alpine-pico.
   * d/rules:
     - sha256sums no longer published, move to md5sums and update for 2.21.
     - Move from dh_install --list-missing to dh_missing --fail-missing.
     - Move installdocs override to installdocs-indep.
     - Only override dh_auto_configure with non-default options.
     - Don't verify files are there before moving, we should error out if not.
     - Drop obsolete --with autoreconf.
   * Merge d/p/30_fix_man_page_hardcoded_paths.patch and
     d/p/40_fix_filter_hardcoded_paths.patch into d/p/10_config2etc.patch.
   * Add descriptions to all patches.
   * d/control, d/p/95_cross.patch, d/rules: Fix FTCBFS.
     Thanks to Helmut Grohne for the initial patch. (Closes: #876164)
   * d/s/lintian-overrides: js file has long lines, but is sourceful.
Checksums-Sha1:
 19d4c50c9ae5ba5cf6a4f988512659901546ae42 2263 alpine_2.21+dfsg1-1.dsc
 892b16ba8c1448f5d6749d4ad9e8e609f8079c0d 4231316 alpine_2.21+dfsg1.orig.tar.xz
 6f6513ecd8d5391203ce0ddc46b1e109d2747b2c 17692 
alpine_2.21+dfsg1-1.debian.tar.xz
 7e8baeee78585b551a443dfad0b816f7ef18147d 8023 
alpine_2.21+dfsg1-1_amd64.buildinfo
Checksums-Sha256:
 ec2cde5fcf884cdd0607d1b9d58476b178e7e108263855b987adabbc0dbec9e3 2263 
alpine_2.21+dfsg1-1.dsc
 700d23bbe1ec863bf5e500e77fd3888d7c0a930b1c58b1976988ac716037ebb2 4231316 
alpine_2.21+dfsg1.orig.tar.xz
 d2587dcb9e342cd010720e186e037f860170e65a4bb3d7cd820e96f89b1a62cc 17692 
alpine_2.21+dfsg1-1.debian.tar.xz
 1a320cd08e0f6a0512d64f4fa2111b8863b6f03757598bf30bffdd202a1aca98 8023 
alpine_2.21+dfsg1-1_amd64.buildinfo
Files:
 1582125e8268e24cb3e930fb2b72a233 2263 mail optional alpine_2.21+dfsg1-1.dsc
 9da8bfdb69472e9d33dfed617b436a8b 4231316 mail optional 
alpine_2.21+dfsg1.orig.tar.xz
 0465eaf5061c6cb05282c7b2e7429768 17692 mail optional 
alpine_2.21+dfsg1-1.debian.tar.xz
 1c4c279a50029a0228b43640812689e8 8023 mail optional 
alpine_2.21+dfsg1-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAloMqIoACgkQCBa54Yx2
K62+gRAAno0lpH1v4NYXKYsUyDqH4MLBjFXQJilbednN/jB7If1+TJYbnnDODM4W
3AzNYEzhObACiq3nwKxsdOCwO9K5SkIMHZLOiWAWC5hu9JQ8PIfb1yCZkYHEbqb8
/DdtVxKj+LeuMD1+eevOqJypOh3jO/14L6ZTsGioGZaOMI9N2W1LH7esH49vQ5vc
ks3gZvNtwPXszXiFE/pCtP+rciuh5AU33jQIJfWOOMwUy/8/sVpHP8/DBGi/EZso
9hV37zKmqCFMQMy++NmFAiKrXpZlf/YZMIB4BMOqh5KfFf3fXI858mjlGbHZVTQT
eg1DwKSFcuB2elfOzh0zggLj5ciPUeXiBRsBuczQTCWMmSA2PR98oh+ZTvldOb7Q
0drcfzpyPk1o9Xhba8MMb+UKTSGFPdt6arbHvJE3FRcMEbs2+G/Nk0mQ6ViUlQv5
6K5IpWOCwQSDWH/GBpnhuvOifEIj5QuP/LuRuEIPG8HoOcnzIQo447eGqjIe95ws
W3kBR/Ud7czLp4kz2iN/UfgGW4UKA51oDoz9QrDJ6d49BKnY0IG/V+mQkPIpqpw1
nh7KrYS3UVdqI8M/vmUfx4MeCsmtcH8SU6tOz5ONN6EDOwCVYWKgEZWaQQq3Uuh7
NocG6MSsugb0xfDcZCJzeooP1ThfD+gD9OqraYNg5U3s+QfYuDg=
=fuGY
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to