On Sun, 18 Jun 2017 02:20:59 -0700
Seamus Caveney <scv_at_brinstar.org> wrote:
> On 2017-06-18 00:00, Timo Teras wrote:
> > On Fri, 16 Jun 2017 16:09:26 +0200
> > Natanael Copa <ncopa_at_alpinelinux.org> wrote:
> >> On Fri, 16 Jun 2017 09:24:10 -0300
> >> Alba Pompeo <albapompeo_at_gmail.com> wrote:
> >>> 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
> >> Why would someome want install all the -dbg packages?
> > I would. When trying to analyze core dump. Global meta package
> > would be nicer than trying to hunt individually the -dbg packagaes
> > needed. Though, we might hold that for the big projects. Getting
> > firefox, libreoffice etc. -dbg might be just too much.
> Better to opt for wildcards for install. More useful than adding a
> dbg meta package and replaces the current solution for docs metapkg,
> which is brittle imo, where is it documented that you must have the
> installif entry in a custom doc function in an APKBUILD?
It's in the 'default_doc' split function. But yes, it's not explicitly
> apk add *-dbg
> apk add *-doc
This would add -dbg packages for everything in the entire index, not
just for the packages which are already installed.
Also the install_if works so that if you have 'docs' installed and you
do 'apk add foo' you will automatically get 'foo-doc' too if it exists.
Basically "apk add docs" means that I want to have docs on all packages
installed on system now, or any time in the future.
"apk del foo" would also remove the docs package with the 'docs' meta.
"apk add *-docs" would add dependency in 'world' and require explcit
removal of the docs too.
The point of the install_if / docs packages is to be more dynamic and
follow the installation status of the main package.
> Or say install many subpackages:
> apk add qemu-system-*
> The function already exists for search, why not for add as well?
But, it does exist for add and delete too. I use regularly "apk del
*-dev". However, the use case is different than from the 'docs'
metapackage and install_if.
Received on Sun Jun 18 2017 - 14:03:58 UTC