Re: [voidlinux/void-packages] Add hook to automatically create -devel package. (#12983)

Enno Boland at Wed, 28 Mar 2018 08:24:05 +0000 (UTC)
@voidlinux/pkg-committers any thoughts?
Toyam Cox at Wed, 28 Mar 2018 11:36:04 +0000 (UTC)
Do we have any way of checking "is it in subpkgs and not defined"? I thought it was assumed to be runnable.
maxice8 at Wed, 28 Mar 2018 11:40:49 +0000 (UTC)
> Do we have any way of checking "is it in subpkgs and not defined"? I thought it was assumed to be runnable. template variables are passed to the hooks so ``` if [ -z "${subpackages##* ${pkgname}-devel *}" ]; then return fi if typeset -F|grep "${pkgname}-devel_package()" ; then return fi ```
Michael Gehring at Wed, 28 Mar 2018 06:30:01 -0700
> We could use the srcpkgs symlink to check instead. You can't since the *-devel_package might be wrapped in an conditional or guarded by a build_option. In general a default _package() will be tricky to do since the declaration of the _package() function is used to determine that the subpackage exists at all.
Leаh Neukirchen at Wed, 28 Mar 2018 07:19:19 -0700
I think it's a good idea in general.
Toyam Cox at Thu, 29 Mar 2018 12:46:21 +0000 (UTC)
It'd be nice, but we can replace that with tooling.
maxice8 at Mon, 02 Apr 2018 18:40:18 +0000 (UTC)
> It'd be nice, but we can replace that with tooling. i wrote [xgenpkg](https://github.com/maxice8/xtools-devel/blob/master/xgenpkg) `$ xgenpkg --name mainpkg --pkg mainpkg-devel` to deal with automatically generating package definitions but they don't deal with files that are available in one arch and not in another ( read gnome nocross gobject shit ), while hooks would just deal with the files given directly.