bionic upstream branch fails to build: missing autoconf files

Bug #1999897 reported by Andreas Hasenack
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Invalid
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned

Bug Description

[Original Description]
The bionic upstream branch of update-notifier[1] currently FTBFSs.

Compared to the source package in the ubuntu bionic archive (which builds just fine), it's missing the generated autoconf files:
$ git diff pkg/ubuntu/bionic-devel..upstream/bionic|diffstat|grep -v /po
 Makefile.in | 808 ---
 aclocal.m4 | 2290 ----------
 b/.gitignore | 31
 b/debian/changelog | 10
 b/debian/control | 2
 compile | 347 -
 configure | 9127 -------------------------------------------
 data/Makefile.in | 649 ---
 depcomp | 791 ---
 install-sh | 508 --
 missing | 215 -
 pixmaps/16x16/Makefile.in | 494 --
 pixmaps/22x22/Makefile.in | 494 --
 pixmaps/24x24/Makefile.in | 494 --
 pixmaps/48x48/Makefile.in | 494 --
 pixmaps/Makefile.in | 617 --
 pixmaps/scalable/Makefile.in | 494 --
 po/Makefile.in.in | 221 -
 src/Makefile.in | 715 ---
 ui/Makefile.in | 494 --
 153 files changed, 17378 insertions(+), 32241 deletions(-)

All other upstream branches in update-notifier have those files removed, but d/rules was adapted to generate them:
$ git diff upstream/bionic..upstream/focal -- debian/rules
diff --git a/debian/rules b/debian/rules
index c67232ec..73fe23e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,15 @@ export CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
 export LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

 %:
- dh $@ --with python3
+ dh $@ --with python3 --with autoreconf
+
+override_dh_autoreconf:
+ NOCONFIGURE=1 dh_autoreconf ./autogen.sh
+
+override_dh_auto_configure:
+ dh_auto_configure -- --libdir=/usr/lib

 override_dh_auto_test:
        cd tests && python3 test_package-data-downloader.py
+ cd tests && python3 test_motd.py
+

We should either generate these files at build time, like the other upstream branches, or include them in the bionic repository, like the current package in the bionic ubuntu archive has it[1]

1. https://git.launchpad.net/ubuntu/+source/update-notifier/tree/?h=ubuntu/bionic-devel

[Impact]
This will fix FTBFSs errors when building the package by bringing the autoconf file from the package in archive

[Test Case]
Check if the package can now build without FTBFSs errors

[Regression Potential]
We are just bringing autoconf files directly from the package in archive. Because of that, we believe regressions here are very unlikely. However,
if we have a problem, we believe this will affect the package build directly, which will prevent this SRU for taking place.

[Discussion]

In the previous SRU, those files were manually imported by the reviewer to make the build pass. Since we want to avoid this step in the future, we are bringing those files for this SRU now.

[Changelog]

  * po/*.po: do no translate template variable needed for
    package-data-downloader script (LP: #2003543)
  * Bring generated autoconf files from the archive package (LP: #1999897)

summary: - bionic branch fails to build: missing autoconf files
+ bionic upstream branch fails to build: missing autoconf files
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

If calling autogen.sh in the bionic branch, there is another discrepancy: it wants gnome-common to be installed as a build-dep, but that is not declared in d/control.

It was dropped[1] in later commits to other branches. For example, focal:

commit 38a5a75dcd3586cda0cf8d2401053825f024c497
Author: Sebastien Bacher <email address hidden>
Date: Tue Mar 19 11:17:55 2019 +0100

    * debian/control, autogen.sh:
      - don't build-depends on gnome-common, that is deprecated and was
        comment out in the autogen.sh already anyway

1. https://git.launchpad.net/update-notifier/commit/?id=38a5a75dcd3586cda0cf8d2401053825f024c497

description: updated
Changed in update-notifier (Ubuntu):
status: New → Invalid
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Please test proposed package

Hello Andreas, or anyone else affected,

Accepted update-notifier into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/update-notifier/3.192.1.18 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in update-notifier (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic
description: updated
tags: added: verification-done verification-done-bionic
removed: verification-needed verification-needed-bionic
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The package built correctly on bionic, and there are no DEP8 regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-notifier - 3.192.1.18

---------------
update-notifier (3.192.1.18) bionic; urgency=medium

  * po/*.po: do no translate template variable needed for
    package-data-downloader script (LP: #2003543)
  * Bring generated autoconf files from the archive package (LP: #1999897)

update-notifier (3.192.1.16) bionic; urgency=medium

  [ Renan Rodrigo Barbosa]
  * Rely on the Pro Client apt esm cache to check for esm updates
    (LP: #2002168)

 -- Lucas Moura <email address hidden> Fri, 20 Jan 2023 16:25:17 -0300

Changed in update-notifier (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for update-notifier has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.