Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] WIP: New package: lightspark
@ 2020-07-14  1:01 fosslinux
  2020-07-14  1:08 ` [PR REVIEW] " ericonr
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: fosslinux @ 2020-07-14  1:01 UTC (permalink / raw)
  To: ml

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

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

https://github.com/fosslinux/void-packages lightspark
https://github.com/void-linux/void-packages/pull/23555

WIP: New package: lightspark
Try the test suite on musl. It is subtly broken, hanging seemingly randomly every now and then...... No clue what the problem is, or if it is test suite specific, or whatever



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

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

From cebcafe9ff6485eb3520639b6410171d0f06ba49 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Tue, 14 Jul 2020 10:55:25 +1000
Subject: [PATCH 1/3] New package: xvfb-run-1.20.8.2

---
 srcpkgs/xvfb-run/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/xvfb-run/template

diff --git a/srcpkgs/xvfb-run/template b/srcpkgs/xvfb-run/template
new file mode 100644
index 00000000000..57eae942674
--- /dev/null
+++ b/srcpkgs/xvfb-run/template
@@ -0,0 +1,22 @@
+# Template file for 'xvfb-run'
+# Adapted from Alpine
+pkgname=xvfb-run
+version=1.20.8.2 # Debian pkgver + pkgrel
+revision=1
+_debian_rel=${version%.*}-${version##*.}
+create_wrksrc=yes
+build_style=fetch
+depends="xorg-server-xvfb xauth"
+short_desc="Wrapper for the Xvfb command simplifying running commands"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-2.0-or-later"
+homepage="https://salsa.debian.org/xorg-team/xserver/xorg-server/tree/debian-unstable/debian/local"
+distfiles="https://salsa.debian.org/xorg-team/xserver/xorg-server/raw/xorg-server-2_${_debian_rel}/debian/local/xvfb-run
+ https://salsa.debian.org/xorg-team/xserver/xorg-server/raw/xorg-server-2_${_debian_rel}/debian/local/xvfb-run.1"
+checksum="fd05e0f8e6207c3984b980a0f037381c9c4a6f22a6dd94fdcfa995318db2a0a4
+ 08f14f55e14e52e5d98713c4d8f25ae68d67e2ee188dc0247770c6ada6e27c05"
+
+do_install() {
+	install -Dm755 xvfb-run "${DESTDIR}/usr/bin/xvfb-run"
+	install -Dm644 xvfb-run.1 "${DESTDIR}/usr/share/man/man1/xvfb-run.1"
+}

From 64ac5f32756f4dbadc4a435cf6a841b5e5e21cd5 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 13 Jul 2020 08:41:51 +1000
Subject: [PATCH 2/3] New package: adobe-flex-sdk-4.6

---
 srcpkgs/adobe-flex-sdk/template | 44 +++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 srcpkgs/adobe-flex-sdk/template

diff --git a/srcpkgs/adobe-flex-sdk/template b/srcpkgs/adobe-flex-sdk/template
new file mode 100644
index 00000000000..8946938cf28
--- /dev/null
+++ b/srcpkgs/adobe-flex-sdk/template
@@ -0,0 +1,44 @@
+# Template file for 'adobe-flex-sdk'
+pkgname=adobe-flex-sdk
+version=4.6
+revision=1
+create_wrksrc=yes
+depends="openjdk-jre"
+short_desc="Freely develop and deploy Flex applications"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="custom:Adobe License (non free)"
+homepage="https://www.adobe.com/devnet/flex/flex-sdk-download.html"
+distfiles="http://download.macromedia.com/pub/flex/sdk/flex_sdk_${version}.zip"
+checksum=622b63f29de44600ff8d4231174a70fcb3085812c0e146a42e91877ca8b46798
+repository="nonfree"
+restricted=yes
+# free(): invalid pointer
+nostrip=yes
+skiprdeps="/usr/lib/adobe-flex-sdk/lib/android/FlashRuntimeExtensions.so"
+
+post_extract() {
+	rm *.htm *.txt
+	mv 'AIR SDK license.pdf' LICENSE.pdf
+}
+
+do_install() {
+	vlicense LICENSE.pdf
+	rm LICENSE.pdf
+	mkdir -p "${DESTDIR}/usr/lib/adobe-flex-sdk/"
+	cp -rfv * "${DESTDIR}/usr/lib/adobe-flex-sdk/"
+	mkdir -p "${DESTDIR}/usr/bin/"
+	for f in "${DESTDIR}/usr/lib/adobe-flex-sdk/bin/"* ; do
+		f="$(basename ${f})"
+		case ${f} in
+			*.exe) ;;
+			*.bat) ;;
+			jvm.config) ;;
+			*)
+				echo "creating smallscript for ${f} in /usr/bin"
+				echo '#!/bin/sh' > "${DESTDIR}/usr/bin/${f}"
+				echo '/usr/lib/adobe-flex-sdk/bin/'"${f}"' "$@"' >> "${DESTDIR}/usr/bin/${f}"
+				chmod 755 "${DESTDIR}/usr/bin/${f}"
+				;;
+		esac
+	done
+}

From b7e5a63624c04ec222d0e6b730e9e71a6adc0ac4 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 13 Jul 2020 08:42:40 +1000
Subject: [PATCH 3/3] New package: lightspark-0.8.3

---
 common/shlibs                          |  1 +
 srcpkgs/lightspark/files/avmplus.patch | 22 ++++++++++++++
 srcpkgs/lightspark/template            | 40 ++++++++++++++++++++++++++
 3 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/lightspark/files/avmplus.patch
 create mode 100644 srcpkgs/lightspark/template

diff --git a/common/shlibs b/common/shlibs
index 00a0af53fcb..d7f010b4d49 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3977,3 +3977,4 @@ libsepol.so.1 libsepol-3.0_1
 libfrrcares.so.0 libfrr-7.3.1_1
 libhugetlbfs.so.0 libhugetlbfs-2.22_1
 libdolphinvcs.so.5 dolphin-plugins-20.04.2_1
+liblightspark.so.0.8 lightspark-0.8.3_1
diff --git a/srcpkgs/lightspark/files/avmplus.patch b/srcpkgs/lightspark/files/avmplus.patch
new file mode 100644
index 00000000000..da3987df097
--- /dev/null
+++ b/srcpkgs/lightspark/files/avmplus.patch
@@ -0,0 +1,22 @@
+--- AVMPI/MMgcPortUnix.cpp	2020-07-13 19:29:31.368000000 +1000
++++ AVMPI/MMgcPortUnix.cpp	2020-07-13 19:30:14.934000000 +1000
+@@ -46,7 +46,7 @@
+     #define FLUSHWIN()
+ #endif
+ 
+-#if defined linux && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID
++#if defined linux && defined __GLIBC__ && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID
+ #include <execinfo.h>
+ #define HAVE_BACKTRACE
+ #endif
+--- core/exec.cpp	2020-07-13 19:31:28.076000000 +1000
++++ core/exec.cpp	2020-07-13 19:31:36.176000000 +1000
+@@ -806,7 +806,7 @@
+ failure:
+     AvmCore* core = env->core();
+     env->toplevel()->throwTypeError(kCheckTypeFailedError, core->atomToErrorString(atom), core->toErrorString(t));
+-    return unreachableAtom;
++    return 0;
+ }
+ 
+ // Coerce an argument to an expected type, but keep it represented as Atom.
diff --git a/srcpkgs/lightspark/template b/srcpkgs/lightspark/template
new file mode 100644
index 00000000000..fffca753943
--- /dev/null
+++ b/srcpkgs/lightspark/template
@@ -0,0 +1,40 @@
+# Template file for 'lightspark'
+pkgname=lightspark
+version=0.8.3
+revision=1
+build_style=cmake
+hostmakedepends="nasm pkg-config gettext"
+makedepends="MesaLib-devel glew-devel libcurl-devel ffmpeg-devel pcre-devel
+ librtmp-devel cairo-devel SDL2-devel SDL2_mixer-devel libjpeg-turbo-devel
+ pango-devel liblzma-devel glibmm-devel"
+checkdepends="which xvfb-run adobe-flex-sdk git python"
+short_desc="Open source flash player implementation"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="LGPL-3.0-or-later"
+homepage="https://lightspark.github.io"
+distfiles="https://github.com/lightspark/lightspark/archive/${version}.tar.gz"
+checksum=5276818e6d78ddf12a9304bc8c2ceeec0ca0759a99d56a4521e1fdc06893b1bd
+
+post_extract() {
+	# Remove build script that we are using for the CMake directory
+	rm build
+}
+
+do_check() {
+	cd tests
+	# Compile tamarin tests
+	git clone --depth=1 https://github.com/adobe/avmplus
+	cp /usr/lib/adobe-flex-sdk/lib/asc.jar avmplus/utils/
+	pushd avmplus
+	patch -Np0 -i "${FILESDIR}/avmplus.patch"
+	popd
+	mkdir avmplus/objdir
+	pushd avmplus/objdir
+	python ../configure.py
+	sed -i "s/-Werror/-Wno-narrowing/" Makefile
+	make ${makejobs}
+	popd
+	TAMARIN=$PWD/avmplus ./make-tamarin
+	# run tests
+	./tests -e ../build/x86_64/Release/bin/lightspark -nc
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
@ 2020-07-14  1:08 ` ericonr
  2020-07-14  1:08 ` ericonr
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericonr @ 2020-07-14  1:08 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#discussion_r454037193

Comment:
Make it clear that `nostrip` is because of this error, if that's the case.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
  2020-07-14  1:08 ` [PR REVIEW] " ericonr
