diff --git a/srcpkgs/ol/patches/http.patch b/srcpkgs/ol/patches/http.patch new file mode 100644 index 00000000000..672ae727334 --- /dev/null +++ b/srcpkgs/ol/patches/http.patch @@ -0,0 +1,13 @@ +diff --git a/libraries/http/server b/libraries/http/server +index 47127b8f..a51bd17f 100644 +--- a/libraries/http/server ++++ b/libraries/http/server +@@ -148,7 +148,7 @@ + (display " ") + ; list folder: + (define Out (pipe)) +- (define Pid (system (list "/bin/sh" "-c" (string-append ++ (define Pid (execvp (list "/bin/sh" "-c" (string-append + "ls -lah " filename)) #f Out)) + + (send "HTTP/1.0 200 OK\n" diff --git a/srcpkgs/ol/patches/ppcxx.patch b/srcpkgs/ol/patches/ppcxx.patch new file mode 100644 index 00000000000..5d0e1f66e4a --- /dev/null +++ b/srcpkgs/ol/patches/ppcxx.patch @@ -0,0 +1,15 @@ +diff --git a/extensions/ffi.c b/extensions/ffi.c +index c6a16d79..02e5c268 100644 +--- a/extensions/ffi.c ++++ b/extensions/ffi.c +@@ -2670,9 +2670,9 @@ word* OLVM_ffi(olvm_t* this, word arguments) + j = l; + } + else { // в регистр с плавающей запятой ++#if (__x86_64__ && (__unix__ || __APPLE__)) + // move from ptr to the ad + *(int64_t*)&ad[d++] = args[j]; +-#if (__x86_64__ && (__unix__ || __APPLE__)) + fpmask |= 1; + #endif + } diff --git a/srcpkgs/ol/patches/xxd.patch b/srcpkgs/ol/patches/xxd.patch new file mode 100644 index 00000000000..518caea411f --- /dev/null +++ b/srcpkgs/ol/patches/xxd.patch @@ -0,0 +1,24 @@ +diff --git a/GNUmakefile b/GNUmakefile +index 218cc40b..1306f92c 100644 +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -49,19 +49,7 @@ includes/ol/vm.h: src/olvm.c + + tmp/repl.c: repl + # vim +-ifneq ($(shell which xxd),) + xxd --include repl >tmp/repl.c +-else +-# coreutils +-ifneq ($(shell which od),) +- od -An -vtx1 repl| tr -d '\n'| sed \ +- -e 's/^ /0x/' -e 's/ /,0x/g' \ +- -e 's/^/unsigned char repl[] = {/' \ +- -e 's/$$/};/'> $@ +-else +- $(error "You must have 'od' (coreutils) or 'xxd' (vim) tool installed.") +-endif +-endif + + # or + # echo '(display "unsigned char repl[] = {") (lfor-each (lambda (x) (for-each display (list x ","))) (file->bytestream "repl")) (display "0};")'| ./vm repl> tmp/repl.c diff --git a/srcpkgs/ol/template b/srcpkgs/ol/template index 9a78e836750..8b966dcbd29 100644 --- a/srcpkgs/ol/template +++ b/srcpkgs/ol/template @@ -1,6 +1,6 @@ # Template file for 'ol' pkgname=ol -version=2.4 +version=2.5.1 revision=1 build_style=gnu-makefile make_use_env=yes @@ -11,8 +11,11 @@ maintainer="rc-05 " license="LGPL-3.0-or-later, MIT" homepage="https://yuriy-chumak.github.io/ol/" changelog="https://raw.githubusercontent.com/yuriy-chumak/ol/master/doc/CHANGELOG.md" -distfiles="https://github.com/yuriy-chumak/ol/archive/${version}.tar.gz" -checksum=019978ddcf0befc8b8de9f50899c9dd0f47a3e18cf9556bc72a75ae2d1d965d4 +distfiles=" + https://github.com/yuriy-chumak/ol/archive/${version}.tar.gz + https://github.com/yuriy-chumak/libol-opengl/archive/refs/tags/${version}.tar.gz>libopengl-${version}.tar.gz" +checksum="d9fe66bd15cf9c9c30bf45b97e5825c2101b518fc27c671c08a95798eec3c510 + 5ccb4e056319e16e3825a7c05d8aa456ce0e87a3111597a2177cc63a67978ffb" if [[ "$XBPS_TARGET_WORDSIZE" -eq 32 ]]; then make_check_args="HAS_64CDEFS=0" @@ -20,6 +23,16 @@ else make_check_args="HAS_32CDEFS=0" fi +post_extract() { + # collect project files: + mv -v ol-${version}/* . + mv -v ol-${version}/.* . + rmdir ol-${version} + # move OpenGL submodule to the proper location: + mv -v libol-opengl-${version}/* ./libraries/OpenGL/ + rmdir libol-opengl-${version} +} + post_install() { vlicense LICENSE }