Criterion icon indicating copy to clipboard operation
Criterion copied to clipboard

Packaging Criterion on various distros/OSes

Open Snaipe opened this issue 4 years ago • 7 comments

This is a catch-all issue to track the inclusion of Criterion on various distributions, and any user-maintained alternatives in the meantime.

It's a major headache to maintain myself unofficial/user packages for criterion on various distros (see #249 #317 #267 #236), and while it was an interesting aspect of deployment to manage, it just isn't my job to do ultimately, and there are people with far more competency and experience to do that.

If you'd like to see Criterion included in your favorite distribution, please reach out to their package maintainers team. I can work with them to make sure that Criterion gets packaged to their standards.

distro upstream support? maintainer
Arch Linux No (AUR) @MrAnno
Debian Yes! :tada: sasa at debian dot org
Gentoo Yes! :tada: hydrapolic at gmail dot com
MacOS (brew) Yes! :tada: @MrAnno
NixOS Yes! :tada: @Thesola10 @Yumasi
Ubuntu Yes! :tada: sasa at debian dot org
FreeBSD Yes! :tada: @yurivict
openSUSE Yes! :tada: @paolostivanin

Snaipe avatar Dec 30 '19 21:12 Snaipe

Will it be available on Windows too?

sukhchainn avatar Dec 31 '19 13:12 sukhchainn

To clarify: Windows support (or <insert your currently supported platform here> for that matter) isn't going away on the side of Criterion. However, we'll slowly stop publishing binary archives on GitHub releases.

The rationale is that binary releases are a pain to maintain and distribute, and there is duplicate work in maintaining releases for package managers on various platforms. Instead, we will ask that users that care talk to distro maintainers, or step up and maintain a user package for their platform. This isn't too different to what is currently done for other open source packages.

To address Windows specifically, as I said above, we will no longer publish binary archives in the releases tab on GitHub, unless I convince myself that there are no viable way to distribute Criterion at all on the platform. This means that unless someone steps up and write a package for Criterion on NuGet/MSYS2/MinGW-w64, you will have to clone the repository and build from source, which shouldn't be too hard considering that we validate that builds pass on all platforms we care about.

Snaipe avatar Dec 31 '19 14:12 Snaipe

Criterion is also packed for Nixpkgs:

  • https://github.com/NixOS/nixpkgs/blob/3cd8ce3bce1e3d89b21caa0d3ad458193f5179ba/pkgs/development/libraries/criterion/default.nix
  • https://github.com/NixOS/nixpkgs/pull/70403

The maintainers appear to be @thesola10 and @Yumasi.

Packages distributed using Nixpkgs can be used on any Linux distro (and macOS) by installing the Nix package manager, but most people use the NixOS distro. See https://nixos.org/

nloomans avatar Mar 12 '20 17:03 nloomans

Update for Debian/Ubuntu: A special 2.3.3git1 version is officially supported.

https://repology.org/project/criterion/versions

MrAnno avatar Nov 29 '21 16:11 MrAnno

@MrAnno good news! starting from 20230214 , Criterion is now available on openSUSE Tumbleweed :smile:

sudo zypper in libcriterion3 libcriterion3-devel

It will also be available in openSUSE Leap 15.5 (currently beta) via the Backports repository.

paolostivanin avatar Feb 16 '23 07:02 paolostivanin

Amazing news! Thank you.

MrAnno avatar Feb 16 '23 08:02 MrAnno

I would like to make Criterion into Fedora repository, but it seems that some dependencies need to be packaged first, like nanopb and BoxFort.

topazus avatar Jun 12 '23 14:06 topazus