- check for available graphics during runtime instead of %post,

since %post may already run during image building time in our
  buildsystem (boo#1039497)

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xdm?expand=0&rev=168
This commit is contained in:
Stefan Dirsch 2018-03-09 17:05:32 +00:00 committed by Git OBS Bridge
parent 7d084a155f
commit 59156946a8
3 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 9 16:46:58 UTC 2018 - sndirsch@suse.com
- check for available graphics during runtime instead of %post,
since %post may already run during image building time in our
buildsystem (boo#1039497)
-------------------------------------------------------------------
Mon Feb 26 19:24:04 UTC 2018 - sndirsch@suse.com

View File

@ -217,14 +217,6 @@ touch %{buildroot}%{_libexecdir}/X11/displaymanagers/console
%service_add_post display-manager.service
%{fillup_only -n displaymanager}
%endif
# Do no try to start Xserver on platforms which may ship without
# graphics card (bsc#1039497)
%ifarch aarch64 ppc64le
if ! [ -c /dev/fb* -o -d /dev/dri ]; then
sed -i -e "s+DISPLAYMANAGER_STARTS_XSERVER=.*+DISPLAYMANAGER_STARTS_XSERVER=\"no\"+g" \
%{_sysconfdir}/sysconfig/displaymanager
fi
%endif
%if 0%{?suse_version} >= 1330
%{_sbindir}/update-alternatives --install %{_libexecdir}/X11/displaymanagers/default-displaymanager \
default-displaymanager %{_libexecdir}/X11/displaymanagers/console 5

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5358018905e24cd25d161bf97d61b0a247fb8a2fe14a4f8318c97cf6a81aab2c
size 23875
oid sha256:555f89ea66078c531dbf8d27bb44a07452580b88de2f21bf7580149d4d8b41b3
size 24065