Le 25/10/2016 à 08:46, Dan Kegel a écrit : > On Mon, Oct 24, 2016 at 11:21 PM, Didier Roche <didro...@ubuntu.com> wrote: >> You have the parts/<partname>/install directory, which is your target >> for your parts installation. All files are there (and DESTDIR is set to >> there). It sounds then normal to not rely on absolute path, but only >> relative one to reference those, and not $ANYFILE_FROM_YOUR_HOST_SYSTEM, >> doesn't it? > > Yes. I'm asking for syntactic sugar. Please ignore the leading slash > rather than throwing an error. This will make life easier for users > generating snapcraft.yaml, who otherwise have to script removing that slash. > >> Maybe that's my twisted debian packager mindset, but do you mind >> providing a real example? If an upstream project ignores DESTDIR and >> install directly on system path, this is quite ackward and should be >> fixed in other way. > > I'm not talking about supporting that. I'm talking about doing > everything right *except* for not having to strip the leading > slash off those paths. > > Another way of looking at is is, the path should be evaluated > in the confined context rather than the outer context. > Does that make more sense? > > Grouchily yours, > random user tired of doing sed -e 's,^/,,' all over the place. >
Ah ok, that makes sense. I think that would be possible, ignoring leading "/". Not sure it's a feature we should advertize, but I don't see any kind of side-effect to it, as long as we requires all files to be in known snapcraft dirs. Sergio, Kyle, wdyt? -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft