← Back to issue list

Running snapcraft 3 w/ core18 base in docker incorrectly reports missing lib deps

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1826611
Type
issue
State
closed
Author
~anonymouse67
Labels
—
Created
Updated
Closed

Current evaluation

Closed as stale after 2,716 days; Snapcraft's legacy Dockerfiles had been updated, then OCI builds moved to Rocks. No resolving fix was identified.

Resolution: closed stale

Reason: The maintainer closed it as stale because the affected Docker workflow was obsolete. canonical/snapcraft#5063, merged as 24e70d6db, removed the legacy Dockerfile and documented Snapcraft Rocks, but did not report fixing this core18 library-detection bug.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When building a snap using snapcraft 3.X in a docker container and specifying `base: core18`, snapcraft doesn't attempt to install the core18 snap which is fine since we build inside a ubuntu:18.04 container and have all the needed dependencies, however it then proceeds to claim that executables in the snap need dependencies that are not present in the snap or the base snap. However this is incorrect as all the required libraries are actually in the base snap. For example, when building curl: ``` Priming curl The 'curl' part needs the following libraries that are not included in the snap or base: lib/x86_64-linux-gnu/libc.so.6 lib/x86_64-linux-gnu/libcrypt.so.1 lib/x86_64-linux-gnu/libdl.so.2 lib/x86_64-linux-gnu/libm.so.6 lib/x86_64-linux-gnu/libpthread.so.0 lib/x86_64-linux-gnu/libresolv.so.2 lib/x86_64-linux-gnu/libz.so.1 ``` All of which are in the core18 snap.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale after 2,716 days; Snapcraft's legacy Dockerfiles had been updated, then OCI builds moved to Rocks. No resolving fix was identified.
stealth/space-bunny-alpha — closed stale Closed as stale after Snapcraft updated its Dockerfiles and switched its OCI build tooling to rocks.
qwen/qwen3.6-35b-a3b — — Closed as stale. Snapcraft resolved the issue by updating its Dockerfiles and migrating to OCI rocks for builds, eliminating the incorrect core18 dependency warnings in Docker.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 90
Support Request: 10
close stale Snapcraft 3.x with core18 base in Docker incorrectly flags core18-provided libraries as missing during priming. Untriaged, inactive for over 7 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 90
Support Request: 10
close stale Reports snapcraft 3.x incorrectly flagging core18 base libraries as missing during Docker builds. Unanswered for over 7 years; core18 and snapcraft 3.x are long deprecated.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 45
Confidence: 90
Support Request: 15
close stale snapcraft 3 incorrectly flags core18 base libraries as missing during Docker builds. The issue has been inactive for over 7 years with no maintainer response or labels.

Update history

Date Change
created

Related work

  • Superseded By: canonical/snapcraft#5063 (confidence 98%)

    Commit 24e70d6db removed the legacy Dockerfile and documented the Snapcraft Rocks registry.

Related issues

Issue Project State Summary Similarity
#1830389 misleading warning when building base: core18 snap with 16.04 snapcore/snapcraft docker snapcraft (launchpad) closed Closed as stale without a code fix; a maintainer noted Snapcraft's Dockerfiles had changed substantially and later moved to Rocks, making the reported 16.04 warning obsolete.
78%
#1814024 snapcore/snapcraft stable docker images are out of date snapcraft (launchpad) closed Closed as stale after about 2,800 days; no PR or commit updated the reported snapcore/snapcraft stable image from Snapcraft 2.43.1 to 3.0.1.
76%
#1846195 provide snapcraft docker image for core18 snapcraft (launchpad) open Request (2019) for an official snapcraft Docker image able to build base: core18 snaps; unmaintained since 2020, in-repo Dockerfiles were removed in 24e70d6db in favor of canonical/snapcraft-rocks, and core18 now needs EOL Snapcraft 7.5.x.
76%
#4290 docker: add core22 base snapcraft closed Rejected as incompatible with legacy behavior; the Dockerfile was later removed and snapcraft-rocks documented as the official replacement in #5063 (24e70d6db).
75%
#1830388 The base field created by snapcraft init should match the docker equivalent image or raise an error snapcraft (launchpad) closed Closed as stale after prolonged inactivity; the maintainer noted that Snapcraft's Dockerfiles had changed substantially and later moved to rocks.
75%
#1814017 Add docker image for core18 building snapcraft (launchpad) open Request for a core18-capable snapcraft Docker image for CI; in-repo Dockerfiles gained core18 support (b982555e1) then were removed in favor of Canonical's snapcraft-rocks images, and core18 now needs EOL 7.x snapcraft.
74%
#1989030 snapcore/snapcraft image is outdated (again) snapcraft (launchpad) closed The snapcore/snapcraft Docker image was deprecated and closed as stale. Users should now use canonical/snapcraft-rocks instead.
73%
#1639112 The docker image has an outdated version snapcraft (launchpad) closed Resolved by enabling automated builds for all Snapcraft Docker images, as confirmed by maintainer Sergiusens on 2018-09-13.
71%
#4476 Support a Snapcraft ROCK snapcraft closed Superseded by canonical/snapcraft-rocks, which publishes Snapcraft OCI images; PR #5063 (commit 24e70d6db) documented that registry and removed the outdated in-tree Dockerfile.
71%
#1885028 stage-snaps don't work on docker snapcraft (launchpad) closed Closed as won't fix after legacy Docker support was retired: canonical/snapcraft#5063 removed the Dockerfile and directed container builds to snapcraft-rocks OCI images.
70%