From 6327522add55a5e4c9661d5b3c7570aabcc7c481 Mon Sep 17 00:00:00 2001 From: diviocity Date: Tue, 1 Dec 2026 03:34:43 +0100 Subject: [PATCH] Keep packaged compiler and X11 paths accessible to desktop users --- ports/binutils/PKGBUILD.vile | 3 ++- ports/freeglut/PKGBUILD.vile | 3 ++- ports/gcc/PKGBUILD.vile | 3 ++- ports/xf86-video-fbdev/PKGBUILD.vile | 3 ++- ports/xinit/PKGBUILD.vile | 4 +++- ports/xorg-server/PKGBUILD.vile | 3 ++- 6 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ports/binutils/PKGBUILD.vile b/ports/binutils/PKGBUILD.vile index 5d35031..b3c15bb 100644 --- a/ports/binutils/PKGBUILD.vile +++ b/ports/binutils/PKGBUILD.vile @@ -17,7 +17,7 @@ check-tool := fn(dir, name, args) { defpkgbuild(binutils, #:pkgname, "binutils", #:pkgver, "2.43.1", - #:pkgrel, if string=?(arch, "aarch64") { 4 } else { 3 }, + #:pkgrel, 5, #:pkgdesc, "GNU assembler, linker, and binary utilities for Vinix", #:arch, [#:x86-64, #:aarch64], #:url, "https://www.gnu.org/software/binutils/", @@ -111,4 +111,5 @@ defpkgbuild(binutils, }, list("i386pe", "i386pep")) } run("install", "-Dm644", "binutils-2.43.1/COPYING3", string-append(pkgdir(), "/usr/share/licenses/binutils/COPYING3")) + run("find", string-append(pkgdir(), "/usr"), "-type", "d", "-exec", "chmod", "755", "{}", "+") }) diff --git a/ports/freeglut/PKGBUILD.vile b/ports/freeglut/PKGBUILD.vile index 48228af..552c8b9 100644 --- a/ports/freeglut/PKGBUILD.vile +++ b/ports/freeglut/PKGBUILD.vile @@ -1,7 +1,7 @@ defpkgbuild(freeglut, #:pkgname, "freeglut", #:pkgver, "3.4.0", - #:pkgrel, 1, + #:pkgrel, 2, #:pkgdesc, "OpenGL Utility Toolkit for X11", #:arch, [#:x86-64, #:aarch64], #:url, "https://freeglut.sourceforge.net/", @@ -25,4 +25,5 @@ defpkgbuild(freeglut, run("test", "-s", string-append(pkgdir(), "/usr/lib/pkgconfig/glut.pc")) run("ln", "-s", "glut.pc", string-append(pkgdir(), "/usr/lib/pkgconfig/freeglut.pc")) run("install", "-Dm644", "freeglut-3.4.0/COPYING", string-append(pkgdir(), "/usr/share/licenses/freeglut/COPYING")) + run("find", string-append(pkgdir(), "/usr"), "-type", "d", "-exec", "chmod", "755", "{}", "+") }) diff --git a/ports/gcc/PKGBUILD.vile b/ports/gcc/PKGBUILD.vile index 3e84537..3c494bd 100644 --- a/ports/gcc/PKGBUILD.vile +++ b/ports/gcc/PKGBUILD.vile @@ -38,7 +38,7 @@ itm-compiler := fn() { defpkgbuild(gcc, #:pkgname, "gcc", #:pkgver, "14.2.0", - #:pkgrel, 2, + #:pkgrel, 3, #:pkgdesc, "GNU C and C++ compilers, headers and development libraries for Vinix", #:arch, [#:x86-64, #:aarch64], #:url, "https://gcc.gnu.org/", @@ -169,4 +169,5 @@ defpkgbuild(gcc, run("install", "-Dm644", string-append(build-dir(), "/gcc-14.2.0/COPYING.RUNTIME"), string-append(pkgdir(), "/usr/share/licenses/gcc/COPYING.RUNTIME")) ; The worker's private umask must not restrict public compiler paths. run("find", pkgdir(), "-type", "d", "-exec", "chmod", "755", "{}", "+") + run("find", string-append(pkgdir(), "/usr"), "-type", "f", "-exec", "chmod", "a+rX", "{}", "+") }) diff --git a/ports/xf86-video-fbdev/PKGBUILD.vile b/ports/xf86-video-fbdev/PKGBUILD.vile index fa62813..25a3f49 100644 --- a/ports/xf86-video-fbdev/PKGBUILD.vile +++ b/ports/xf86-video-fbdev/PKGBUILD.vile @@ -1,7 +1,7 @@ defpkgbuild(xf86-video-fbdev, #:pkgname, "xf86-video-fbdev", #:pkgver, "0.5.1", - #:pkgrel, 1, + #:pkgrel, 2, #:pkgdesc, "Vinix Xorg framebuffer driver", #:arch, [#:x86-64, #:aarch64], #:license, "MIT", @@ -33,4 +33,5 @@ defpkgbuild(xf86-video-fbdev, run("make", "install", "moduledir=/usr/lib/xorg/modules", string-append("DESTDIR=", pkgdir())) run("find", pkgdir(), "-name", "*.la", "-delete") run("install", "-Dm644", "xf86-video-fbdev-0.5.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/xf86-video-fbdev/COPYING")) + run("find", string-append(pkgdir(), "/usr"), "-type", "d", "-exec", "chmod", "755", "{}", "+") }) diff --git a/ports/xinit/PKGBUILD.vile b/ports/xinit/PKGBUILD.vile index 85c38e4..9d1035c 100644 --- a/ports/xinit/PKGBUILD.vile +++ b/ports/xinit/PKGBUILD.vile @@ -1,7 +1,7 @@ defpkgbuild(xinit, #:pkgname, "xinit", #:pkgver, "1.4.2", - #:pkgrel, 1, + #:pkgrel, 2, #:pkgdesc, "X.Org initialisation program", #:arch, [#:x86-64, #:aarch64], #:license, "MIT AND GPL-2.0-or-later", @@ -25,4 +25,6 @@ defpkgbuild(xinit, run("install", "-m755", "vinix-startx", string-append(pkgdir(), "/usr/bin/startx")) run("install", "-Dm644", "xinit-1.4.2/COPYING", string-append(pkgdir(), "/usr/share/licenses/xinit/COPYING")) + run("find", string-append(pkgdir(), "/etc"), string-append(pkgdir(), "/usr"), + "-type", "d", "-exec", "chmod", "755", "{}", "+") }) diff --git a/ports/xorg-server/PKGBUILD.vile b/ports/xorg-server/PKGBUILD.vile index 2a7cbd6..3c4eb98 100644 --- a/ports/xorg-server/PKGBUILD.vile +++ b/ports/xorg-server/PKGBUILD.vile @@ -1,7 +1,7 @@ defpkgbuild(xorg-server, #:pkgname, "xorg-server", #:pkgver, "21.1.16", - #:pkgrel, 1, + #:pkgrel, 2, #:pkgdesc, "Vinix Xorg server and GLX-enabled Xvfb", #:arch, [#:x86-64, #:aarch64], #:license, "MIT", @@ -40,4 +40,5 @@ defpkgbuild(xorg-server, run("rm", "-f", string-append(pkgdir(), "/usr/share/man/man1/Xvfb.1")) run("find", pkgdir(), "-name", "*.la", "-delete") run("install", "-Dm644", "xorg-server-21.1.16/COPYING", string-append(pkgdir(), "/usr/share/licenses/xorg-server/COPYING")) + run("find", string-append(pkgdir(), "/usr"), "-type", "d", "-exec", "chmod", "755", "{}", "+") }) -- 2.56.1