Hi Gunnar,
The software from $SILICON_VENDOR is installed using the Graphical
installer. Not long ago, the GUI install was the only option.
We run the actual build jobs via a Jenkins agent over SSH.
Here's a small stunt double of the build job
{code}
#!/bin/bash
set -ex
echo "XDG_SESSION_TYPE=$XDG_SESSION_TYPE"
# source environment from /etc/profile
. /etc/profile
echo "Continuing build with the environment set up"
{code}
The -e option is set according to our shell scripting recommendations, which
then aborts when sourcing
/etc/profile.d/im-config_wayland.sh
I suggest the below as a replacement
{code}
# /etc/profile.d/im-config_wayland.sh
#
# This sets the IM variables on Wayland.
if [ ! "$XDG_SESSION_TYPE" = 'wayland' ]; then
return
fi
# don't do anything if im-config was removed but not purged
if [ ! -r /usr/share/im-config/xinputrc.common ]; then
return
fi
if [ -r /etc/X11/Xsession.d/70im-config_launch ]; then
. /etc/X11/Xsession.d/70im-config_launch
fi
{code}
Assuming I didn't mess anything up, it should do the same thing - but
doesn't explode with the -e option set.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to im-config in Ubuntu.
https://bugs.launchpad.net/bugs/1947670
Title:
/etc/profile.d/im-config_wayland.sh prevents sourcing /etc/profile
Status in im-config package in Ubuntu:
Incomplete
Bug description:
We upgraded a build server from Ubuntu 18.04 to 20.04.
The build server had some scripts in /etc/profile.d/ that set up the
required build environment.
The builds would source `. /etc/profile` in the beginning.
After the upgrade, the script /etc/profile.d/im-config_wayland.sh
line
```
test "$XDG_SESSION_TYPE" = 'wayland' || return
```
evaluates with `test tty = wayland` returning the build script early.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/im-config/+bug/1947670/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp