Skip to content

Commit b2e99e2

Browse files
bootstrap: use GitLab repos for mesa-demos and xorg-xinit
* Bumps `xorg-server` - requires rebuild of `xf86-video-fbdev` Fixes #103 Signed-off-by: Anhad Singh <[email protected]>
1 parent 7341fb5 commit b2e99e2

File tree

4 files changed

+109
-112
lines changed

4 files changed

+109
-112
lines changed

bootstrap/xorg.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ packages:
564564
environ:
565565
DESTDIR: '@THIS_COLLECT_DIR@'
566566

567-
- name: mesa-utils
567+
- name: mesa-demos
568568
source:
569569
subdir: 'bundled'
570-
git: 'https://github.com/freedesktop/mesa-demos'
570+
git: 'https://gitlab.freedesktop.org/mesa/demos.git/'
571571
branch: 'master'
572572
tools_required:
573573
- host-autoconf-v2.69
@@ -934,7 +934,7 @@ packages:
934934
- name: xorg-xinit
935935
source:
936936
subdir: 'bundled'
937-
git: 'https://github.com/freedesktop/xorg-xinit'
937+
git: 'https://gitlab.freedesktop.org/xorg/app/xinit'
938938
tag: 'xinit-1.3.4'
939939
version: '1.3.4'
940940
tools_required:
@@ -981,8 +981,8 @@ packages:
981981
source:
982982
subdir: 'bundled'
983983
git: 'https://gitlab.freedesktop.org/xorg/xserver.git'
984-
tag: 'xorg-server-1.20.14'
985-
version: '1.20.14'
984+
tag: 'xorg-server-21.1.8'
985+
version: '21.1.8'
986986
tools_required:
987987
- host-autoconf-v2.69
988988
- host-automake-v1.16

patches/mesa-utils/mesa-utils.patch

Lines changed: 0 additions & 29 deletions
This file was deleted.

patches/mlibc/mlibc.patch

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
From 9a74ab891ad2f1e2c47ef495767e5b3a25c33fa2 Mon Sep 17 00:00:00 2001
1+
From 3f789791be46cefe9ff8a5c6196a3a23bed9620f Mon Sep 17 00:00:00 2001
22
From: Andy-Python-Programmer <[email protected]>
33
Date: Sun, 16 Apr 2023 14:21:09 +1000
44
Subject: [PATCH] <xxx>
55

66
Signed-off-by: Andy-Python-Programmer <[email protected]>
77
---
88
.gitignore | 2 ++
9-
options/ansi/generic/stdlib-stubs.cpp | 6 ++++--
10-
options/glibc/generic/execinfo.cpp | 5 +++--
9+
options/ansi/generic/stdlib-stubs.cpp | 6 +++--
10+
options/glibc/generic/execinfo.cpp | 5 ++--
1111
options/rtdl/generic/linker.cpp | 2 +-
12-
sysdeps/aero/generic/aero.cpp | 27 +++++++++++++++++--------
13-
sysdeps/aero/generic/filesystem.cpp | 14 +++++++------
14-
sysdeps/aero/generic/sockets.cpp | 29 +++++++++++++++++++++++++--
15-
sysdeps/aero/include/aero/syscall.h | 10 +++++++++
16-
8 files changed, 74 insertions(+), 21 deletions(-)
12+
sysdeps/aero/generic/aero.cpp | 27 +++++++++++++++-------
13+
sysdeps/aero/generic/filesystem.cpp | 33 ++++++++++++++-------------
14+
sysdeps/aero/generic/sockets.cpp | 29 +++++++++++++++++++++--
15+
sysdeps/aero/include/aero/syscall.h | 10 ++++++++
16+
8 files changed, 83 insertions(+), 31 deletions(-)
1717

1818
diff --git a/.gitignore b/.gitignore
1919
index fdd60a0..9f811f4 100644
@@ -125,7 +125,7 @@ index 6eeb980..e6bd277 100644
125125
}
126126

127127
diff --git a/sysdeps/aero/generic/filesystem.cpp b/sysdeps/aero/generic/filesystem.cpp
128-
index a2c483b..5332f22 100644
128+
index a2c483b..fa5a369 100644
129129
--- a/sysdeps/aero/generic/filesystem.cpp
130130
+++ b/sysdeps/aero/generic/filesystem.cpp
131131
@@ -155,14 +155,16 @@ int sys_tcgetattr(int fd, struct termios *attr) {
@@ -151,6 +151,40 @@ index a2c483b..5332f22 100644
151151
return e;
152152

153153
return 0;
154+
@@ -178,9 +180,7 @@ int sys_mkdir(const char *path, mode_t) {
155+
return 0;
156+
}
157+
158+
-int sys_rmdir(const char *path) UNIMPLEMENTED("sys_rmdir")
159+
-
160+
- int sys_link(const char *srcpath, const char *destpath) {
161+
+int sys_link(const char *srcpath, const char *destpath) {
162+
auto result =
163+
syscall(SYS_LINK, srcpath, strlen(srcpath), destpath, strlen(destpath));
164+
165+
@@ -191,14 +191,15 @@ int sys_rmdir(const char *path) UNIMPLEMENTED("sys_rmdir")
166+
return 0;
167+
}
168+
169+
-int sys_unlinkat(int fd, const char *path, int flags) {
170+
- auto result = syscall(SYS_UNLINK, fd, path, strlen(path), flags);
171+
-
172+
- if (result < 0) {
173+
- return -result;
174+
- }
175+
+int sys_rmdir(const char *path) {
176+
+ return sys_unlinkat(AT_FDCWD, path, AT_REMOVEDIR);
177+
+}
178+
179+
- return 0;
180+
+int sys_unlinkat(int fd, const char *path, int flags) {
181+
+ auto ret = syscall(SYS_UNLINK, fd, path, strlen(path), flags);
182+
+ if (int e = sc_error(ret); e)
183+
+ return e;
184+
+ return 0;
185+
}
186+
187+
struct aero_dir_entry {
154188
diff --git a/sysdeps/aero/generic/sockets.cpp b/sysdeps/aero/generic/sockets.cpp
155189
index 4db9956..4cb3ee8 100644
156190
--- a/sysdeps/aero/generic/sockets.cpp
@@ -228,5 +262,5 @@ index aa642e5..d8bf99e 100644
228262
+}
229263
#endif // SYSCALL_H
230264
--
231-
2.40.0
265+
2.40.1
232266

0 commit comments

Comments
 (0)