Your message dated Sat, 14 Sep 2019 08:52:11 +0000
with message-id <[email protected]>
and subject line Bug#939618: fixed in tevent 0.10.1-2
has caused the Debian Bug report #939618,
regarding tevent FTCBFS: multiple 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 [email protected]
immediately.)


-- 
939618: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939618
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: tevent
Version: 0.9.39-2
Tags: patch
User: [email protected]
Usertags: cross-satisfiability ftcbfs

tevent fails to cross build from source for many reasons.

1. The python3 build dependency is not installable, because it is
   interpreted as a host dependency. We really want a build architecture
   python here for running waf though, so it should be annotated with
   :any or :native.
2. waf tries performing a native build, because the relevant environment
   variables are not set up. One should set CC and PKGCONFIG (not
   the usual PKG_CONFIG) for tevent.
3. waf tries running a simple hello world program.
4. waf performs sizeof checks by running programs.
5. waf has a mandatory run test for determining whether mkstemp works.
6. probably more

The attached patch fixes 1-4. I don't know a good solution for 5. As
such it is an incremental step towards cross building tevent. Please
consider applying it and close this bug when doing so.

Helmut
diff --minimal -Nru tevent-0.9.39/debian/changelog 
tevent-0.9.39/debian/changelog
--- tevent-0.9.39/debian/changelog      2019-08-29 14:43:48.000000000 +0200
+++ tevent-0.9.39/debian/changelog      2019-09-06 21:41:32.000000000 +0200
@@ -1,3 +1,14 @@
+tevent (0.9.39-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve cross building. (Closes: #-1)
+    + Annotate the python3 Build-Depends with :any.
+    + Export CC and PKGCONFIG for waf.
+    + cross.patch: don't run an unnecessary hello world test
+    + cross.patch: use compile-only checks for sizeof validation
+
+ -- Helmut Grohne <[email protected]>  Fri, 06 Sep 2019 21:41:32 +0200
+
 tevent (0.9.39-2) unstable; urgency=medium
 
   * Upload to unstable
diff --minimal -Nru tevent-0.9.39/debian/control tevent-0.9.39/debian/control
--- tevent-0.9.39/debian/control        2019-08-29 14:05:41.000000000 +0200
+++ tevent-0.9.39/debian/control        2019-09-06 21:41:30.000000000 +0200
@@ -7,7 +7,7 @@
                libaio-dev [linux-any],
                libtalloc-dev (>= 2.1.16~),
                pkg-config,
-               python3
+               python3:any
 Rules-Requires-Root: no
 Standards-Version: 4.4.0
 Homepage: https://tevent.samba.org/
diff --minimal -Nru tevent-0.9.39/debian/patches/cross.patch 
tevent-0.9.39/debian/patches/cross.patch
--- tevent-0.9.39/debian/patches/cross.patch    1970-01-01 01:00:00.000000000 
+0100
+++ tevent-0.9.39/debian/patches/cross.patch    2019-09-06 21:41:32.000000000 
+0200
@@ -0,0 +1,55 @@
+--- tevent-0.9.39.orig/buildtools/wafsamba/wscript
++++ tevent-0.9.39/buildtools/wafsamba/wscript
+@@ -298,7 +298,7 @@
+     conf.CHECK_CODE('printf("hello world")',
+                     define='HAVE_SIMPLE_C_PROG',
+                     mandatory=True,
+-                    execute=True,
++                    execute=False,
+                     headers='stdio.h',
+                     msg='Checking simple C program')
+ 
+--- tevent-0.9.39.orig/buildtools/wafsamba/samba_conftests.py
++++ tevent-0.9.39/buildtools/wafsamba/samba_conftests.py
+@@ -86,9 +86,9 @@
+     '''see what we need for largefile support'''
+     getconf_cflags = conf.CHECK_COMMAND(['getconf', 'LFS_CFLAGS']);
+     if getconf_cflags is not False:
+-        if (conf.CHECK_CODE('if (sizeof(off_t) < 8) return 1',
++        if (conf.CHECK_CODE('char dummy[(sizeof(off_t) < 8) ? -1 : 1',
+                             define='WORKING_GETCONF_LFS_CFLAGS',
+-                            execute=True,
++                            execute=False,
+                             cflags=getconf_cflags,
+                             msg='Checking getconf large file support flags 
work')):
+             conf.ADD_CFLAGS(getconf_cflags)
+@@ -101,23 +101,23 @@
+                     else:
+                         conf.DEFINE(flag_split[0], flag_split[1])
+ 
+-    if conf.CHECK_CODE('if (sizeof(off_t) < 8) return 1',
++    if conf.CHECK_CODE('char dummy[(sizeof(off_t) < 8) ? -1 : 1',
+                        define,
+-                       execute=True,
++                       execute=False,
+                        msg='Checking for large file support without 
additional flags'):
+         return True
+ 
+-    if conf.CHECK_CODE('if (sizeof(off_t) < 8) return 1',
++    if conf.CHECK_CODE('char dummy[(sizeof(off_t) < 8) ? -1 : 1]',
+                        define,
+-                       execute=True,
++                       execute=False,
+                        cflags='-D_FILE_OFFSET_BITS=64',
+                        msg='Checking for -D_FILE_OFFSET_BITS=64'):
+         conf.DEFINE('_FILE_OFFSET_BITS', 64)
+         return True
+ 
+-    if conf.CHECK_CODE('if (sizeof(off_t) < 8) return 1',
++    if conf.CHECK_CODE('char dummy[(sizeof(off_t) < 8) ? -1 : 1]',
+                        define,
+-                       execute=True,
++                       execute=False,
+                        cflags='-D_LARGE_FILES',
+                        msg='Checking for -D_LARGE_FILES'):
+         conf.DEFINE('_LARGE_FILES', 1)
diff --minimal -Nru tevent-0.9.39/debian/patches/series 
tevent-0.9.39/debian/patches/series
--- tevent-0.9.39/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ tevent-0.9.39/debian/patches/series 2019-09-06 21:41:32.000000000 +0200
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru tevent-0.9.39/debian/rules tevent-0.9.39/debian/rules
--- tevent-0.9.39/debian/rules  2019-08-29 13:31:30.000000000 +0200
+++ tevent-0.9.39/debian/rules  2019-09-06 21:41:32.000000000 +0200
@@ -1,5 +1,10 @@
 #!/usr/bin/make -f
 
+-include /usr/share/dpkg/buildtools.mk
+export CC
+PKG_CONFIG ?= pkg-config
+export PKGCONFIG=${PKG_CONFIG}
+
 CFLAGS = -g -Wall
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))

--- End Message ---
--- Begin Message ---
Source: tevent
Source-Version: 0.10.1-2

We believe that the bug you reported is fixed in the latest version of
tevent, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mathieu Parent <[email protected]> (supplier of updated tevent 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 [email protected])


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

Format: 1.8
Date: Sat, 14 Sep 2019 08:35:29 +0200
Source: tevent
Architecture: source
Version: 0.10.1-2
Distribution: experimental
Urgency: medium
Maintainer: Debian Samba Maintainers <[email protected]>
Changed-By: Mathieu Parent <[email protected]>
Closes: 939618
Changes:
 tevent (0.10.1-2) experimental; urgency=medium
 .
   [ Helmut Grohne ]
   * Improve cross building. (Closes: #939618)
     + Annotate the python3 Build-Depends with :any.
     + Export CC and PKGCONFIG for waf.
     + cross.patch: don't run an unnecessary hello world test
     + cross.patch: use compile-only checks for sizeof validation
Checksums-Sha1:
 25e5fd31f90a89d7dfacb017332557e1db7dbec4 2118 tevent_0.10.1-2.dsc
 70166e37bbb731386099378808c0ffcc4b15de8f 13036 tevent_0.10.1-2.debian.tar.xz
 fe0ebcf69b57d9efaefec5e2b0b48a496248eae2 5738 tevent_0.10.1-2_source.buildinfo
Checksums-Sha256:
 cc2746fabd91eed2b4aecdef84cab76bd6358ce130b7a150c9fc15e0b68d48c1 2118 
tevent_0.10.1-2.dsc
 b576168b0b83d7f589a599cac463e661b80984711ee18619be3b1581c60467ec 13036 
tevent_0.10.1-2.debian.tar.xz
 ee6e0a69dc772dc5431f5afd35151dbd11864e6651c770079423286f18af2bf7 5738 
tevent_0.10.1-2_source.buildinfo
Files:
 5d93690cbebaf62ceed60648a1fcc997 2118 devel optional tevent_0.10.1-2.dsc
 37f3df664aa61006275ab88368c8c43f 13036 devel optional 
tevent_0.10.1-2.debian.tar.xz
 0342ad65d8f5f0870d35c12ce686163f 5738 devel optional 
tevent_0.10.1-2_source.buildinfo

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

iQJHBAEBCgAxFiEEqqWLhC6ILPQU4Lqxp8cqHHgrjD8FAl18mpITHHNhdGhpZXVA
ZGViaWFuLm9yZwAKCRCnxyoceCuMP86lD/0atb5Io69xndHfQm3jyOUcs6F12/5i
1jdNE1ycf9nYO/ZWzlwhXdnBeloKofUug73kSNXPGR5e8Pgawn1KeaxnHatoZwcY
17QXCNUYHgDyM6Ugof3rKovlWqyWKHxg2IdX/l4nuXCoI67InmnXOZbkUs5RJP3t
lAowrkO2WCyma3qGc40HwrHcqy//qDyx74voDsx1DBfnRbdT6WG/FkxMsYY4wgz3
VhewMFx1HJalE1cS0mNityxkEs1lZuWaVihtxru4YxKIwCB4ZxS/JN4TCQF2Ep/J
DZciQF4J4E2BEoXHROLBygaAtSIH8oiHxci3E8P9os7g4hI32QcWamXaPtzOTwwH
k4c0x6+MYuNnrTCjNEgI7KSKBfrJ5XlLa/ptRe9xFYIZsiues+ZWFDLdSfHPXQwW
dGLqehzLpaxZF9mBT5AiyC3wiKCdWNp6S000/a5I4i1gATIW0ZhnKS+rwlFTD/qO
dTtEvCNibgo1HF4M4v0GROvI0XIRCHfsykc2zHML2jYqjF91/yhL/GTSM9dUe4nu
e+NE4dDzCA7zCF6qXmKhCnLAOdHuPllbT3IfhTZ+CvkC0pKzmAXQe1mWBInr9zrw
AsIiaERnBjPY6zeL6RByqr1TRAa5YBChDuwzpnUv1hokNI9ZvRF8E5OrA6wyOpO+
WbOfo7FtLujQow==
=B4OE
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to