@ 2020-07-14  1:08 ` ericonr
  2020-07-14  1:23 ` fosslinux
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericonr @ 2020-07-14  1:08 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#discussion_r454037656

Comment:
`vbin` and `vman`

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
  2020-07-14  1:08 ` [PR REVIEW] " ericonr
  2020-07-14  1:08 ` ericonr
@ 2020-07-14  1:23 ` fosslinux
  2020-07-14  1:24 ` fosslinux
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2020-07-14  1:23 UTC (permalink / raw)
  To: ml

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

New review comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#discussion_r454042022

Comment:
How do I do that better than in a comment above it?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (2 preceding siblings ...)
  2020-07-14  1:23 ` fosslinux
@ 2020-07-14  1:24 ` fosslinux
  2020-07-14  1:27 ` ericonr
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2020-07-14  1:24 UTC (permalink / raw)
  To: ml

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

New review comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#discussion_r454042022

Comment:
How do I do that better than in a comment above it? Add more detail? Something like "nostrip because of error free(): invalid pointer"?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (3 preceding siblings ...)
  2020-07-14  1:24 ` fosslinux
@ 2020-07-14  1:27 ` ericonr
  2020-07-14  1:27 ` ericonr
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericonr @ 2020-07-14  1:27 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#discussion_r454042961

