repository

Carbs Linux repositories
git clone git://git.carbslinux.org/repository
Log | Files | Refs | README | LICENSE

commit 006b299cdbbfc1a589adddf77d8466a443a9fd2d
parent b1eddce7b91a23d0f7961fe90252f6c06e9c9fa8
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 19 Jun 2020 01:51:36 +0300

xorg-server: remove libressl dependency by implementing minimal libsha1

Diffstat:
Mxorg/xorg-server/build | 24+++++++++++++++++++++++-
Mxorg/xorg-server/checksums | 1+
Mxorg/xorg-server/depends | 1-
Mxorg/xorg-server/sources | 1+
4 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/xorg/xorg-server/build b/xorg/xorg-server/build @@ -2,9 +2,31 @@ patch -p1 < rootless_modesetting.patch + +( + # Instead of requiring libressl for the sha1 library, we + # are statically installing this small implementation so + # that we don't require an external library. + cd libsha1 + + ./configure \ + --prefix=/usr \ + --disable-shared + + make + make DESTDIR="$PWD/tmp" install +) + +export LDFLAGS="$LDFLAGS -L$PWD/libsha1/tmp/usr/lib" +export CFLAGS="$CFLAGS -I$PWD/libsha1/tmp/usr/include" +export LIBSHA1_CFLAGS="-L$PWD/libsha1/tmp/usr/lib -I$PWD/libsha1/tmp/usr/include" +export LIBSHA1_LIBS="$PWD/libsha1/tmp/usr/lib/libsha1.a" + + ./configure \ --prefix=/usr \ --localstatedir=/var \ + --disable-shared \ --disable-systemd-logind \ --disable-xwayland \ --disable-unit-tests \ @@ -14,7 +36,7 @@ patch -p1 < rootless_modesetting.patch --enable-dri3 \ --enable-glamor \ --enable-xorg \ - --with-sha1=libcrypto \ + --with-sha1=libsha1 \ --with-systemd-daemon=off make diff --git a/xorg/xorg-server/checksums b/xorg/xorg-server/checksums @@ -1,2 +1,3 @@ d17b646bee4ba0fb7850c1cc55b18e3e8513ed5c02bdf38da7e107f84e2d0146 xorg-server-1.20.8.tar.bz2 +336e6fa240cb0052c9620b2031cebe207f5bf5c7e8320c489402554b5652027e libsha1-0.3.tar.xz c98ad9376f20ab25463ef74bb19f2dbe874a19918b27b430c8e632d272379129 rootless_modesetting.patch diff --git a/xorg/xorg-server/depends b/xorg/xorg-server/depends @@ -11,7 +11,6 @@ libdrm libepoxy libfontenc libpciaccess -libressl libxcb libxkbfile libxshmfence diff --git a/xorg/xorg-server/sources b/xorg/xorg-server/sources @@ -1,2 +1,3 @@ https://www.x.org/releases/individual/xserver/xorg-server-1.20.8.tar.bz2 +https://dl.carbslinux.org/distfiles/libsha1-0.3.tar.xz libsha1 patches/rootless_modesetting.patch