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

Bug #1554015 reported by Björn Michaelsen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Won't Fix
Low
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.

Tags: craft-4
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : Re: adding a stage-package breaks build in snapcraft (only)
summary: - adding a stage-package breaks build in snapcraft
+ adding a stage-package breaks build in snapcraft (only)
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

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)
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

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

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

@Sergio: Can you have a look?

Revision history for this message
Leo Arias (elopio) wrote :

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

Changed in snapcraft:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Kyle Fazzari (kyrofa) wrote :
Changed in snapcraft:
status: Confirmed → In Progress
assignee: nobody → Sergio Schvezov (sergiusens)
tags: added: craft-4
Changed in snapcraft:
status: In Progress → Confirmed
importance: High → Low
Changed in snapcraft:
status: Confirmed → Won't Fix
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.