void-linux / void-linux/void-packages

[RFC]: vdummy shortcut for transitional packages

Open
#39,272 4 comments 3 reactions 1 assignee View on GitHub

@paper42 is already working on this.

Since Dec 14, 2022.

enhancement Stale
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Every transitional package has at least these 3 common variables:

  • build_style=meta - otherwise the build would fail because of an empty package
  • depends=... - usually ${sourcepkg}>=${version}_${revision}, but often ${version}_${revision} is left out or ${sourcepkg} is replaced by something else, for example ${sourcepkg}-devel
  • short_desc+=" transitional package" or an equivalent, many versions currently exist in packages

a few examples:

antimicro_package() { 
	build_style=meta
	depends="${sourcepkg}"
	short_desc+=" - transitional dummy package"
}    
Gifsicle_package() {
	depends="gifsicle"
	short_desc+=" (transitional dummy package)"
	build_style=meta
}

This is a proposal for a vdummy function that fills these variables for the packager, for example:

antimicro_package() {
	vdummy ${sourcepkg}
}

vdummy should take one argument - the package name and use it in $depends - depends="$1>=${version}_${revision}". vdummy will also unify $short_desc for transitional packages, I would propose to use the - (transitional dummy package) style.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.