Public bug reported:

tlp 1.10.1-1 fails to build from source in Ubuntu stonking (proposed-
migration).

Regressing architectures (built before with 1.8.0-1ubuntu2, fail now):
amd64.

Build log:
  - 
https://launchpad.net/ubuntu/+source/tlp/1.10.1-1/+build/32938081/+files/buildlog_ubuntu-stonking-amd64.tlp_1.10.1-1_BUILDING.txt.gz

Root cause: parallel Makefile install race on $(DESTDIR)/usr/sbin
The upstream Makefile's install target calls install-tlp, install-rdw, and
install-pd as independent prerequisites. With DEB_BUILD_OPTIONS=parallel=4,
install-tlp and install-pd both race to create $(DESTDIR)/usr/sbin via
implicit mkdir from `install -D`. The race causes install-pd to fail:

  install: cannot create directory '/<<PKGBUILDDIR>>/debian/tmp/usr/sbin'
  make[1]: *** [Makefile:255: install-pd] Error 1
  dh_auto_install: error: make -j4 install DESTDIR=... returned exit code 2

This is a new regression: tlp 1.8.0-1ubuntu2 built successfully on amd64.
The same version 1.10.1-1 is in Debian unstable; no fix is available in
Debian or upstream at this time.

Proposed fix: pre-create $(_SBIN) explicitly at the start of install-pd so
both install-tlp and install-pd can safely run in parallel without racing.
A patch is attached (tlp_1.10.1-1ubuntu1.debdiff).

Patch summary:
  --- Makefile (install-pd target)
  +++ Makefile (install-pd target)
  @@ install-pd: all
       # Package tlp-pd
  +    install -d $(_SBIN)
       install -D -m 755 tlp-pd $(_SBIN)/tlp-pd

** Affects: tlp (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs stonking update-excuses

** Tags added: ftbfs stonking update-excuses

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

Title:
  tlp 1.10.1-1 fails to build from source (FTBFS) on amd64

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


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

Reply via email to