This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository nx-libs. from 0bbef4f nx-libs.spec: also own %{_datadir}/nx/X11, since %dir explicitly does not recurse down. new baf61fb debian/: add compat.sh file containing compatibility logic for older Debian and Ubuntu versions. new fb2e9a8 debian/rules: execute new debian/compat.sh file before the actual build. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/compat.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ debian/rules | 2 +- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100755 debian/compat.sh -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository nx-libs. commit baf61fbb2b2ef84554acb57859aba1caa4d92ff3 Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Dec 16 02:21:36 2017 +0100 debian/: add compat.sh file containing compatibility logic for older Debian and Ubuntu versions. --- debian/compat.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/debian/compat.sh b/debian/compat.sh new file mode 100755 index 0000000..e4b0366 --- /dev/null +++ b/debian/compat.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +# This script employs compatibility measures, mainly for older Debian +# or Ubuntu versions. +typeset -a compat_shims_all compat_shims_active +compat_shims_all=("Wpedantic") +compat_shims_active=() + +typeset debian_release_ver='' +typeset -i ubuntu_release_ver_major='0' ubuntu_release_ver_minor='0' + +# Check distro version and enable compat shims if required. +if dpkg-vendor --is "Debian" || dpkg-vendor --is "Raspbian"; then + debian_release_ver="$(lsb_release -r | sed -e 's/[ ]*//g' | cut -d ':' -f '2' | cut -d '.' -f '1')" + + [[ "${debian_release_ver}" = 'testing' ]] && debian_release_ver='999' + [[ "${debian_release_ver}" = 'unstable' ]] && debian_release_ver='9999' + + if [[ "${debian_release_ver}" -le '7' ]]; then + compat_shims_active+=("Wpedantic") + fi +elif dpkg-vendor --is "Ubuntu"; then + ubuntu_release_ver_major="$(lsb_release -r | sed -e 's/[ ]*//g' | cut -d ':' -f '2' | cut -d '.' -f '1')" + ubuntu_release_ver_minor="$(lsb_release -r | sed -e 's/[ ]*//g' | cut -d ':' -f '2' | cut -d '.' -f '2')" + + if [[ "${ubuntu_release_ver_major}" -le '13' ]]; then + if [[ "${ubuntu_release_ver_major}" -lt '13' ]] || [[ "${ubuntu_release_ver_minor}" -le '4' ]]; then + compat_shims_active+=("Wpedantic") + fi + fi +fi + + +# Apply enabled compat shims. +# Ignore unknown values. +typeset cur_compat_shim='' cur_enabled_compat_shim='' +for cur_compat_shim in "${compat_shims_all[@]}"; do + for cur_enabled_compat_shim in "${compat_shims_active[@]}"; do + if [[ "${cur_compat_shim}" = "${cur_enabled_compat_shim}" ]]; then + if [[ "${cur_compat_shim}" = 'Wpedantic' ]]; then + sed -i -e 's/Wpedantic/pedantic/g' nx-X11/config/cf/{{host,xorgsite}.def,xorg.cf} + continue + fi + fi + done +done -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository nx-libs. commit fb2e9a8b54b0e404d76fe93b969e47a8209d1532 Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Dec 16 02:22:18 2017 +0100 debian/rules: execute new debian/compat.sh file before the actual build. --- debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 9bda997..90234c5 100755 --- a/debian/rules +++ b/debian/rules @@ -111,7 +111,7 @@ override_dh_auto_install: PREFIX=/usr dh_auto_install -Smakefile override_dh_auto_build: - + debian/compat.sh PREFIX=/usr dh_auto_build --parallel -- CDEBUGFLAGS="$(CPPFLAGS) $(CFLAGS)" LOCAL_LDFLAGS="$(LDFLAGS)" SHLIBGLOBALSFLAGS='$(filter-out -pie,$(LDFLAGS))' override_dh_strip: -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git