Some symlinks not properly fixed up

Bug #1650686 reported by Loïc Minier
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Invalid
Undecided
Unassigned

Bug Description

Heya,

We have this elasticsearch-smb snap which uses a part to pull a JRE (default-jre-headless); the snap then has an error in snap package review in the store due to an absolute symlink that doesn't get fixed up by snapcraft during the build.

Link to LP snap build:
https://code.launchpad.net/~smb-dev/+snap/elasticsearch/

snapcraft.yaml:
https://git.launchpad.net/~smb-dev/+git/elastic-snap/tree/snapcraft.yaml?id=4121703777afc959fee8e967d01f34ff047f23d5

Store review error:
 package contains external symlinks: usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts

Jamie tells me he recently sent a patch to address a similar issue:
00:06 < jdstrand> lool: it used to always be (that is how I know that the ssl doesn't work), but a recent package I did had snapcraft fixing
                  it up. please file a bug

Thanks!
- Loïc

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Is this symlink in the stage package, then? There are cases where snapcraft will fix symlinks pointing out of the snap (e.g. when using the copy plugin), but it doesn't really look into stage packages to the length of my knowledge.

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

Haven't had the chance to try to repro, so will close for now

Changed in snapcraft:
status: New → Invalid
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.