Skip to content

Commit f6a8cbf

Browse files
committed
Build libdrm and its deps (for mesa)
1 parent d7aa39b commit f6a8cbf

File tree

9 files changed

+83
-0
lines changed

9 files changed

+83
-0
lines changed

buildconfig/manylinux-build/docker_base/Dockerfile-aarch64

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ RUN ["bash", "/libxml2_build/build-libxml2.sh"]
5353
ADD wayland /wayland_build/
5454
RUN ["bash", "/wayland_build/build-wayland.sh"]
5555

56+
ADD xorg/macros /xorg_build/macros/
57+
RUN ["bash", "/xorg_build/macros/build-macros.sh"]
58+
59+
ADD xorg/libpciaccess /xorg_build/libpciaccess/
60+
RUN ["bash", "/xorg_build/libpciaccess/build-libpciaccess.sh"]
61+
62+
ADD mesa/libdrm /mesa_build/libdrm/
63+
RUN ["bash", "/mesa_build/libdrm/build-libdrm.sh"]
64+
5665
#ADD zlib-ng /zlib-ng_build/
5766
#RUN ["bash", "/zlib-ng_build/build-zlib-ng.sh"]
5867

buildconfig/manylinux-build/docker_base/Dockerfile-i686

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ RUN ["linux32", "bash", "/libxml2_build/build-libxml2.sh"]
5353
ADD wayland /wayland_build/
5454
RUN ["linux32", "bash", "/wayland_build/build-wayland.sh"]
5555

56+
ADD xorg/macros /xorg_build/macros/
57+
RUN ["linux32", "bash", "/xorg_build/macros/build-macros.sh"]
58+
59+
ADD xorg/libpciaccess /xorg_build/libpciaccess/
60+
RUN ["linux32", "bash", "/xorg_build/libpciaccess/build-libpciaccess.sh"]
61+
62+
ADD mesa/libdrm /mesa_build/libdrm/
63+
RUN ["linux32", "bash", "/mesa_build/libdrm/build-libdrm.sh"]
64+
5665
#ADD zlib-ng /zlib-ng_build/
5766
#RUN ["linux32", "bash", "/zlib-ng_build/build-zlib-ng.sh"]
5867

buildconfig/manylinux-build/docker_base/Dockerfile-x86_64

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ RUN ["bash", "/libxml2_build/build-libxml2.sh"]
5353
ADD wayland /wayland_build/
5454
RUN ["bash", "/wayland_build/build-wayland.sh"]
5555

56+
ADD xorg/macros /xorg_build/macros/
57+
RUN ["bash", "/xorg_build/macros/build-macros.sh"]
58+
59+
ADD xorg/libpciaccess /xorg_build/libpciaccess/
60+
RUN ["bash", "/xorg_build/libpciaccess/build-libpciaccess.sh"]
61+
62+
ADD mesa/libdrm /mesa_build/libdrm/
63+
RUN ["bash", "/mesa_build/libdrm/build-libdrm.sh"]
64+
5665
#ADD zlib-ng /zlib-ng_build/
5766
#RUN ["bash", "/zlib-ng_build/build-zlib-ng.sh"]
5867

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -e -x
3+
4+
cd $(dirname `readlink -f "$0"`)
5+
6+
# The drm already available on manylinux docker images is too old for mesa, so
7+
# we need to compile the latest from source
8+
9+
DRM_VER="libdrm-2.4.120"
10+
DRM="drm-$DRM_VER"
11+
12+
curl -sL --retry 10 https://gitlab.freedesktop.org/mesa/drm/-/archive/$DRM_VER/$DRM.tar.gz > $DRM.tar.gz
13+
sha512sum -c libdrm.sha512sum
14+
15+
tar xzf $DRM.tar.gz
16+
cd $DRM
17+
18+
# build with meson+ninja
19+
meson build/ $PG_BASE_MESON_FLAGS -Dman-pages=disabled -Dvalgrind=disabled -Dtests=false
20+
ninja -C build/ install
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
31428ec49476af3bb7acbe088ebb2411f2f69013af63afd0832546df1a45a7f45ebb472dce3f07946b9202e41deba7aae3590c2e721c56b6d64de908704ae308 drm-libdrm-2.4.120.tar.gz
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
set -e -x
3+
4+
cd $(dirname `readlink -f "$0"`)
5+
6+
PCIACCESS_VER="0.18"
7+
PCIACCESS="libpciaccess-$PCIACCESS_VER"
8+
9+
curl -sL --retry 10 https://www.x.org/releases/individual/lib/$PCIACCESS.tar.xz > $PCIACCESS.tar.xz
10+
sha512sum -c libpciaccess.sha512sum
11+
12+
tar xf $PCIACCESS.tar.xz
13+
cd $PCIACCESS
14+
15+
meson build/ $PG_BASE_MESON_FLAGS
16+
ninja -C build/ install
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
54dff9a493344586d072edf8c8eb8f7960c7dfd64aa5c51a8ec8d4e341f703fd39eb606ee41c4fdd9d5aad3372b7efe6e0fe96eadc575ea91de276320ebc3fbd libpciaccess-0.18.tar.xz
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
set -e -x
3+
4+
cd $(dirname `readlink -f "$0"`)
5+
6+
MACROS_VER="1.20.0"
7+
MACROS="util-macros-$MACROS_VER"
8+
9+
curl -sL --retry 10 https://www.x.org/releases/individual/util/$MACROS.tar.gz > $MACROS.tar.gz
10+
sha512sum -c macros.sha512sum
11+
12+
tar xzf $MACROS.tar.gz
13+
cd $MACROS
14+
15+
./configure $PG_BASE_CONFIGURE_FLAGS
16+
make
17+
make install
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0724cf57cbf00fe115596457bf2031cdad5845bebdcc1ee4ff90b4f77b4ebc862b0f7d250272ef58c2929aedead3d18d11f23f067e50fcac22863a1fcd4f3d66 util-macros-1.20.0.tar.gz

0 commit comments

Comments
 (0)