Source: curl
Version: 7.47.0-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

Dear curl maintainers,

as you may know, curl is needed to boostrtap a minimal Debian system
(via apt and gnupg). Thus it needs to be cross buildable. This is
currently not possible, because its Build-Depends are not even
satisfiable. It seems that three dependencies are relevant here:

 * stunnel4 is currently requested for the host architecture, because
   stunnel4 is not marked M-A:foreign and it is not clear that marking
   it M-A:foreign is correct. Fortunately, stunnel4 is only used by curl
   for testing, so we can employ the <!nocheck> build profile and stop
   caring.
 * In a similar vein, openssh-server is only used for testing. Even
   though it is already M-A:foreign, we can thus reduce the installation
   set by also marking it with <!nocheck>.
 * python is M-A:allowed, so simply saying Build-Depends: python gets
   you the host architecture python, which cannot be run during build.
   However, curl only uses python as a build tool, so we need to
   explicitly request it for the build architecture by annotating it
   with :native.

I am attaching a patch that addresses all of the points above. With my
patch applied, installing curl's Build-Depends becomes feasible. For
making it cross buildable, you also need to fix #812965.

Helmut
diff --minimal -Nru curl-7.47.0/debian/changelog curl-7.47.0/debian/changelog
--- curl-7.47.0/debian/changelog        2016-01-27 12:47:52.000000000 +0100
+++ curl-7.47.0/debian/changelog        2016-03-13 15:43:30.000000000 +0100
@@ -1,3 +1,12 @@
+curl (7.47.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross Build-Depends satisfiability: (Closes: #-1)
+    + Mark test dependency with <!nocheck> profile
+    + Mark python dependency with :native
+
+ -- Helmut Grohne <[email protected]>  Sun, 13 Mar 2016 15:41:55 +0100
+
 curl (7.47.0-1) unstable; urgency=high
 
   * New upstream release
diff --minimal -Nru curl-7.47.0/debian/control curl-7.47.0/debian/control
--- curl-7.47.0/debian/control  2016-01-27 12:47:52.000000000 +0100
+++ curl-7.47.0/debian/control  2016-03-13 15:43:42.000000000 +0100
@@ -18,10 +18,10 @@
  libssh2-1-dev,
  libssl-dev,
  libtool,
- openssh-server,
- python,
+ openssh-server <!nocheck>,
+ python:native,
  quilt,
- stunnel4,
+ stunnel4 <!nocheck>,
  zlib1g-dev
 Build-Conflicts: autoconf2.13, automake1.4
 Standards-Version: 3.9.6

Reply via email to