Github messages for voidlinux
 help / color / mirror / Atom feed
From: yuriy-chumak <yuriy-chumak@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] ol: update to 2.5.1.
Date: Thu, 08 Feb 2024 22:05:12 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48613@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]

There is a new pull request by yuriy-chumak against master on the void-packages repository

https://github.com/otus-lisp/void-packages ol
https://github.com/void-linux/void-packages/pull/48613

ol: update to 2.5.1.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built and tested this PR locally for my native architecture, **x86_64**
- I built and tested (using **proot** and **qemu**) this PR locally for these architectures:
  - :heavy_check_mark: x86_64, :heavy_check_mark: x86_64-musl
  - :heavy_check_mark: aarch64, :heavy_check_mark: aarch64-musl
  - :heavy_check_mark: armv5te, :heavy_check_mark: armv5te-musl
  - :heavy_check_mark: armv5tel, :heavy_check_mark: armv5tel-musl
  - :heavy_check_mark: armv6l, :heavy_check_mark: armv6l-musl
  - :heavy_check_mark: armv6hf, :heavy_check_mark: armv6hf-musl
  - :heavy_check_mark: armv7l, :heavy_check_mark: armv7l-musl
  - :heavy_check_mark: armv7hf, :heavy_check_mark: armv7hf-musl
  - :heavy_check_mark: i686, :heavy_check_mark: i686-musl
  - :heavy_check_mark: mips-musl, :heavy_check_mark: mipsel-musl, :heavy_check_mark: mipshf-musl, :heavy_check_mark: mipselhf-musl
  - :heavy_check_mark: ppc64, :heavy_check_mark: ppc64-musl
  - :heavy_check_mark: ppc64le, :heavy_check_mark: ppc64le-musl
  - :heavy_check_mark: ppc, :heavy_check_mark: ppc-musl
  - :heavy_check_mark: ppcle (built but not tested), :heavy_check_mark: ppcle-musl (built but not tested)


A patch file from https://github.com/void-linux/void-packages/pull/48613.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ol-48613.patch --]
[-- Type: text/x-diff, Size: 3586 bytes --]

From 9492520b315f5c106f6493c0d196724cbebf057c Mon Sep 17 00:00:00 2001
From: Yuriy Chumak <yuriy.chumak@mail.com>
Date: Thu, 8 Feb 2024 21:36:13 +0200
Subject: [PATCH] ol: update to 2.5.1.

---
 srcpkgs/ol/patches/ppcxx.patch | 15 +++++++++++++++
 srcpkgs/ol/patches/xxd.patch   | 24 ++++++++++++++++++++++++
 srcpkgs/ol/template            | 19 ++++++++++++++++---
 3 files changed, 55 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/ol/patches/ppcxx.patch
 create mode 100644 srcpkgs/ol/patches/xxd.patch

diff --git a/srcpkgs/ol/patches/ppcxx.patch b/srcpkgs/ol/patches/ppcxx.patch
new file mode 100644
index 0000000000000..5d0e1f66e4abb
--- /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 0000000000000..518caea411fa3
--- /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 9a78e836750e9..8b966dcbd291b 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 <rc23@email.it>"
 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
 }

             reply	other threads:[~2024-02-08 21:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-08 21:05 yuriy-chumak [this message]
2024-02-08 22:16 ` [PR PATCH] [Updated] " yuriy-chumak
2024-02-12 14:33 ` [PR PATCH] [Merged]: " leahneukirchen
2024-02-12 23:13 ` yuriy-chumak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-48613@inbox.vuxu.org \
    --to=yuriy-chumak@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).