-
Notifications
You must be signed in to change notification settings - Fork 13
/
lib-checker-example.yaml
55 lines (55 loc) · 1.56 KB
/
lib-checker-example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
app_id: pro.abi_laboratory.abi_compliance_checker.lib-checker-example
runtime: org.freedesktop.Sdk
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
base: pro.abi_laboratory.abi-compliance-checker
base-version: master
command: lib-checker
finish-args:
- --allow=devel
- --filesystem=host
modules:
- name: libxml2-icu
config-opts:
- --with-icu
- --with-python_install_dir=${FLATPAK_DEST}/lib/python3.9/site-packages
sources:
- type: archive
url: https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.9.12/libxml2-v2.9.12.tar.gz
sha256: 98bfa7a9a5e2a75638422050740448ee9f02bf4dc2075c9822d7747d5ff9e617
cleanup:
- '*.a'
- '*.la'
- name: compare-libs
buildsystem: simple
build-commands:
- install -Dm755 -t ${FLATPAK_DEST}/bin/ lib-checker
- |
install -Dm644 /dev/stdin ${FLATPAK_DEST}/share/libxml2-runtime.xml <<EOF
<version>
2.9.12
</version>
<headers>
/usr/include/libxml2
</headers>
<libs>
/usr/lib/${FLATPAK_ARCH}-linux-gnu
</libs>
EOF
- |
install -Dm644 /dev/stdin ${FLATPAK_DEST}/share/libxml2-icu.xml <<EOF
<version>
2.9.12
</version>
<headers>
${FLATPAK_DEST}/include/libxml2
</headers>
<libs>
${FLATPAK_DEST}/lib
</libs>
EOF
sources:
- type: script
dest-filename: lib-checker
commands:
- abi-compliance-checker -lib libxml2 -old /app/share/libxml2-runtime.xml -new /app/share/libxml2-icu.xml