snapcraft:fix-ld-regex

Last commit made on 2020-08-13
Get this branch:
git clone -b fix-ld-regex https://git.launchpad.net/snapcraft

Branch merges

Branch information

Name:
fix-ld-regex
Repository:
lp:snapcraft

Recent commits

52e1ddf... by Chris Patterson

spread tests: fix classic patchelf linker regex to match all arches

ppc64el and others may not follow the `ld-linux` convention, e.g.:
/snap/core18/current/lib64/ld64.so.2

Fix by broadening the match to ld.*.

Signed-off-by: Chris Patterson <email address hidden>

65a7c63... by Chris Patterson

plugins v2: quote python packages argument for pip (#3246)

If using a python package with conditionals, e.g.:
    python-packages:
      - ibm-db-sa; platform_machine == 'x86_64'
      - ibm-db-sa; platform_machine == 'ppc64le'
      - ibm-db-sa; platform_machine == 's390x'

Then snapcraft would pass the python packages unquoted to pip,
resulting in build errors. Ensure the packages are quoted
safely using shlex.quote() when building the command string.

Update existing python-package spread test and python-package
unit test to cover this case.

LP: #1884429

Signed-off-by: Chris Patterson <email address hidden>

409b8e8... by Chris Patterson

build providers: install apt-transport-https (#3232)

When using package-repositories, additional repositories may
be used that require HTTPS. Install apt-transport-https
as a required package, if not already available.

Signed-off-by: Chris Patterson <email address hidden>

e622647... by Chris Patterson

cli: only issue warning when checking for usage of sudo (#3240)

Signed-off-by: Chris Patterson <email address hidden>

1594cf4... by Chris Patterson

specifications: minor cleanup for package-repositories (#3245)

Add some hints based off feedback from users and tidy
up some formatting.

Signed-off-by: Chris Patterson <email address hidden>

e76a077... by Chris Patterson

tests: migrate legacy classic patchelf tests to spread (#3242)

- Sort the core base rpaths so ordering is predictable.
- Add get_base() to spread helper functions.
- Remove legacy test_stage tests module.

Signed-off-by: Chris Patterson <email address hidden>

be00472... by Chris Patterson

extensions: add experimental extension support

- Add is_experimental() interface to extension to
  allow extension to indicate it is experimental, conditional
  to the base.

- Require --enable-experimental-extensions for user to
  acknowledge unstable extension usage.

- Raise (new) SnapcraftExperimentalExtensionsRequiredError
  if user configures an experimental extension without the
  --enable-experimental-extensions flag.

Signed-off-by: Chris Patterson <email address hidden>

0259e7b... by Chris Patterson

cli: add --enable-experimental-extensions flag

Will allow user to acknowledge the fact that they are utilizing
an unstable, experimental extension.

Minor tweak to package-repositories warning to make consistent.

Signed-off-by: Chris Patterson <email address hidden>

ebac440... by Chris Patterson

specifications: add spec for experimental extensions

Signed-off-by: Chris Patterson <email address hidden>

e6ef1ce... by Chris Patterson

tests: fix assert ordering for error format tests (#3235)

Signed-off-by: Chris Patterson <email address hidden>