[citemplates: 1/2] flatpak-initiative/flatpka-builder: remove debug and locale workaround
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [citemplates: 1/2] flatpak-initiative/flatpka-builder: remove debug and locale workaround
- Date: Mon, 27 Jan 2020 17:37:42 +0000 (UTC)
commit 795561e41fda8b41925e5a03fc6c397001bac263
Author: Jordan Petridis <jordan centricular com>
Date: Mon Jan 27 18:57:29 2020 +0200
flatpak-initiative/flatpka-builder: remove debug and locale workaround
Remove the workaround for locale and stripping debug symbols.
There's a behavior change between flatpak-builder and flatpak build
it seems which results in broken/noninstallable bundles.
And in any case this template exists as a tier 2 supported till
getting around to mounting sdk-extensions with flatpak build.
flatpak/flatpak-ci-initiative-sdk-extensions.yml | 47 ------------------------
1 file changed, 47 deletions(-)
---
diff --git a/flatpak/flatpak-ci-initiative-sdk-extensions.yml
b/flatpak/flatpak-ci-initiative-sdk-extensions.yml
index 301f003..117f589 100644
--- a/flatpak/flatpak-ci-initiative-sdk-extensions.yml
+++ b/flatpak/flatpak-ci-initiative-sdk-extensions.yml
@@ -9,53 +9,6 @@
# are passed except the config-args because we build it ourselves
- flatpak-builder --run flatpak_app ${MANIFEST_PATH} meson --prefix=/app ${MESON_ARGS} _build
- flatpak-builder --run flatpak_app ${MANIFEST_PATH} ninja -C _build install
- - |
- flatpak-builder --run flatpak_app ${MANIFEST_PATH} bash -c \
- 'for lang in $(ls /app/share/locale/); do \
- ll=$(echo ${lang} | egrep -o '^[a-z]+'); \
- test ${ll} == en && continue; \
- test -L /app/share/locale/${lang} && continue; \
- mkdir -p /app/share/runtime/locale/${ll}/share; \
- mv /app/share/locale/${lang} /app/share/runtime/locale/${ll}/share/; \
- ln -s ../../share/runtime/locale/${ll}/share/${lang} /app/share/locale; \
- done'
- - |
- flatpak-builder --run flatpak_app ${MANIFEST_PATH} bash -c \
- "find /app -type f '(' -perm -111 -o -name '*.so*' ')' -print0 | while read -r -d $'\\0' file; do \
- read -n4 hdr < \${file} || continue; \
- if [ \"\$hdr\" != \$(printf \\\\x7fELF) ]; then \
- continue; \
- fi; \
- if objdump -j .gnu_debuglink -s \${file} &> /dev/null; then \
- continue; \
- fi; \
- case \${file} in /app/lib/debug/*) \
- continue ;; \
- esac; \
- debugedit -i --list-file=source-files.part --base-dir=\${PWD}
--dest-dir=/app/lib/debug/source//${FLATPAK_MODULE} \${file} &> /dev/null; \
- cat source-files.part >> source-files; \
- realpath=\$(realpath -s --relative-to=/app \${file}); \
- debugfile=/app/lib/debug/\${realpath}.debug; \
- mkdir -p \$(dirname \${debugfile}); \
- objcopy --only-keep-debug --compress-debug-sections \${file} \${debugfile}; \
- chmod 644 \${debugfile}; \
- mode=\$(stat -c 0%a \${file}); \
- [ -w \${file} ] || chmod +w \${file}; \
- strip --remove-section=.comment --remove-section=.note --strip-unneeded
--remove-section=.gnu_debugaltlink \${file}; \
- objcopy --add-gnu-debuglink \${debugfile} \${file}; \
- chmod \${mode} \${file}; \
- done; \
- sort -zu < source-files | while read -r -d \$'\\0' source; do \
- dst=/app/lib/debug/source/${FLATPAK_MODULE}/\${source}; \
- src=\${source}; \
- if [ -d \${src} ]; then \
- install -m0755 -d \${dst}; \
- continue; \
- fi; \
- [ -f \${src} ] || continue; \
- install -m0644 -D \${src} \${dst}; \
- done"
-
- flatpak-builder --finish-only --repo=repo ${BRANCH:+--default-branch=$BRANCH} flatpak_app
${MANIFEST_PATH}
# Run automatic tests inside the Flatpak env
- >
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]