Re: Installing metapackage with fai.me

2023-11-29 Diskussionsfäden Thomas Lange
Hi all,

on https://fai-project.org/FAIme/
you can now enable installing recommended packages for your custom
package list.

I took more time to add the new checkbox on the web page, than to add
thr function to the backend part of FAIme.

Thanks a lot to Jean-Mathieu for suggesting this feature.

-- 
regards Thomas


Re: Installing metapackage with fai.me

2023-11-29 Diskussionsfäden Jean-Mathieu Chantrein


> Yes, you are right -norec does not install recommends. We have
> PACKAGES install but in FAI.me it's currently hardcoded to use install-norec.
> 
>> Is there a way to change this default behaviour in fai.me?
> Currently not, but I will think about implementing it. Seems like a
> nice feature to me. Another checkbox should do the job.
> 
> I may change the FAI.me behaviour globally for some tests, maybe this
> evening or tomorrow.

That'll be great, thank you very much.

FYI, I'm doing a postinstall script that only removes certain packages that I 
don't want and that are provided via the metapackage.
The checkbox is a good idea, but it globalizes the recommended packages for all 
packages, and the current default behaviour also has good reasons to be in 
place.
If there is a mechanism for parsing packages "to be installed", a bit of 
"syntactic sugar" could refine the installation mechanism, like:

package-name: install in no-rec mode
package-name+: include recommended packages by package-name
package-name- : exclude package-name from the installation (syntax used by apt)

Along the same lines, we could also add a wilcard (perhaps this is already the 
case ...):
package-name* : installs all packages starting with package-name in no-rec mode 
(syntax used by apt)
package-name*+: installs all packages starting with package-name in recommended 
mode

I'm not aware of the complexity of implementing such a solution, but it was 
just a proposal that seemed interesting in terms of functionality ...

Best regards.

--
Jean-Mathieu


> --
> viele Grüße Thomas


Re: Installing metapackage with fai.me

2023-11-29 Diskussionsfäden Thomas Lange
> On Wed, 29 Nov 2023 09:26:56 +0100 (CET), Jean-Mathieu Chantrein 
>  said:

> Yes, it's games-finest. Thank you.
> apt-cache show games-finest
Ah, now it looks better. I wonder why this metapackage does not use
depends but only recommends.

> So, I think that underlying packages are not installed because they are 
in Recommends.
> In fact, in the FAI conf files, the package appears like this:

> PACKAGES install-norec
> games-finest
Yes, you are right -norec does not install recommends. We have
PACKAGES install but in FAI.me it's currently hardcoded to use install-norec.

> Is there a way to change this default behaviour in fai.me?
Currently not, but I will think about implementing it. Seems like a
nice feature to me. Another checkbox should do the job.

I may change the FAI.me behaviour globally for some tests, maybe this
evening or tomorrow.
-- 
viele Grüße Thomas


Re: Installing metapackage with fai.me

2023-11-29 Diskussionsfäden Jean-Mathieu Chantrein
Yes, it's games-finest. Thank you.

apt-cache show games-finest
Package: games-finest
Source: debian-games
Version: 5
Installed-Size: 21
Maintainer: Debian Games Team 
Architecture: all
Depends: games-tasks (= 5)
Recommends: 0ad, 7kaa, a7xpg, abe, ace-of-penguins, alex4, armagetronad, asc, 
atomix, bastet, berusky, biniax2, blobby, bloboats, blobwars, blockattack, 
bsdgames, btanks, burgerspace, bzflag-client, caveexpress, cgoban, 
chromium-bsu, cultivation, dreamchess, empire, enigma, epiphany, 
extremetuxracer, flare-game, flightgear, foobillardplus, freeciv, freecol, 
freedroidrpg, freeorion, frozen-bubble, funnyboat, gnubg, gtkatlantic, gweled, 
hedgewars, holotz-castle, hyperrogue, kobodeluxe, koules, lbreakout2, 
lincity-ng, liquidwar, lmemory, lugaru, manaplus, marsshooter, megaglest, 
micropolis, minetest, nethack-console, nettoe, neverball, neverputt, nexuiz, 
numptyphysics, open-invaders, openarena, openclonk, openttd, pacman, parsec47, 
pathological, performous, pinball, pingus, pioneers, pokerth, powermanga, 
pybik, raincat, redeclipse, ri-li, scorched3d, searchandrescue, sgt-puzzles, 
solarwolf, sopwith, springlobby, supertransball2, supertux, supertuxkart, 
tecnoballz, teeworlds, torcs, torus-trooper, tuxfootball, tuxmath, tuxpuck, 
ufoai, unknown-horizons, warmux, warzone2100, wesnoth, widelands, xmoto
Suggests: funguloids, pysolfc
[...]

So, I think that underlying packages are not installed because they are in 
Recommends.
In fact, in the FAI conf files, the package appears like this:

PACKAGES install-norec
games-finest

Is there a way to change this default behaviour in fai.me?

Regards.

-- 
Jean-Mathieu

- Mail original -
> De: "Dirk Geschke" 
> À: "fully automatic installation for Linux" 
> Envoyé: Mercredi 29 Novembre 2023 08:56:40
> Objet: Re: Installing metapackage with fai.me

> Hi Thomas,
> 
>> no there's not limit on the size, but games-finest is not a package
>> name:
>> 
>> $ apt show game-finest
> 
> there is an 's' missing, it's games-finest:
> 
>   $ apt show games-finest
>   Package: games-finest
>   Version: 5
>   Priority: optional
>   Section: metapackages
>   Source: debian-games
>   ...
> 
> Looks like an interesting package for gaming...
> 
> Best regards
> 
> Dirk
> 
> --
> +--+
>| Dr. Dirk Geschke   / Plankensteinweg 61/ 85435 Erding|
>| Telefon: 08122-559448  / Mobil: 0176-96906350 / Fax: 08122-9818106   |
>| d...@geschke-online.de / d...@lug-erding.de  / kont...@lug-erding.de |
> +--+