** Description changed:

- I propose that meson and its dependency ninja-build be added to Ubuntu
- main.
- 
- cmake is in main. It is listed in the platform seed in the supported-
- development-common file in the category Development Tools.
- 
- More than twice as many packages in main use meson to build compared to
- cmake.
- 
- meson was not updated at all during the Ubuntu 26.10 development cycle.
- To ensure packages remain buildable and we aren't faced with problems
- after Feature Freeze, it is important that someone be responsible for
- this package. At least as long as Ubuntu needs to have a diff which
- prevents us from benefiting from automatic syncs from Debian. I filed
- https://launchpad.net/bugs/2174244 requesting that meson be updated but
- without an Ubuntu bug subscriber, this request might not be noticed.
+ ################################################################
+ # src:meson
+ ################################################################
+ 
+ [Availability]
+ - The package meson is already in Ubuntu universe.
+ - The package meson contains Python source code and builds for all
+   architectures it is designed to work on
+   (Architecture: all).
+ - It currently builds and works for architectures: amd64, amd64v3, arm64,
+   armhf, i386, ppc64el, riscv64, s390x
+ - Link to package: https://launchpad.net/ubuntu/+source/meson
+ 
+ [Rationale]
+ - The package meson is can be in Ubuntu main because it is the build system
+   used by a very large and growing part of main. In tenacious, 235 of the
+   2406 source packages in main (~9.8%) Build-Depend on meson, including core
+   components such as systemd, glib2.0, mesa ...
+ - The binary package to be in main is: meson (the only binary produced,
+   Architecture: all, pure Python, no compiled code). Its footprint is small:
+   - a single executable: /usr/bin/meson
+   - a single Python library: the `mesonbuild` module in
+     /usr/lib/python3/dist-packages/ (plus its egg-info metadata). It is
+     meson's internal implementation, not a public Python API.
+   - support files only: man page (meson.1), bash and zsh completions,
+     /usr/share/meson/debcrossgen (Debian cross-file helper) and a polkit
+     action file (see [Security])
+   - no shared libraries and no services. The maintainer scripts are the
+     standard dh-python py3compile/py3clean steps only
+ - More than twice as many packages in main use meson to build compared
+   to cmake that is already in main and listed in the platform seed 
(supported-development-common, "Development Tools"). It makes sense
+   that meson is   supported on equal terms.
+ - Seeding: we propose adding meson (and ninja-build) to the
+   supported-development-common seed next to cmake.
+ - meson was not updated at all during the 26.10 cycle
+   (stuck at 1.10.1 while Debian has 1.12.1, see LP: #2174244). Without an
+   owning team and a bug subscriber, such issues go unnoticed, putting the
+   buildability of a large part of main at risk late in the cycle (e.g. after
+   Feature Freeze). Main inclusion with a clear owner fixes that.
+ 
+ [Security]
+ - Had #0 security issues in the past:
+   - No CVEs found for meson in the Ubuntu CVE tracker nor NVD.
+   - https://ubuntu.com/security/cves?package=meson
+ - no `suid` or `sgid` binaries
+ - no executables in `/sbin` and `/usr/sbin`
+ - Package does not install services, timers or recurring jobs
+ - Package does not open privileged ports (ports < 1024).
+ - Package does not expose any external endpoints
+ - Packages does not contain extensions to security-sensitive software
+   (filters, scanners, plugins, UI skins, ...)
+ - The only network-facing feature is the Wrap dependency system (subprojects
+   / WrapDB) which downloads sources over HTTPS and verifies them against a
+   sha256 `source_hash` declared in the .wrap file. It is opt-in per project;
+   Debian/Ubuntu builds run with `--wrap-mode=nodownload` via debhelper
+   (dh_auto_configure), so no network access happens on package builds.
+ - It ships one polkit action file,
+   /usr/share/polkit-1/actions/com.mesonbuild.install.policy
+   (action com.mesonbuild.install.run, exec.path /usr/bin/python3,
+   argv1 /usr/bin/meson; defaults: allow_any=no, allow_inactive=no,
+   allow_active=auth_admin_keep). It grants nothing without admin
+   authentication. It is used only by `meson install` (mesonbuild/minstall.py):
+   when installation fails with PermissionError, and only if running
+   interactively on a TTY without DESTDIR, meson asks the user "[y/n]" whether
+   to re-run itself with $MESON_ROOT_CMD, sudo, doas, run0 or (as a last
+   resort) pkexec. Package builds always use DESTDIR, so this path is never
+   taken on buildds.
+ 
+ [Quality assurance - function/usage]
+ - The package works well right after install: it is a CLI tool with no
+   configuration; `meson setup builddir && ninja -C builddir` works out of the
+   box.
+ 
+ [Quality assurance - maintenance]
+ - Where as the package has small number of bugs in Ubuntu and Debian,
+   Upstream has a significant list of open bugs (~1.7k).
+   https://github.com/mesonbuild/meson/issues
+ - However, upstream is active, with a ~quarterly feature release cadence
+   (1.10 -> 1.11 -> 1.12, with point releases in between) and a
+   documented release process. Debian maintainer is Jussi Pakkanen, the
+   upstream project founder, who keeps Debian current (1.12.1-2 in unstable,
+   1.13.0~rc1 in experimental).
+ - The package does not deal with exotic hardware we cannot support.
+ 
+ [Quality assurance - testing]
+ - The package runs an extensive test suite at build time
+   (`override_dh_auto_test: ./run_tests.py`, i.e. the full upstream unit +
+   project test suite across C, C++, Fortran, Vala, Rust, Java, D, ObjC,
+   Qt, GNOME, Cython, cross-compilation, coverage, ...). Failures fail the
+   build.
+ - The package runs autopkgtests
+   (https://autopkgtest.ubuntu.com/packages/m/meson):
+   - basicmeson: minimal C project with gcc, configure/build/test/introspect
+   - clangmeson: same using clang
+   - exhaustive: full upstream test suite against the installed meson
+   - crossbuild: cross-compilation to armhf
+ 
+ [Quality assurance - packaging]
+ - debian/watch is present and works (GitHub releases, with upstream PGP
+   signature URL mangling).
+ - debian/control defines a correct Maintainer field (Ubuntu Developers,
+   XSBC-Original-Maintainer: Jussi Pakkanen).
+ - This package does not yield massive lintian Warnings, Errors.
+   Source lintian on 1.10.1-1ubuntu2: 0 errors, 3 warnings:
+   - inconsistent-appstream-metadata-license (a metainfo file inside upstream
+     "test cases/", not shipped)
+   - orig-tarball-missing-upstream-signature (to be addressed with the merge,
+     watch file already supports .asc)
+   - testsuite-restrictions-has-deprecated-skip-not-installable
+     (debian/tests/control, crossbuild test; Debian 1.12.1-2 replaces this with
+     an Architecture: field)
+ - Lintian overrides are present, but ok because:
+   - debian/source/lintian-overrides:
+     `meson source: virtual-package-depends-without-real-package-depends`
+     with the comment "This is only used for cross compilation unit tests."
+     (the `g++-arm-linux-gnueabihf | bash-doc` build-dep alternative).
+ - This package does not rely on obsolete or about to be demoted packages.
+ - This package has no python2 or GTK2 dependencies.
+ - The package will not be installed by default (developer tool) and has no
+   debconf questions.
+ - Packaging and build is easy: debian/rules is 19 lines, plain
+   `dh --with python3 --buildsystem=pybuild --with bash-completion`, only
+   dh_auto_test is overridden to run the upstream test suite.
+ - Ubuntu delta (5 patches + control change), all documented with LP bugs:
+   - 1-disable-openmpi.patch, 2-disable-rootdir-test.patch (from Debian)
+   - lp2049904.patch: rustc `-Clink-arg=-lc` for external C ABI (LP: #2049904)
+   - llvm-22.diff: add LLVM 22 to the known llvm-config list
+   - boost-resolve-python-version.patch: Boost Python test fix for
+     Python 3.14 (LP: #2143267)
+   - control: Replaces: meson-1.5, meson-1.7 for upgrades from noble
+     (LP: #2126037)
+ 
+ 
+ [UI standards]
+ - Application is not end-user facing (developer CLI tool, no desktop file
+   needed, does not need translation).
+ 
+ [Dependencies]
+ - Runtime dependencies of bin:meson:
+   - python3 (main)
+   - python3-setuptools (main)
+   - ninja-build (>= 1.6) — UNIVERSE, included in this MIR (see below)         
                                  
+   - Recommends: dpkg-dev (main)
+ - Build-Depends: many test-only build-dependencies (marked <!nocheck>) are in
+   universe in tenacious (e.g. dh-python, gobjc, gnustep-make, qtbase5-dev,
+   valac, gdc, ldc, mercurial, gcovr, lcov, doxygen, nasm, libwxgtk3.2-dev,
+   bindgen, cython3, llvm-dev, clang-format). These are only needed to
+   exercise meson's multi-language test suite at build time and are not
+   runtime dependencies; this is consistent with how other main packages
+   (e.g. those using dh-python) are handled in tenacious.
+ 
+ [Standards compliance]
+ - This package correctly follows FHS and Debian Policy (Python module under
+   /usr/lib/python3/dist-packages, entry point /usr/bin/meson, man page,
+   bash completion).
+ - License: Apache-2.0 (debian/copyright, DEP-5 format).
+ 
+ [Maintenance/Owner]
+ - The owning team will be ~debcrafters and I have their
+   acknowledgement for that commitment (comments #1 and #2 by paelzer and
+   seb128 on this bug).
+ - The team ~debcrafters is already subscribed to the package.
+ - This does not use static builds.
+ - This does not use vendored code.
+ - The package has been built in the archive more recently than the last
+   test rebuild (1.10.1-1ubuntu2, resolute).
+ - Build log: https://launchpad.net/ubuntu/+source/meson/1.10.1-1ubuntu2
+ 
+ [Background information]
+ - The Package description explains the package well.
+ - Upstream Name is Meson, same as the source package name.
+ - Upstream: https://mesonbuild.com / https://github.com/mesonbuild/meson
+ 
+ 
+ ################################################################
+ # src:ninja-build
+ ################################################################
+ 
+ ninja-build is a hard runtime dependency of meson (meson generates
+ build.ninja files and invokes ninja), so it must be promoted together.
+ 
+ Previous MIR: LP: #1315313 (2014, Chris Coulson, needed to build Oxide).
+ It was ACKed by the MIR team (jdstrand) with conditions: enable the test
+ suite, have a team bug subscriber, and file two minor Debian bugs. All were
+ done, and the package was in main from utopic (14.10) to xenial. On
+ 2016-04-11, ten days before the xenial release, it was moved to universe as
+ part of a bulk demotion of the packages listed on component-mismatches.
+ It was not re-promoted after that and has been in universe since (~10 years). 
Because
+ so much time has passed, this is a fresh review. The 2014 conditions still
+ hold: build-time tests run (build/ninja_test), there is an owning team
+ (~debcrafters, replacing the long-gone oxide-developers), and the
+ old Apache-2.0 copyright lintian errors no longer appear.
+ 
+ [Availability]
+ - The package ninja-build is already in Ubuntu universe.
+ - It currently builds and works for architectures: amd64, amd64v3, arm64,
+   armhf, i386, ppc64el, riscv64, s390x
+ - Link to package: https://launchpad.net/ubuntu/+source/ninja-build
+ - In sync with Debian (1.13.2-1), no Ubuntu delta.
+ 
+ [Rationale]
+ - Required at runtime by meson (above). It is also the backend used by
+   cmake -G Ninja and by many other build tooling (gn, etc.), and a
+   build-dependency of many main packages.
+ - Binary package to be in main: ninja-build.
+ 
+ [Security]
+ - Had #0 security issues in the past (Ubuntu CVE tracker and NVD: none).
+ - no suid/sgid, no /sbin, no services/timers, no network, no privileged
+   ports. It is a small C++ program executing commands from a build.ninja file
+   generated by meson/cmake; same build-system threat model as make.
+ 
+ [Quality assurance - function/usage]
+ - Works right after install, no configuration.
+ 
+ [Quality assurance - maintenance]
+ - Ubuntu: 1 open bug, LP: #1518967 "Crash on ninja -t browse <target>"
+   (High, from 2015, no activity since 2015-11). `-t browse` is a debug tool
+   that starts a local Python web server; it is a corner case not used by
+   meson/cmake. TODO: re-test on tenacious and close or forward upstream.
+ - Debian: https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=ninja-build
+ - Upstream active: https://github.com/ninja-build/ninja
+ 
+ [Quality assurance - testing]
+ - Build-time tests: `build/ninja_test` (upstream googletest suite) runs
+   during build; failures fail the build.
+ - autopkgtest `basic` (with build-essential) passes on amd64, arm64, armhf,
+   ppc64el, s390x, i386:
+   https://autopkgtest.ubuntu.com/packages/n/ninja-build
+ - Additionally, it is heavily exercised indirectly by the meson
+   autopkgtests and by every meson/cmake-ninja build in the archive.
+ 
+ [Quality assurance - packaging]
+ - debian/watch present; Maintainer: Felix Geyer (Debian), synced.
+ - Lintian: 0 errors, 0 warnings on the source package.
+ - debian/rules is short (CMake via dh, LTO enabled, docs + man page).
+ - One patch: deps_log_test_support_big_endian_architectures.patch (test fix
+   for s390x).
+ 
+ [UI standards]
+ - Not end-user facing (developer CLI tool).
+ 
+ [Dependencies]
+ - Runtime: libc6, libstdc++6, libgcc-s1 (all main). Suggests: python3.
+ - Build-Depends in universe (build/doc only): asciidoc, docbook-xsl,
+   help2man, libgtest-dev.
+ 
+ [Standards compliance]
+ - Follows FHS and Debian Policy. License: Apache-2.0.
+ 
+ [Maintenance/Owner]
+ - Owning team: ~debcrafters (same commitment as for meson).
+ - No vendored code, no static builds, not rust/go.
+ 
+ [Background information]
+ - Upstream name "Ninja", source package named ninja-build (the binary is
+   /usr/bin/ninja; the "-build" suffix avoids a historic name clash).
+ - Upstream: https://ninja-build.org/

** Changed in: meson (Ubuntu)
       Status: Incomplete => In Progress

** Changed in: ninja-build (Ubuntu)
       Status: New => In Progress

** Changed in: ninja-build (Ubuntu)
     Assignee: (unassigned) => Hector Cao (hectorcao)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174246

Title:
  [MIR] meson

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/meson/+bug/2174246/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to