Comment:
Yeah, basically. When first looking at it, it looked like you had pasted something onto it. Either your example or `stripping causes error frere(): invalid pointer` should be good.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (4 preceding siblings ...)
  2020-07-14  1:27 ` ericonr
@ 2020-07-14  1:27 ` ericonr
  2020-07-14  1:42 ` [PR PATCH] [Updated] " fosslinux
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericonr @ 2020-07-14  1:27 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#discussion_r454042961

Comment:
Yeah, basically. When first looking at it, it looked like you had pasted something onto it. Either your example or `stripping causes error free(): invalid pointer` should be good.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (5 preceding siblings ...)
  2020-07-14  1:27 ` ericonr
@ 2020-07-14  1:42 ` fosslinux
  2020-07-14  1:42 ` fosslinux
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2020-07-14  1:42 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by fosslinux against master on the void-packages repository

https://github.com/fosslinux/void-packages lightspark
https://github.com/void-linux/void-packages/pull/23555

WIP: New package: lightspark
Try the test suite on musl. It is subtly broken, hanging seemingly randomly every now and then...... No clue what the problem is, or if it is test suite specific, or whatever



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

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

From 0c80f8493d95eaad3c41f7f678f1e99f9c9606c9 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Tue, 14 Jul 2020 10:55:25 +1000
Subject: [PATCH 1/3] New package: xvfb-run-1.20.8.2

---
 srcpkgs/xvfb-run/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/xvfb-run/template

diff --git a/srcpkgs/xvfb-run/template b/srcpkgs/xvfb-run/template
new file mode 100644
index 00000000000..cac13502ede
--- /dev/null
+++ b/srcpkgs/xvfb-run/template
@@ -0,0 +1,22 @@
+# Template file for 'xvfb-run'
+# Adapted from Alpine
+pkgname=xvfb-run
+version=1.20.8.2 # Debian pkgver + pkgrel
+revision=1
+_debian_rel=${version%.*}-${version##*.}
+create_wrksrc=yes
+build_style=fetch
+depends="xorg-server-xvfb xauth"
+short_desc="Wrapper for the Xvfb command simplifying running commands"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="GPL-2.0-or-later"
+homepage="https://salsa.debian.org/xorg-team/xserver/xorg-server/tree/debian-unstable/debian/local"
+distfiles="https://salsa.debian.org/xorg-team/xserver/xorg-server/raw/xorg-server-2_${_debian_rel}/debian/local/xvfb-run
+ https://salsa.debian.org/xorg-team/xserver/xorg-server/raw/xorg-server-2_${_debian_rel}/debian/local/xvfb-run.1"
+checksum="fd05e0f8e6207c3984b980a0f037381c9c4a6f22a6dd94fdcfa995318db2a0a4
+ 08f14f55e14e52e5d98713c4d8f25ae68d67e2ee188dc0247770c6ada6e27c05"
+
+do_install() {
+	vbin xvfb-run
+	vman xvfb-run.1
+}

From ad7e4d0c845575303943da0977bce5541a659f74 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 13 Jul 2020 08:41:51 +1000
Subject: [PATCH 2/3] New package: adobe-flex-sdk-4.6

---
 srcpkgs/adobe-flex-sdk/template | 44 +++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 srcpkgs/adobe-flex-sdk/template

diff --git a/srcpkgs/adobe-flex-sdk/template b/srcpkgs/adobe-flex-sdk/template
new file mode 100644
index 00000000000..7dd38101817
--- /dev/null
+++ b/srcpkgs/adobe-flex-sdk/template
@@ -0,0 +1,44 @@
+# Template file for 'adobe-flex-sdk'
+pkgname=adobe-flex-sdk
+version=4.6
+revision=1
+create_wrksrc=yes
+depends="openjdk-jre"
+short_desc="Freely develop and deploy Flex applications"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="custom:Adobe License (non free)"
+homepage="https://www.adobe.com/devnet/flex/flex-sdk-download.html"
+distfiles="http://download.macromedia.com/pub/flex/sdk/flex_sdk_${version}.zip"
+checksum=622b63f29de44600ff8d4231174a70fcb3085812c0e146a42e91877ca8b46798
+repository="nonfree"
+restricted=yes
+# strip fails with error free(): invalid pointer
+nostrip=yes
+skiprdeps="/usr/lib/adobe-flex-sdk/lib/android/FlashRuntimeExtensions.so"
+
+post_extract() {
+	rm *.htm *.txt
+	mv 'AIR SDK license.pdf' LICENSE.pdf
+}
+
+do_install() {
+	vlicense LICENSE.pdf
+	rm LICENSE.pdf
+	mkdir -p "${DESTDIR}/usr/lib/adobe-flex-sdk/"
+	cp -rfv * "${DESTDIR}/usr/lib/adobe-flex-sdk/"
+	mkdir -p "${DESTDIR}/usr/bin/"
+	for f in "${DESTDIR}/usr/lib/adobe-flex-sdk/bin/"* ; do
+		f="$(basename ${f})"
+		case ${f} in
+			*.exe) ;;
+			*.bat) ;;
+			jvm.config) ;;
+			*)
+				echo "creating smallscript for ${f} in /usr/bin"
+				echo '#!/bin/sh' > "${DESTDIR}/usr/bin/${f}"
+				echo '/usr/lib/adobe-flex-sdk/bin/'"${f}"' "$@"' >> "${DESTDIR}/usr/bin/${f}"
+				chmod 755 "${DESTDIR}/usr/bin/${f}"
+				;;
+		esac
+	done
+}

From b921d330e9ac7f1fe2ff253bc30019475d918f2f Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 13 Jul 2020 08:42:40 +1000
Subject: [PATCH 3/3] New package: lightspark-0.8.3

---
 common/shlibs                          |  1 +
 srcpkgs/lightspark/files/avmplus.patch | 22 +++++++++++++
 srcpkgs/lightspark/template            | 44 ++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/lightspark/files/avmplus.patch
 create mode 100644 srcpkgs/lightspark/template

diff --git a/common/shlibs b/common/shlibs
index 00a0af53fcb..d7f010b4d49 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3977,3 +3977,4 @@ libsepol.so.1 libsepol-3.0_1
 libfrrcares.so.0 libfrr-7.3.1_1
 libhugetlbfs.so.0 libhugetlbfs-2.22_1
 libdolphinvcs.so.5 dolphin-plugins-20.04.2_1
+liblightspark.so.0.8 lightspark-0.8.3_1
diff --git a/srcpkgs/lightspark/files/avmplus.patch b/srcpkgs/lightspark/files/avmplus.patch
new file mode 100644
index 00000000000..da3987df097
--- /dev/null
+++ b/srcpkgs/lightspark/files/avmplus.patch
@@ -0,0 +1,22 @@
+--- AVMPI/MMgcPortUnix.cpp	2020-07-13 19:29:31.368000000 +1000
++++ AVMPI/MMgcPortUnix.cpp	2020-07-13 19:30:14.934000000 +1000
+@@ -46,7 +46,7 @@
+     #define FLUSHWIN()
+ #endif
+ 
+-#if defined linux && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID
++#if defined linux && defined __GLIBC__ && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID
+ #include <execinfo.h>
+ #define HAVE_BACKTRACE
+ #endif
+--- core/exec.cpp	2020-07-13 19:31:28.076000000 +1000
++++ core/exec.cpp	2020-07-13 19:31:36.176000000 +1000
+@@ -806,7 +806,7 @@
+ failure:
+     AvmCore* core = env->core();
+     env->toplevel()->throwTypeError(kCheckTypeFailedError, core->atomToErrorString(atom), core->toErrorString(t));
+-    return unreachableAtom;
++    return 0;
+ }
+ 
+ // Coerce an argument to an expected type, but keep it represented as Atom.
diff --git a/srcpkgs/lightspark/template b/srcpkgs/lightspark/template
new file mode 100644
index 00000000000..0b8cc5068a0
--- /dev/null
+++ b/srcpkgs/lightspark/template
@@ -0,0 +1,44 @@
+# Template file for 'lightspark'
+pkgname=lightspark
+version=0.8.3
+revision=1
+build_style=cmake
+hostmakedepends="nasm pkg-config gettext"
+makedepends="MesaLib-devel glew-devel libcurl-devel ffmpeg-devel pcre-devel
+ librtmp-devel cairo-devel SDL2-devel SDL2_mixer-devel libjpeg-turbo-devel
+ pango-devel liblzma-devel glibmm-devel"
+checkdepends="which xvfb-run adobe-flex-sdk git python"
+short_desc="Open source flash player implementation"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="LGPL-3.0-or-later"
+homepage="https://lightspark.github.io"
+distfiles="https://github.com/lightspark/lightspark/archive/${version}.tar.gz"
+checksum=5276818e6d78ddf12a9304bc8c2ceeec0ca0759a99d56a4521e1fdc06893b1bd
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+fi
+
+post_extract() {
+	# Remove build script that we are using for the CMake directory
+	rm build
+}
+
+do_check() {
+	cd tests
+	# Compile tamarin tests
+	git clone --depth=1 https://github.com/adobe/avmplus
+	cp /usr/lib/adobe-flex-sdk/lib/asc.jar avmplus/utils/
+	pushd avmplus
+	patch -Np0 -i "${FILESDIR}/avmplus.patch"
+	popd
+	mkdir avmplus/objdir
+	pushd avmplus/objdir
+	python ../configure.py
+	sed -i "s/-Werror/-Wno-narrowing/" Makefile
+	make ${makejobs}
+	popd
+	TAMARIN=$PWD/avmplus ./make-tamarin
+	# run tests
+	./tests -e ../build/x86_64/Release/bin/lightspark -nc
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (6 preceding siblings ...)
  2020-07-14  1:42 ` [PR PATCH] [Updated] " fosslinux
@ 2020-07-14  1:42 ` fosslinux
  2020-07-14  1:47 ` fosslinux
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2020-07-14  1:42 UTC (permalink / raw)
  To: ml

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

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#issuecomment-657916962

Comment:
atomic errors fixed and addressed comments

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (7 preceding siblings ...)
  2020-07-14  1:42 ` fosslinux
@ 2020-07-14  1:47 ` fosslinux
  2021-01-02 10:04 ` [PR PATCH] [Updated] " fosslinux
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2020-07-14  1:47 UTC (permalink / raw)
  To: ml

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

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#issuecomment-657916962

Comment:
atomic errors fixed and addressed comments

Tests also seem to be broken on i686 :sigh:

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (8 preceding siblings ...)
  2020-07-14  1:47 ` fosslinux
@ 2021-01-02 10:04 ` fosslinux
  2021-01-02 10:09 ` fosslinux
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2021-01-02 10:04 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by fosslinux against master on the void-packages repository

https://github.com/fosslinux/void-packages lightspark
https://github.com/void-linux/void-packages/pull/23555

WIP: New package: lightspark
Try the test suite on musl. It is subtly broken, hanging seemingly randomly every now and then...... No clue what the problem is, or if it is test suite specific, or whatever



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

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

From c00c0628963f4ce2c25e6b468efb7fdd1bce7c66 Mon Sep 17 00:00:00 2001
From: fosslinux <fosslinux@aussies.space>
Date: Mon, 13 Jul 2020 08:42:40 +1000
Subject: [PATCH] New package: lightspark-0.8.3

---
 common/shlibs                          |  2 ++
 srcpkgs/lightspark/files/avmplus.patch | 22 +++++++++++++++++++
 srcpkgs/lightspark/template            | 29 ++++++++++++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 srcpkgs/lightspark/files/avmplus.patch
 create mode 100644 srcpkgs/lightspark/template

diff --git a/common/shlibs b/common/shlibs
index 26a6259f6d2..5e457439399 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4040,3 +4040,5 @@ libndr-samba4.so samba-libs-4.13.2_1
 libsmb-transport-samba4.so samba-libs-4.13.2_1
 libutil-cmdline-samba4.so samba-libs-4.13.2_1
 libwinbind-client-samba4.so samba-libs-4.13.2_1
+libdolphinvcs.so.5 dolphin-plugins-20.04.2_1
+liblightspark.so.0.8 lightspark-0.8.3_1
diff --git a/srcpkgs/lightspark/files/avmplus.patch b/srcpkgs/lightspark/files/avmplus.patch
new file mode 100644
index 00000000000..da3987df097
--- /dev/null
+++ b/srcpkgs/lightspark/files/avmplus.patch
@@ -0,0 +1,22 @@
+--- AVMPI/MMgcPortUnix.cpp	2020-07-13 19:29:31.368000000 +1000
++++ AVMPI/MMgcPortUnix.cpp	2020-07-13 19:30:14.934000000 +1000
+@@ -46,7 +46,7 @@
+     #define FLUSHWIN()
+ #endif
+ 
+-#if defined linux && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID
++#if defined linux && defined __GLIBC__ && !defined VMCFG_MIPS && !defined VMCFG_ARM && !defined ANDROID
+ #include <execinfo.h>
+ #define HAVE_BACKTRACE
+ #endif
+--- core/exec.cpp	2020-07-13 19:31:28.076000000 +1000
++++ core/exec.cpp	2020-07-13 19:31:36.176000000 +1000
+@@ -806,7 +806,7 @@
+ failure:
+     AvmCore* core = env->core();
+     env->toplevel()->throwTypeError(kCheckTypeFailedError, core->atomToErrorString(atom), core->toErrorString(t));
+-    return unreachableAtom;
++    return 0;
+ }
+ 
+ // Coerce an argument to an expected type, but keep it represented as Atom.
diff --git a/srcpkgs/lightspark/template b/srcpkgs/lightspark/template
new file mode 100644
index 00000000000..25064c8f787
--- /dev/null
+++ b/srcpkgs/lightspark/template
@@ -0,0 +1,29 @@
+# Template file for 'lightspark'
+pkgname=lightspark
+version=0.8.3
+revision=1
+build_style=cmake
+hostmakedepends="nasm pkg-config gettext"
+makedepends="MesaLib-devel glew-devel libcurl-devel ffmpeg-devel pcre-devel
+ librtmp-devel cairo-devel SDL2-devel SDL2_mixer-devel libjpeg-turbo-devel
+ pango-devel liblzma-devel glibmm-devel"
+short_desc="Open source flash player implementation"
+maintainer="fosslinux <fosslinux@aussies.space>"
+license="LGPL-3.0-or-later"
+homepage="https://lightspark.github.io"
+distfiles="https://github.com/lightspark/lightspark/archive/${version}.tar.gz"
+checksum=5276818e6d78ddf12a9304bc8c2ceeec0ca0759a99d56a4521e1fdc06893b1bd
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+	makedepends+=" libatomic-devel"
+	configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
+fi
+
+post_extract() {
+	# Remove build script that we are using for the CMake directory
+	rm build
+}
+
+do_check() {
+	: # Requires a dumb piece of proprietary software that isn't even avaliable
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: WIP: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (9 preceding siblings ...)
  2021-01-02 10:04 ` [PR PATCH] [Updated] " fosslinux
@ 2021-01-02 10:09 ` fosslinux
  2021-05-18  4:16 ` kawaiiamber
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: fosslinux @ 2021-01-02 10:09 UTC (permalink / raw)
  To: ml

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

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#issuecomment-753455092

Comment:
Tests are severely broken now, as the Adobe AIR SDK is no longer provided by Adobe (flash deprecation), doesn't work on most architectures and the suite is mostly useless, so I've just disabled it. (FWIW, Apache's SDK which got transported to them apparently doesn't work and would introduce a completely new dependency tree...).

Now compiles for all architectures, runtime tested on x86_64{,-musl}.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (10 preceding siblings ...)
  2021-01-02 10:09 ` fosslinux
@ 2021-05-18  4:16 ` kawaiiamber
  2022-04-17  2:06 ` github-actions
  2022-05-01  2:13 ` [PR PATCH] [Closed]: " github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: kawaiiamber @ 2021-05-18  4:16 UTC (permalink / raw)
  To: ml

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

New comment by kawaiiamber on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#issuecomment-842812002

Comment:
Tought it should be worth mentioning that version `0.8.4.1` is released [here](https://github.com/lightspark/lightspark/releases).

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (11 preceding siblings ...)
  2021-05-18  4:16 ` kawaiiamber
@ 2022-04-17  2:06 ` github-actions
  2022-05-01  2:13 ` [PR PATCH] [Closed]: " github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2022-04-17  2:06 UTC (permalink / raw)
  To: ml

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

New comment by github-actions[bot] on void-packages repository

https://github.com/void-linux/void-packages/pull/23555#issuecomment-1100787150

Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that.  If this pull request is still relevant bump it or assign it.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Closed]: New package: lightspark
  2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
                   ` (12 preceding siblings ...)
  2022-04-17  2:06 ` github-actions
@ 2022-05-01  2:13 ` github-actions
  13 siblings, 0 replies; 15+ messages in thread
From: github-actions @ 2022-05-01  2:13 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New package: lightspark
https://github.com/void-linux/void-packages/pull/23555

Description:
Try the test suite on musl. It is subtly broken, hanging seemingly randomly every now and then...... No clue what the problem is, or if it is test suite specific, or whatever



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-05-01  2:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14  1:01 [PR PATCH] WIP: New package: lightspark fosslinux
2020-07-14  1:08 ` [PR REVIEW] " ericonr
2020-07-14  1:08 ` ericonr
2020-07-14  1:23 ` fosslinux
2020-07-14  1:24 ` fosslinux
2020-07-14  1:27 ` ericonr
2020-07-14  1:27 ` ericonr
2020-07-14  1:42 ` [PR PATCH] [Updated] " fosslinux
2020-07-14  1:42 ` fosslinux
2020-07-14  1:47 ` fosslinux
2021-01-02 10:04 ` [PR PATCH] [Updated] " fosslinux
2021-01-02 10:09 ` fosslinux
2021-05-18  4:16 ` kawaiiamber
2022-04-17  2:06 ` github-actions
2022-05-01  2:13 ` [PR PATCH] [Closed]: " github-actions

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).