Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] mgba-git #3466

Open
3 tasks done
Evil95 opened this issue Jan 19, 2025 · 3 comments
Open
3 tasks done

[Request] mgba-git #3466

Evil95 opened this issue Jan 19, 2025 · 3 comments
Labels
interfere required Needs patching the PKGBUILD. priority:lowest This package affects 5 or less users. request:new-pkg New package requested.

Comments

@Evil95
Copy link

Evil95 commented Jan 19, 2025

Package

https://aur.archlinux.org/pkgbase/mgba-git

Purpose

Emulator to play gb, gbc and gba games.

License

MPL-2.0

Submission checklist

  • The package is not banned.
  • The package is not available in Chaotic AUR or official Arch repos.
  • The package has not already been requested.
@Evil95 Evil95 added the request:new-pkg New package requested. label Jan 19, 2025
@Technetium1 Technetium1 changed the title [Request] mgba-qt-git [Request] mgba-git Jan 21, 2025
@Technetium1 Technetium1 added the priority:lowest This package affects 5 or less users. label Jan 21, 2025
@Technetium1
Copy link
Member

@xiota strange pkgver, thoughts?

@xiota
Copy link
Contributor

xiota commented Jan 21, 2025

It's parsing a file for the "development version" and using total commit count. I don't like this type of system because dev version numbers > corresponding release, even though they're really older (0.11.0.r8409 > 0.11.0).

I prefer to count revisions from last stable version. This is what the standard git describe usually produces, unless upstream tags releases in separate branches. Then I use something like the following:

_pkgsrc="mgba"
pkgver() {
  cd "$_pkgsrc"
  _tag=$(git tag | grep -Ev '[a-z][a-z]' | sort -rV | head -1)
  _version="${_tag:?}"
  _revision=$(git rev-list --count --cherry-pick "$_tag"...HEAD)
  _hash=$(git rev-parse --short=7 HEAD)
  printf '%s.r%s.g%s' "${_version:?}" "${_revision:?}" "${_hash:?}"
}

Unless definitely spelled out in package guidelines (remove v prefix), difficult to convince maintainers to fix bad pkgver(). If that's the only thing wrong with a package, can add corrected pkgver() to interfere.

@Technetium1 Technetium1 added the interfere required Needs patching the PKGBUILD. label Jan 21, 2025
@Technetium1
Copy link
Member

I agree that it's a good idea to interfere and fix that if it will be added. I don't like it as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interfere required Needs patching the PKGBUILD. priority:lowest This package affects 5 or less users. request:new-pkg New package requested.
Development

No branches or pull requests

3 participants