Mail archive
alpine-devel

Re: [alpine-devel] [abuild RFC] abuild: add config option to globally enable dbg

From: Alba Pompeo <albapompeo_at_gmail.com>
Date: Fri, 16 Jun 2017 09:24:10 -0300

Why not create a dbgs metapackage like the docs metapackage?
https://git.alpinelinux.org/cgit/abuild/tree/abuild.in#n1476
https://git.alpinelinux.org/cgit/aports/tree/main/docs/APKBUILD




On Fri, Jun 16, 2017 at 6:41 AM, Carlo Landmeter <clandmeter_at_gmail.com> wrote:
> ---
> abuild.in | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/abuild.in b/abuild.in
> index 1db1a4a..ff37162 100644
> --- a/abuild.in
> +++ b/abuild.in
> _at_@ -2317,6 +2317,11 @@ fi
> # for recursive action
> export REPODEST SRCDEST
>
> +# add dbg subpackage if its enabled globally
> +if [ -n "$DEFAULT_DBG" ] && ! subpackage_types_has "dbg" && ! options_has "!dbg" && [ "$arch" != "noarch" ]; then
> + subpackages="$pkgname-dbg $subpackages"
> +fi
> +
> # if we want build debug package
> if [ -n "$DEBUG" ] || subpackage_types_has "dbg"; then
> CFLAGS="$CFLAGS -g"
> --
> 2.13.1
>
>
>
> ---
> Unsubscribe: alpine-devel+unsubscribe_at_lists.alpinelinux.org
> Help: alpine-devel+help_at_lists.alpinelinux.org
> ---
>


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Fri Jun 16 2017 - 09:24:10 GMT