Skip to content
Snippets Groups Projects
Unverified Commit 13c34b97 authored by Alexey Minnekhanov's avatar Alexey Minnekhanov :electric_plug:
Browse files

CI: test for cross-compilers in makedepends (MR 2272)

Related: #1128

[ci:skip-build] Will not finish in 3h on CI. Builds locally.
parent 33c62a1f
Branches
No related tags found
No related merge requests found
Pipeline #192178 passed
......@@ -18,7 +18,18 @@ def test_aports_kernel(args):
for path in glob.iglob(f"{args.aports}/**/linux-*/APKBUILD", recursive=True):
apkbuild = pmb.parse.apkbuild(args, path)
aport_name = os.path.basename(os.path.dirname(path))
if "pmb:cross-native" not in apkbuild["options"]:
raise RuntimeError("\"pmb:cross-native\" missing in"
f" options= line: {path}")
raise RuntimeError(f"{aport_name}: \"pmb:cross-native\" missing in"
" options= line")
# cross-compilers should not be in makedepends
for ccc in ["gcc-armv7", "gcc-armhf", "gcc-aarch64",
"gcc4-armv7", "gcc4-armhf", "gcc4-aarch64",
"gcc6-armv7", "gcc6-armhf", "gcc6-aarch64"]:
if ccc in apkbuild["makedepends"]:
raise RuntimeError(f"{aport_name}: Cross-compiler ({ccc}) should"
" not be explicitly specified in makedepends!"
" pmbootstrap installs cross-compiler"
" automatically.")
  • Administrator @root

    mentioned in commit 6c71053f

    By Alexey Min on 2021-07-24T00:45:58

    · Imported

    mentioned in commit 6c71053f

    By Alexey Min on 2021-07-24T00:45:58

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 9f78e030

    By Alexey Min on 2021-07-24T05:46:59

    · Imported

    mentioned in commit 9f78e030

    By Alexey Min on 2021-07-24T05:46:59

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 7b72d197

    By Alexey Min on 2021-08-02T20:44:32

    · Imported

    mentioned in commit 7b72d197

    By Alexey Min on 2021-08-02T20:44:32

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit ba3e5e3e

    By Alexey Min on 2021-08-02T23:24:16

    · Imported

    mentioned in commit ba3e5e3e

    By Alexey Min on 2021-08-02T23:24:16

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 5e36d48f

    By Alexey Min on 2021-08-03T00:08:37

    · Imported

    mentioned in commit 5e36d48f

    By Alexey Min on 2021-08-03T00:08:37

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment