~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Provide symlinks for lua's .pc files

Details
Message ID
<20200219000443.290506-1-wolf@wolfsden.cz>
DKIM signature
missing
Download raw message
Patch: +10 -2
Debian provides multiple aliases for lua's pkg-config package. In
interest of compatibility, we should do the same. This commit introduces
symlinks for lua53, lua-5.3, lua52 and lua-5.2 to match what debian
provides.
---
 main/lua5.2/APKBUILD | 6 +++++-
 main/lua5.3/APKBUILD | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/main/lua5.2/APKBUILD b/main/lua5.2/APKBUILD
index e5df917276..9f1464b354 100644
--- a/main/lua5.2/APKBUILD
+++ b/main/lua5.2/APKBUILD
@@ -119,7 +119,11 @@ Cflags: -I\${includedir}

# (end of lua$_luaver.pc)
EOF

	# lua52.pc   -> lua5.2.pc
	ln -s lua$_luaver.pc \
		"$pkgdir"/usr/lib/pkgconfig/lua$(echo $_luaver | tr -d . ).pc
	# lua-5.2.pc -> lua5.2.pc
	ln -s lua$_luaver.pc "$pkgdir"/usr/lib/pkgconfig/lua-$_luaver.pc
}

dev() {
diff --git a/main/lua5.3/APKBUILD b/main/lua5.3/APKBUILD
index b1baf7b75a..6825dc68a6 100644
--- a/main/lua5.3/APKBUILD
+++ b/main/lua5.3/APKBUILD
@@ -120,7 +120,11 @@ package() {

		# (end of lua$_luaver.pc)
	EOF

	# lua53.pc   -> lua5.3.pc
	ln -s lua$_luaver.pc \
		"$pkgdir"/usr/lib/pkgconfig/lua$(echo $_luaver | tr -d . ).pc
	# lua-5.3.pc -> lua5.3.pc
	ln -s lua$_luaver.pc "$pkgdir"/usr/lib/pkgconfig/lua-$_luaver.pc
}

dev() {
-- 
2.25.0
Details
Message ID
<20200218211903.71f02a5d@enterprise>
In-Reply-To
<20200219000443.290506-1-wolf@wolfsden.cz> (view parent)
DKIM signature
missing
Download raw message
On Wed, 19 Feb 2020 01:04:43 +0100
Wolf <wolf@wolfsden.cz> wrote:

> Debian provides multiple aliases for lua's pkg-config package. In
> interest of compatibility, we should do the same. This commit
> introduces symlinks for lua53, lua-5.3, lua52 and lua-5.2 to match
> what debian provides.
> ---
>  main/lua5.2/APKBUILD | 6 +++++-
>  main/lua5.3/APKBUILD | 6 +++++-
>  2 files changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/main/lua5.2/APKBUILD b/main/lua5.2/APKBUILD
> index e5df917276..9f1464b354 100644
> --- a/main/lua5.2/APKBUILD
> +++ b/main/lua5.2/APKBUILD
> @@ -119,7 +119,11 @@ Cflags: -I\${includedir}
>  
>  # (end of lua$_luaver.pc)
>  EOF
> -
> +	# lua52.pc   -> lua5.2.pc
> +	ln -s lua$_luaver.pc \
> +		"$pkgdir"/usr/lib/pkgconfig/lua$(echo $_luaver | tr
> -d . ).pc


Please use ${_luaver//./} instead of shelling it out

> +	# lua-5.2.pc -> lua5.2.pc
> +	ln -s lua$_luaver.pc
> "$pkgdir"/usr/lib/pkgconfig/lua-$_luaver.pc }
>  
>  dev() {
> diff --git a/main/lua5.3/APKBUILD b/main/lua5.3/APKBUILD
> index b1baf7b75a..6825dc68a6 100644
> --- a/main/lua5.3/APKBUILD
> +++ b/main/lua5.3/APKBUILD
> @@ -120,7 +120,11 @@ package() {
>  
>  		# (end of lua$_luaver.pc)
>  	EOF
> -
> +	# lua53.pc   -> lua5.3.pc
> +	ln -s lua$_luaver.pc \
> +		"$pkgdir"/usr/lib/pkgconfig/lua$(echo $_luaver | tr
> -d . ).pc

Same here

> +	# lua-5.3.pc -> lua5.3.pc
> +	ln -s lua$_luaver.pc
> "$pkgdir"/usr/lib/pkgconfig/lua-$_luaver.pc }
>  
>  dev() {
Reply to thread Export thread (mbox)