Skip to content

Commit

Permalink
net-proxy/haproxy: fix musl support in all available versions
Browse files Browse the repository at this point in the history
TARGET needs to be set to linux-musl for proper musl support. It is
available since version 2.2, therefore all currently present ebuilds are
updated appropriately.

Closes: https://bugs.gentoo.org/866053
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: #29637
Signed-off-by: Sam James <sam@gentoo.org>
  • Loading branch information
arkamar authored and thesamesam committed Feb 19, 2023
1 parent 621963f commit 6377b4c
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 18 deletions.
9 changes: 7 additions & 2 deletions net-proxy/haproxy/haproxy-2.2.25.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -75,12 +75,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
7 changes: 6 additions & 1 deletion net-proxy/haproxy/haproxy-2.2.29.ebuild
Expand Up @@ -75,12 +75,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
9 changes: 7 additions & 2 deletions net-proxy/haproxy/haproxy-2.2.9999.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -75,12 +75,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
9 changes: 7 additions & 2 deletions net-proxy/haproxy/haproxy-2.4.18.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -70,12 +70,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
7 changes: 6 additions & 1 deletion net-proxy/haproxy/haproxy-2.4.22.ebuild
Expand Up @@ -71,12 +71,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
9 changes: 7 additions & 2 deletions net-proxy/haproxy/haproxy-2.4.9999.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -70,12 +70,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
7 changes: 6 additions & 1 deletion net-proxy/haproxy/haproxy-2.6.9.ebuild
Expand Up @@ -70,12 +70,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
9 changes: 7 additions & 2 deletions net-proxy/haproxy/haproxy-2.6.9999.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -70,12 +70,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
7 changes: 6 additions & 1 deletion net-proxy/haproxy/haproxy-2.7.3.ebuild
Expand Up @@ -70,12 +70,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
9 changes: 7 additions & 2 deletions net-proxy/haproxy/haproxy-2.7.9999.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -70,12 +70,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down
9 changes: 7 additions & 2 deletions net-proxy/haproxy/haproxy-9999.ebuild
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -70,12 +70,17 @@ pkg_setup() {
src_compile() {
local -a args=(
V=1
TARGET=linux-glibc
# Switching to PCRE2 by default, bug 838013
PCRE=
PCRE_JIT=
)

if use elibc_musl; then
args+=( TARGET=linux-musl )
else
args+=( TARGET=linux-glibc )
fi

# TODO: PCRE2_WIDTH?
args+=( $(haproxy_use threads THREAD) )
args+=( $(haproxy_use crypt LIBCRYPT) )
Expand Down

0 comments on commit 6377b4c

Please sign in to comment.