Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Unable to build for Ubuntu PPA
sodev:
According to this wxWidgets commit it may be more future proof to not use lsb_release but parse that information from /etc/os-release instead.
Miguel Gimenez:
Then the first part of setup_control.sh should be similar to this...
--- Code: ---if [ "$#" -ne 1 ] || [ -z "${1##*detect*}" ]; then
echo "Doing version detection"
test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
. "$os_release"
if [ $ID = "debian" ] || [ $ID = "ubuntu" ]; then
version=$VERSION_CODENAME
else
version=`cat /etc/debian_version`
fi
else
version=$1
fi
echo "Found version: $version"
--- End code ---
Miguel Gimenez:
@xaviou, does the code in the previous post work for you?. os-release was added to systemd in 2012.
Xaviou:
Hi
--- Quote from: Miguel Gimenez on August 09, 2023, 12:53:14 pm ---@xaviou, does the code in the previous post work for you?. os-release was added to systemd in 2012.
--- End quote ---
Seems to be ok : testedswith Debian Buster/Bullseye/Bookworm and Ubuntu Jammy/Lunar
Regards
Xav'
Miguel Gimenez:
Applied in r13333, thank you for testing.
Navigation
[0] Message Index
[*] Previous page
Go to full version