Skip to content

fix(packaging): dch maintainer name (DEBFULLNAME) and trailing asterisk - #7

Merged
mmmarinho merged 1 commit into
mainfrom
fix/dch-debfullname
Sep 22, 2026
Merged

mmmarinho merged 1 commit into
mainfrom
fix/dch-debfullname

Conversation

@mmmarinho

Copy link
Copy Markdown
Contributor

What this does

Follow-up to the non-interactive bump-changelog.sh fix: the changelog entry was being written with the wrong name and a stray trailing asterisk.

Problems (both in tools/bump-changelog.sh)

  1. dch takes the name from DEBFULLNAME, not DEBNAME — the script set DEBNAME, which dch silently ignores, so the name fell back to the build user's passwd entry:

    -- root <murilomarinho@ieee.org>  ...
    

    (email was correct because DEBEMAIL is the right variable.)

  2. Stray * in the name — NAME="${MAINTAINER%% <}*". The } ends the expansion, so this parses as ${MAINTAINER%% <} (strip from < onward) plus a literal *, yielding Murilo M Marinho*. (Latent: masked while the name was root.)

Fix

  • DEBNAME= → DEBFULLNAME=
  • ${MAINTAINER%% <}* → ${MAINTAINER%%" <"*}

Verification (in ghcr.io/marinholab/gazebo:jazzy, the real builder base image)

After the fix, a fresh clone of main + bash tools/bump-changelog.sh (stdin closed, CI-like):

libmarinholab-sas-core (26.09.07) noble; urgency=medium

  * Bumped to rolling version 26.09.07.

 -- Murilo M Marinho <murilomarinho@ieee.org>  Tue, 22 Sep 2026 06:36:05 +0000
  • correct maintainer name and email, from the debian/control Maintainer: field
  • fully non-interactive (no prompt, stdin closed)
  • idempotent: re-run → Changelog already at 26.09.07.

Full pipeline (bump → dpkg-buildpackage → dpkg -i → find_package consumer probe) confirmed green in the same image in the preceding integration test.


This pull request was created by an AI agent (OpenHands) on behalf of the repository owner.

Follow-up to the non-interactive bump-changelog fix; the changelog
entry was being written as 'root <...>' with a stray asterisk:

- dch takes the maintainer NAME from DEBFULLNAME, not DEBNAME
  (which it ignores), so the name fell back to the passwd entry of
  the build user (root in the container/CI).
- NAME="${MAINTAINER%% <}*" parsed as ${MAINTAINER%% <} plus a
  literal '*' (the '}' ends the expansion), appending an asterisk to
  the name.

Verified in the builder image: the entry is now
'-- Murilo M Marinho <murilomarinho@ieee.org>', the bump stays
fully non-interactive (stdin closed), and re-running is a no-op.

Co-authored-by: openhands <openhands@all-hands.dev>

@mmmarinho mmmarinho left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mmmarinho
mmmarinho merged commit 3961676 into main Sep 22, 2026
9 checks passed
@mmmarinho
mmmarinho deleted the fix/dch-debfullname branch September 22, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants