Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] uwsgi: update to 2.0.19.1.
@ 2021-06-13 18:28 paper42
  2021-06-13 18:36 ` [PR PATCH] [Updated] " paper42
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: paper42 @ 2021-06-13 18:28 UTC (permalink / raw)
  To: ml

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

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

https://github.com/paper42/void-packages uwsgi-2.0.19.1
https://github.com/void-linux/void-packages/pull/31463

uwsgi: update to 2.0.19.1.
* remove uwsgi-python (python2 plugin)
* add cgi plugin as a uwsgi-cgi subpackage
* clarify the license
* simplify the template

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From 76a83882d1991dbeee3f4c21ae3f831920fb9529 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 13 Jun 2021 18:51:55 +0200
Subject: [PATCH] uwsgi: update to 2.0.19.1.

* remove uwsgi-python (python2 plugin)
* add cgi plugin as a uwsgi-cgi subpackage
* clarify the license
* simplify the template
---
 srcpkgs/removed-packages/template   |  1 +
 srcpkgs/{uwsgi-python => uwsgi-cgi} |  0
 srcpkgs/uwsgi/template              | 59 +++++++++++------------------
 3 files changed, 23 insertions(+), 37 deletions(-)
 rename srcpkgs/{uwsgi-python => uwsgi-cgi} (100%)

diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 09bd3a3ab01d..1f12ce001046 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -293,6 +293,7 @@ replaces="
  ttyload-git<=20141117_4
  tuxc<=1.1_3
  urlmatch-git<=20141116_2
+ uwsgi-python<=2.0.18_3
  v8<=3.24.35.33_4
  volnoti<=0.1_1
  vte<=0.28.2_16
diff --git a/srcpkgs/uwsgi-python b/srcpkgs/uwsgi-cgi
similarity index 100%
rename from srcpkgs/uwsgi-python
rename to srcpkgs/uwsgi-cgi
diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 1446c355e1ec..471ed04c61f0 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -1,45 +1,32 @@
 # Template file for 'uwsgi'
 pkgname=uwsgi
-version=2.0.18
-revision=3
-hostmakedepends="python python3"
-makedepends="python-devel python3-devel"
+version=2.0.19.1
+revision=1
+hostmakedepends="python3"
+makedepends="python3-devel"
 short_desc="Fast, self-healing application container server"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="GPL-2.0-or-later"
+license="GPL-2.0-linking-exception"
 homepage="http://projects.unbit.it/uwsgi"
 distfiles="https://github.com/unbit/uwsgi/archive/${version}.tar.gz"
-checksum=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583
+checksum=bf17cdbb9bd8bcb7c1633e34d9d7308cb4cc19eb0ff2d61057f840c1ba1fc41b
 
 _libdir=usr/lib/uwsgi
 
-subpackages="uwsgi-python uwsgi-python3"
 case "$XBPS_TARGET_MACHINE" in
-	armv[67]l-musl) subpackages="uwsgi-python" ;;
 	aarch64-musl) makedepends+=" gettext-devel" ;;
 esac
 
 pre_configure() {
-	sed -e "s|uc.get('plugin_dir')|'.'|" \
-		-i uwsgiconfig.py
-	sed -e "s|\(plugin_dir =\).*|\1 /$_libdir|" \
-		-i buildconf/base.ini
+	vsed -i uwsgiconfig.py -e "s|uc.get('plugin_dir')|'.'|"
+	vsed -i buildconf/base.ini -e "s|\(plugin_dir =\).*|\1 /$_libdir|"
 }
 
 do_build() {
 	local _cflags="$CFLAGS"
 	local _ldflags="$LDFLAGS"
 
-	python2 uwsgiconfig.py --build core
-
-	if [ "$CROSS_BUILD" ]; then
-		_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/${py2_inc}
-			-I${XBPS_CROSS_BASE}/usr/include"
-		_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/${py2_lib}
-			-L${XBPS_CROSS_BASE}/usr/lib"
-	fi
-	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python2 uwsgiconfig.py \
-		--plugin plugins/python core python
+	python3 uwsgiconfig.py --build core
 
 	if [ "$CROSS_BUILD" ]; then
 		_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/${py3_inc}
@@ -47,29 +34,27 @@ do_build() {
 		_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/${py3_lib}
 			-L${XBPS_CROSS_BASE}/usr/lib"
 	fi
-	case "$subpackages" in
-		*uwsgi-python3*)
-			CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
-				--plugin plugins/python core python3
-			;;
-	esac
+
+    CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
+        --plugin plugins/python core python3
+    CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
+        --plugin plugins/cgi core cgi
 }
 
 do_install() {
-	mkdir -p $PKGDESTDIR/usr/bin $PKGDESTDIR/$_libdir
-	cp uwsgi $PKGDESTDIR/usr/bin
-	cp *_plugin.so $PKGDESTDIR/$_libdir
+	vbin uwsgi
 }
 
-uwsgi-python_package() {
-	short_desc="$short_desc (Python2 plugin)"
+uwsgi-python3_package() {
+	short_desc="$short_desc (Python3 plugin)"
 	pkg_install() {
-		vmove $_libdir/python_plugin.so
+		vcopy python3_plugin.so $_libdir
 	}
 }
-uwsgi-python3_package() {
-	short_desc="$short_desc (Python3 plugin)"
+
+uwsgi-cgi_package() {
+	short_desc="$short_desc (CGI plugin)"
 	pkg_install() {
-		vmove $_libdir/python3_plugin.so
+		vcopy cgi_plugin.so $_libdir
 	}
 }

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

* Re: [PR PATCH] [Updated] uwsgi: update to 2.0.19.1.
  2021-06-13 18:28 [PR PATCH] uwsgi: update to 2.0.19.1 paper42
@ 2021-06-13 18:36 ` paper42
  2021-06-13 18:40 ` paper42
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paper42 @ 2021-06-13 18:36 UTC (permalink / raw)
  To: ml

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

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

https://github.com/paper42/void-packages uwsgi-2.0.19.1
https://github.com/void-linux/void-packages/pull/31463

uwsgi: update to 2.0.19.1.
* remove uwsgi-python (python2 plugin)
* add cgi plugin as a uwsgi-cgi subpackage
* clarify the license
* simplify the template

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From b8bb706a4c1d9d82e782cf8d0458dfe3b402e32c Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 13 Jun 2021 18:51:55 +0200
Subject: [PATCH] uwsgi: update to 2.0.19.1.

* remove uwsgi-python (python2 plugin)
* add cgi plugin as a uwsgi-cgi subpackage
* clarify the license
* simplify the template
---
 srcpkgs/removed-packages/template   |  1 +
 srcpkgs/{uwsgi-python => uwsgi-cgi} |  0
 srcpkgs/uwsgi/template              | 59 +++++++++++------------------
 3 files changed, 23 insertions(+), 37 deletions(-)
 rename srcpkgs/{uwsgi-python => uwsgi-cgi} (100%)

diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 09bd3a3ab01d..1f12ce001046 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -293,6 +293,7 @@ replaces="
  ttyload-git<=20141117_4
  tuxc<=1.1_3
  urlmatch-git<=20141116_2
+ uwsgi-python<=2.0.18_3
  v8<=3.24.35.33_4
  volnoti<=0.1_1
  vte<=0.28.2_16
diff --git a/srcpkgs/uwsgi-python b/srcpkgs/uwsgi-cgi
similarity index 100%
rename from srcpkgs/uwsgi-python
rename to srcpkgs/uwsgi-cgi
diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 1446c355e1ec..fb5a92cf085c 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -1,45 +1,32 @@
 # Template file for 'uwsgi'
 pkgname=uwsgi
-version=2.0.18
-revision=3
-hostmakedepends="python python3"
-makedepends="python-devel python3-devel"
+version=2.0.19.1
+revision=1
+hostmakedepends="python3"
+makedepends="python3-devel"
 short_desc="Fast, self-healing application container server"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="GPL-2.0-or-later"
+license="GPL-2.0-linking-exception"
 homepage="http://projects.unbit.it/uwsgi"
 distfiles="https://github.com/unbit/uwsgi/archive/${version}.tar.gz"
-checksum=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583
+checksum=bf17cdbb9bd8bcb7c1633e34d9d7308cb4cc19eb0ff2d61057f840c1ba1fc41b
 
 _libdir=usr/lib/uwsgi
 
-subpackages="uwsgi-python uwsgi-python3"
 case "$XBPS_TARGET_MACHINE" in
-	armv[67]l-musl) subpackages="uwsgi-python" ;;
 	aarch64-musl) makedepends+=" gettext-devel" ;;
 esac
 
 pre_configure() {
-	sed -e "s|uc.get('plugin_dir')|'.'|" \
-		-i uwsgiconfig.py
-	sed -e "s|\(plugin_dir =\).*|\1 /$_libdir|" \
-		-i buildconf/base.ini
+	vsed -i uwsgiconfig.py -e "s|uc.get('plugin_dir')|'.'|"
+	vsed -i buildconf/base.ini -e "s|\(plugin_dir =\).*|\1 /$_libdir|"
 }
 
 do_build() {
 	local _cflags="$CFLAGS"
 	local _ldflags="$LDFLAGS"
 
-	python2 uwsgiconfig.py --build core
-
-	if [ "$CROSS_BUILD" ]; then
-		_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/${py2_inc}
-			-I${XBPS_CROSS_BASE}/usr/include"
-		_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/${py2_lib}
-			-L${XBPS_CROSS_BASE}/usr/lib"
-	fi
-	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python2 uwsgiconfig.py \
-		--plugin plugins/python core python
+	python3 uwsgiconfig.py --build core
 
 	if [ "$CROSS_BUILD" ]; then
 		_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/${py3_inc}
@@ -47,29 +34,27 @@ do_build() {
 		_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/${py3_lib}
 			-L${XBPS_CROSS_BASE}/usr/lib"
 	fi
-	case "$subpackages" in
-		*uwsgi-python3*)
-			CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
-				--plugin plugins/python core python3
-			;;
-	esac
+
+	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
+		--plugin plugins/python core python3
+	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
+		--plugin plugins/cgi core cgi
 }
 
 do_install() {
-	mkdir -p $PKGDESTDIR/usr/bin $PKGDESTDIR/$_libdir
-	cp uwsgi $PKGDESTDIR/usr/bin
-	cp *_plugin.so $PKGDESTDIR/$_libdir
+	vbin uwsgi
 }
 
-uwsgi-python_package() {
-	short_desc="$short_desc (Python2 plugin)"
+uwsgi-python3_package() {
+	short_desc="$short_desc (Python3 plugin)"
 	pkg_install() {
-		vmove $_libdir/python_plugin.so
+		vcopy python3_plugin.so $_libdir
 	}
 }
-uwsgi-python3_package() {
-	short_desc="$short_desc (Python3 plugin)"
+
+uwsgi-cgi_package() {
+	short_desc="$short_desc (CGI plugin)"
 	pkg_install() {
-		vmove $_libdir/python3_plugin.so
+		vcopy cgi_plugin.so $_libdir
 	}
 }

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

* Re: uwsgi: update to 2.0.19.1.
  2021-06-13 18:28 [PR PATCH] uwsgi: update to 2.0.19.1 paper42
  2021-06-13 18:36 ` [PR PATCH] [Updated] " paper42
@ 2021-06-13 18:40 ` paper42
  2021-06-14  3:08 ` [PR REVIEW] " ericonr
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paper42 @ 2021-06-13 18:40 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/31463#issuecomment-860253204

Comment:
I think the xlint warning can be ignored in this case:
```
srcpkgs/uwsgi/template:9: use SPDX id for 'GPL-2.0-linking-exception' license or see Manual.md
```
spdx doesn't have GPL-2.0-linking-exception, but has GPL-3.0-linking-exception. or should it be a custom license?

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

* Re: [PR REVIEW] uwsgi: update to 2.0.19.1.
  2021-06-13 18:28 [PR PATCH] uwsgi: update to 2.0.19.1 paper42
  2021-06-13 18:36 ` [PR PATCH] [Updated] " paper42
  2021-06-13 18:40 ` paper42
@ 2021-06-14  3:08 ` ericonr
  2021-06-14 11:13 ` [PR PATCH] [Updated] " paper42
  2021-06-17  2:28 ` [PR PATCH] [Merged]: " ericonr
  4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2021-06-14  3:08 UTC (permalink / raw)
  To: ml

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

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31463#discussion_r650626590

Comment:
Did you try to remove this line as well? It's kinda suspicious...

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

* Re: [PR PATCH] [Updated] uwsgi: update to 2.0.19.1.
  2021-06-13 18:28 [PR PATCH] uwsgi: update to 2.0.19.1 paper42
                   ` (2 preceding siblings ...)
  2021-06-14  3:08 ` [PR REVIEW] " ericonr
@ 2021-06-14 11:13 ` paper42
  2021-06-17  2:28 ` [PR PATCH] [Merged]: " ericonr
  4 siblings, 0 replies; 6+ messages in thread
From: paper42 @ 2021-06-14 11:13 UTC (permalink / raw)
  To: ml

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

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

https://github.com/paper42/void-packages uwsgi-2.0.19.1
https://github.com/void-linux/void-packages/pull/31463

uwsgi: update to 2.0.19.1.
* remove uwsgi-python (python2 plugin)
* add cgi plugin as a uwsgi-cgi subpackage
* clarify the license
* simplify the template

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

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

From b8c03a24852095c9123b4bad11a6243fc4e2d4fd Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 13 Jun 2021 18:51:55 +0200
Subject: [PATCH] uwsgi: update to 2.0.19.1.

* remove uwsgi-python (python2 plugin)
* add cgi plugin as a uwsgi-cgi subpackage
* clarify the license
* simplify the template
---
 srcpkgs/removed-packages/template   |  1 +
 srcpkgs/{uwsgi-python => uwsgi-cgi} |  0
 srcpkgs/uwsgi/template              | 63 ++++++++++-------------------
 3 files changed, 23 insertions(+), 41 deletions(-)
 rename srcpkgs/{uwsgi-python => uwsgi-cgi} (100%)

diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 09bd3a3ab01d..1f12ce001046 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -293,6 +293,7 @@ replaces="
  ttyload-git<=20141117_4
  tuxc<=1.1_3
  urlmatch-git<=20141116_2
+ uwsgi-python<=2.0.18_3
  v8<=3.24.35.33_4
  volnoti<=0.1_1
  vte<=0.28.2_16
diff --git a/srcpkgs/uwsgi-python b/srcpkgs/uwsgi-cgi
similarity index 100%
rename from srcpkgs/uwsgi-python
rename to srcpkgs/uwsgi-cgi
diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 1446c355e1ec..507987723d7b 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -1,45 +1,28 @@
 # Template file for 'uwsgi'
 pkgname=uwsgi
-version=2.0.18
-revision=3
-hostmakedepends="python python3"
-makedepends="python-devel python3-devel"
+version=2.0.19.1
+revision=1
+hostmakedepends="python3"
+makedepends="python3-devel"
 short_desc="Fast, self-healing application container server"
 maintainer="Orphaned <orphan@voidlinux.org>"
-license="GPL-2.0-or-later"
+license="GPL-2.0-linking-exception"
 homepage="http://projects.unbit.it/uwsgi"
 distfiles="https://github.com/unbit/uwsgi/archive/${version}.tar.gz"
-checksum=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583
+checksum=bf17cdbb9bd8bcb7c1633e34d9d7308cb4cc19eb0ff2d61057f840c1ba1fc41b
 
 _libdir=usr/lib/uwsgi
 
-subpackages="uwsgi-python uwsgi-python3"
-case "$XBPS_TARGET_MACHINE" in
-	armv[67]l-musl) subpackages="uwsgi-python" ;;
-	aarch64-musl) makedepends+=" gettext-devel" ;;
-esac
-
 pre_configure() {
-	sed -e "s|uc.get('plugin_dir')|'.'|" \
-		-i uwsgiconfig.py
-	sed -e "s|\(plugin_dir =\).*|\1 /$_libdir|" \
-		-i buildconf/base.ini
+	vsed -i uwsgiconfig.py -e "s|uc.get('plugin_dir')|'.'|"
+	vsed -i buildconf/base.ini -e "s|\(plugin_dir =\).*|\1 /$_libdir|"
 }
 
 do_build() {
 	local _cflags="$CFLAGS"
 	local _ldflags="$LDFLAGS"
 
-	python2 uwsgiconfig.py --build core
-
-	if [ "$CROSS_BUILD" ]; then
-		_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/${py2_inc}
-			-I${XBPS_CROSS_BASE}/usr/include"
-		_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/${py2_lib}
-			-L${XBPS_CROSS_BASE}/usr/lib"
-	fi
-	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python2 uwsgiconfig.py \
-		--plugin plugins/python core python
+	python3 uwsgiconfig.py --build core
 
 	if [ "$CROSS_BUILD" ]; then
 		_cflags="$CFLAGS -I${XBPS_CROSS_BASE}/${py3_inc}
@@ -47,29 +30,27 @@ do_build() {
 		_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/${py3_lib}
 			-L${XBPS_CROSS_BASE}/usr/lib"
 	fi
-	case "$subpackages" in
-		*uwsgi-python3*)
-			CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
-				--plugin plugins/python core python3
-			;;
-	esac
+
+	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
+		--plugin plugins/python core python3
+	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3 uwsgiconfig.py \
+		--plugin plugins/cgi core cgi
 }
 
 do_install() {
-	mkdir -p $PKGDESTDIR/usr/bin $PKGDESTDIR/$_libdir
-	cp uwsgi $PKGDESTDIR/usr/bin
-	cp *_plugin.so $PKGDESTDIR/$_libdir
+	vbin uwsgi
 }
 
-uwsgi-python_package() {
-	short_desc="$short_desc (Python2 plugin)"
+uwsgi-python3_package() {
+	short_desc="$short_desc (Python3 plugin)"
 	pkg_install() {
-		vmove $_libdir/python_plugin.so
+		vcopy python3_plugin.so $_libdir
 	}
 }
-uwsgi-python3_package() {
-	short_desc="$short_desc (Python3 plugin)"
+
+uwsgi-cgi_package() {
+	short_desc="$short_desc (CGI plugin)"
 	pkg_install() {
-		vmove $_libdir/python3_plugin.so
+		vcopy cgi_plugin.so $_libdir
 	}
 }

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

* Re: [PR PATCH] [Merged]: uwsgi: update to 2.0.19.1.
  2021-06-13 18:28 [PR PATCH] uwsgi: update to 2.0.19.1 paper42
                   ` (3 preceding siblings ...)
  2021-06-14 11:13 ` [PR PATCH] [Updated] " paper42
@ 2021-06-17  2:28 ` ericonr
  4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2021-06-17  2:28 UTC (permalink / raw)
  To: ml

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

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

uwsgi: update to 2.0.19.1.
https://github.com/void-linux/void-packages/pull/31463

Description:
* remove uwsgi-python (python2 plugin)
* add cgi plugin as a uwsgi-cgi subpackage
* clarify the license
* simplify the template

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

end of thread, other threads:[~2021-06-17  2:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 18:28 [PR PATCH] uwsgi: update to 2.0.19.1 paper42
2021-06-13 18:36 ` [PR PATCH] [Updated] " paper42
2021-06-13 18:40 ` paper42
2021-06-14  3:08 ` [PR REVIEW] " ericonr
2021-06-14 11:13 ` [PR PATCH] [Updated] " paper42
2021-06-17  2:28 ` [PR PATCH] [Merged]: " ericonr

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