** Description changed:

  Background
  ---
  
  This MIR is needed for the MIR of Meson [2]
  This MIR bug is an existing MIR bug for ninja-build for Trusty (as dependency 
of Oxide) and has been approved by MIR team. ninja-build got promoted to main 
from utopic (14.10) to xenial but got removed in the subsequent release since 
Oxide is no longer available.
  
  Let me revive this bug to promote ninja-build again in the context of
  meson MIR.
  
  MIR report for Ubuntu Tenacious
  ---
  
  ninja-build is a hard runtime dependency of meson (meson generates
  build.ninja files and invokes ninja), so its promotion is needed for meson 
promotion.
  
  [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
+ - Upstream is maintained in GitHub
+ - Open Bugs: ~300 upstream, <10 Ubuntu and Debian
+ - Roughly one feature release a year, plus point releases.
+ - 2026 has the most commits (188) and the most authors since at least 2020
+ - In 2026 (to 1 December), 51 issues were reported on ninja-build/ninja and 
55 
+   were closed. 
  
  [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.
+ - Upstream runs automated tests on every push and pull request
+   across Linux, Windows and macOS.
+   - 467 C++ unit tests across 27 *_test.cc
+   - 24 end-to-end tests that run the real ninja binary
+     and check its terminal output and behaviour.
+   - 6 performance benchmarks
+ - Ubuntu/Debian: 1 autopkgtest (basic). Passed on all arches
  
  [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[1] (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/
  
  [1] https://launchpad.net/~canonical-debcrafters
  [2] https://bugs.launchpad.net/ubuntu/+source/ninja-build/+bug/2174246
  
  === MIR for Trusty ===
  
  1) Availability
  
  It's available on all architectures.
  
  2) Rationale
  
  ninja-build is now a hard build requirement for Oxide which is in main.
  As Google are explicitly disabling support for building Chromium with
  GYP's makefile backend**, it will also be a requirement for Chromium too
  (although Chromium isn't in main, yet). Chromium from the dev channel is
  not buildable with GYP's makefile backend, and Google have no plans to
  resolve this.
  
  ** see
  
https://chromium.googlesource.com/chromium/src/build/+/9bc1c207a18ffa8284095d9350e835a4518870f6
  
  3) Security
  
  - No open issues
  - No executables with suid or sgid bit set
  - No executables in /sbin or /usr/sbin
  - No daemon
  - Doesn't open any ports
  - Doesn't add plugins to security sensitive software, although it does 
provide bash-completion, zsh completion, vim and emacs plugins
  
  4) QA
  
  - Works after installing with no additional effort.
  - Package does not ask debconf questions.
  - No major long-term outstanding bugs. As this is the primary build tool used 
by Chrome developers, it would be reasonable to assume that there are people 
who care a lot for this.
  - There is 1 important bug in Debian's BTS, but this is sparc specific:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697268
  - Upstream, there are 17 issues in the issue tracker that are marked as bugs. 
Out of these, 5 are Windows specific. None are particularly important, and 
don't affect its use for building Oxide or Chromium:
  https://github.com/martine/ninja/issues?labels=bug&page=1&state=open
  - The package is currently sync'd from Debian. It's at version 1.3.4, and 
could probably do with updating to the latest release (1.4.0) which is the 
version used to build Chromium. The current version does work fine though.
  - It builds a test binary, but doesn't appear to run this at the moment. It 
does use a python script to create a bootstrapped ninja binary, which it then 
uses to build itself.
  - Has a debian/watch file.
  
  5) UI standards
  
  - N/A
  
  6) Dependencies
  
  debhelper, gtest, python, asciidoc, hardening-wrapper, re2c, help2man,
  libxslt, docbook-xsl, docbook-xml, doc-main - all in main.
  
  7) Standards compliance
  
  - No issues
  
  8) Maintenance
  
  - Package will be low maintenace. The current release (1.4.0) is 8
  months old. The previous release (1.3.4) was 3 months before that.

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

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

Title:
  [MIR] ninja-build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ninja-build/+bug/1315313/+subscriptions


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

Reply via email to