postler version 0.1.1-1 failed to build on armel

Bug #791319 reported by Ricardo Salveti
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postler (Debian)
Fix Released
Unknown
postler (Ubuntu)
Fix Released
High
Micah Gersten
Oneiric
Fix Released
High
Unassigned

Bug Description

postler version 0.1.1-1 failed to build on armel
Link to failed build: https://launchpad.net/ubuntu/+source/postler/0.1.1-1/+build/2495393

Direct link to the build log: https://launchpad.net/ubuntu/+source/postler/0.1.1-1/+build/2495393/+files/buildlog_ubuntu-oneiric-armel.postler_0.1.1-1_FAILEDTOBUILD.txt.gz

This log snippet might be of interest, since it triggered the matcher 'Purging chroot-autobuild'.
Excerpt 1154 lines into the build log:

Checking for header locale.h : yes
Checking for gio-2.0 >= 2.26.0 : yes
Checking for unique-1.0 >= 0.9 : yes
Checking for gtk+-2.0 >= 2.18.0 : yes
Checking for webkit-1.0 >= 1.1.18 : yes
Checking for libnotify >= : yes
Checking for libcanberra >= : yes
Checking for indicate-0.5 >= : yes
Checking for header sys/filio.h : not found
Checking for function vasprintf : no
/build/buildd/postler-0.1.1/wscript:137: error: the configuration failed (see '/build/buildd/postler-0.1.1/_build_/config.log')
make[1]: *** [override_dh_auto_configure] Error 1
make[1]: Leaving directory `/build/buildd/postler-0.1.1'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20110513-0440
FAILED [dpkg-buildpackage died]
Purging chroot-autobuild/build/buildd/postler-0.1.1

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

13:40 root@panda:porting-jam# LC_ALL=C apt-get build-dep postler
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have unmet dependencies:
 libwebkit-dev : Depends: libwebkitgtk-dev (>= 1.4.1) but it is not going to be installed
E: Build-dependencies for postler could not be satisfied.

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

-------------------------------------------
Checking for function vasprintf
==>
#define _GNU_SOURCE
#include <stdio.h>
int main(char** argv, int argc)
{ char* a;
vasprintf(&a, "%s", ""); return 0; }
<==
[1/2] cc: _build_/.conf_check_0/test.c -> _build_/.conf_check_0/testbuild/default/test_1.o
../test.c: In function ‘main’:
../test.c:5:1: error: incompatible type for argument 3 of ‘vasprintf’
/usr/include/bits/stdio2.h:196:1: note: expected ‘__gnuc_va_list’ but argument is of type ‘char *’
['/usr/bin/gcc', '-g', '-O2', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'no

test.c does not compile with gcc 4.4/4.5/4.6

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

int vasprintf(char **strp, const char *fmt, va_list ap);

va_list on arm is struct and 'void *' on x86 and powerpc. So proper fix it to change vasprintf() test.

Revision history for this message
Loïc Minier (lool) wrote :

va_list is a struct on other architectures than ARM; the stdarg(3) man page has details on how to manipulate va_lists; here the test should likely be changed to use a "va_list foo;" variable instead of an inline "".

Revision history for this message
Matthias Klose (doko) wrote :

fails with new libindicate, configuring with --disable-libindicate fails with:

./waf build
Waf: Entering directory `/home/packages/tmp/u/postler-0.1.1/_build_'
[ 1/44] valac: postler/dexter.vala postler/dockmanager.vala postler/elementary-entry.vala postler/postler-accounts.vala postler/postler-accountsetup.vala postler/postler-app.vala postler/postler-attachments.vala postler/postler-bureau.vala postler/postler-cellrenderertoggle.vala postler/postler-client.vala postler/postler-composer.vala postler/postler-content.vala postler/postler-flowbox.vala postler/postler-folders.vala postler/postler-messages.vala postler/postler-reader.vala postler/postler-recipiententry.vala postler/postler-scrolled.vala postler/postler-service.vala postler/postler-shortcuts.vala postler/postler-state.vala postler/postler-viewer.vala -> _build_/default/postler/dexter.c _build_/default/postler/dockmanager.c _build_/default/postler/elementary-entry.c _build_/default/postler/postler-accounts.c _build_/default/postler/postler-accountsetup.c _build_/default/postler/postler-app.c _build_/default/postler/postler-attachments.c _build_/default/postler/postler-bureau.c _build_/default/postler/postler-cellrenderertoggle.c _build_/default/postler/postler-client.c _build_/default/postler/postler-composer.c _build_/default/postler/postler-content.c _build_/default/postler/postler-flowbox.c _build_/default/postler/postler-folders.c _build_/default/postler/postler-messages.c _build_/default/postler/postler-reader.c _build_/default/postler/postler-recipiententry.c _build_/default/postler/postler-scrolled.c _build_/default/postler/postler-service.c _build_/default/postler/postler-shortcuts.c _build_/default/postler/postler-state.c _build_/default/postler/postler-viewer.c
../postler/postler-content.vala:445.13-445.36: error: 1 extra arguments for `GLib.TimeVal Soup.Date.to_timeval ()'
Waf: Leaving directory `/home/packages/tmp/u/postler-0.1.1/_build_'
Build failed: -> task failed (err #1):
        {task: valac_task dexter.vala,dockmanager.vala,elementary-entry.vala,postler-accounts.vala,postler-accountsetup.vala,postler-app.vala,postler-attachments.vala,postler-bureau.vala,postler-cellrenderertoggle.vala,postler-client.vala,postler-composer.vala,postler-content.vala,postler-flowbox.vala,postler-folders.vala,postler-messages.vala,postler-reader.vala,postler-recipiententry.vala,postler-scrolled.vala,postler-service.vala,postler-shortcuts.vala,postler-state.vala,postler-viewer.vala -> dexter.c,dockmanager.c,elementary-entry.c,postler-accounts.c,postler-accountsetup.c,postler-app.c,postler-attachments.c,postler-bureau.c,postler-cellrenderertoggle.c,postler-client.c,postler-composer.c,postler-content.c,postler-flowbox.c,postler-folders.c,postler-messages.c,postler-reader.c,postler-recipiententry.c,postler-scrolled.c,postler-service.c,postler-shortcuts.c,postler-state.c,postler-viewer.c}
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory `/home/packages/tmp/u/postler-0.1.1'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Changed in postler (Ubuntu):
importance: Undecided → High
status: New → Confirmed
tags: added: nbs oneiric
Revision history for this message
Stefan Handschuh (handschuh) wrote :

Here is the fix for isync/util.c.

Additionally, you have to adjust the wscript as stated above but I cannot test the wscript change since I do not want to use waf.

Revision history for this message
Stefan Handschuh (handschuh) wrote :

Oh, sorry, forget this patch. This has been only needed for my local setup.

Micah Gersten (micahg)
Changed in postler (Ubuntu):
assignee: nobody → Micah Gersten (micahg)
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postler - 0.1.1-1ubuntu2

---------------
postler (0.1.1-1ubuntu2) precise; urgency=low

  * Add patch from Debian (Nobuhiro Iwamatsu) to fix arm* FTBFS
    (Closes: #646422, LP: #791319)
    - add debian/patches/fix-vasprintf-check.patch
    - update debian/patches/series
 -- Micah Gersten <email address hidden> Wed, 28 Dec 2011 03:27:27 -0600

Changed in postler (Ubuntu):
status: In Progress → Fix Released
Changed in postler (Debian):
status: Unknown → New
Micah Gersten (micahg)
Changed in postler (Ubuntu Oneiric):
assignee: nobody → Micah Gersten (micahg)
status: Confirmed → In Progress
Revision history for this message
Micah Gersten (micahg) wrote :

Uploaded to oneiric-proposed

Changed in postler (Ubuntu Oneiric):
assignee: Micah Gersten (micahg) → nobody
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Ricardo, or anyone else affected,

Accepted postler into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Package built successfully on ARM, marking as verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package postler - 0.1.1-1ubuntu1.1

---------------
postler (0.1.1-1ubuntu1.1) oneiric-proposed; urgency=low

  * Add patch from Debian (Nobuhiro Iwamatsu) to fix armel FTBFS
    (Closes: #646422, LP: #791319)
    - add debian/patches/fix-vasprintf-check.patch
    - update debian/patches/series
 -- Micah Gersten <email address hidden> Wed, 28 Dec 2011 03:27:27 -0600

Changed in postler (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in postler (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.