adding lib6-dev to stage-package directly or indirectly breaks build in snapcraft (only)

Bug #1554015 reported by Björn Michaelsen on 2016-03-07
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
High
Sergio Schvezov

Bug Description

See attached snapcraft file to reproduce. The logfile shows the result: A very nasty non-obvious breaker of gcc stdlibs internals that show no hint at all towards at libatk1.0-dev being the culprit here. Removing it and this builds fine.

NOTE this is a just minimal reproduction scenario: In a usual upstream build, libwpd would be build along with the full build -- where other parts of LibreOffice need libatk. That fails in the same way.

So:
- Building libwpd outside of snapcraft works fine, even with libatk1.0-dev installed.
- libatk1.0-dev isnt intended used by the libwpd build. It shouldnt be affected by it in any way.
- the log suggests a very basic toolchain problem (nothing should _ever_ break mathcalls.h).
- possibly related to bug 1548232 (maybe same root cause).
- as bug 1548232, this might hint at more subtle toolchain breaks which dont show up at compile time, but only at runtime.

summary: - adding a stage-package breaks build in snapcraft
+ adding a stage-package breaks build in snapcraft (only)

The problem is that libatk1.0-dev depends on libc6-dev, which causes this breakage. Thus currently adding any package that depends on libc6-dev directly or indirectly (libatk1.0-dev -> libglib2.0-dev -> zlib1g-dev -> libc6-dev) breaks this way. I bet that is a lot of packages that are currently unusable in snap.

summary: - adding a stage-package breaks build in snapcraft (only)
+ adding lib6-dev to stage-package directly or indirectly breaks build in
+ snapcraft (only)

adding "libc6-dev" to /usr/lib/python3/dist-packages/snapcraft/manifest.txt seems to fix this.

@Sergio: Can you have a look?

Leo Arias (elopio) wrote :

Confirmed. I get the same build error with latest snapcraft master.

Changed in snapcraft:
status: New → Confirmed
importance: Undecided → High
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: Confirmed → In Progress
assignee: nobody → Sergio Schvezov (sergiusens)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers