Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mmdebstrap action #539

Merged
merged 2 commits into from
Mar 4, 2025
Merged

Conversation

iwamatsu
Copy link

@iwamatsu iwamatsu commented Mar 3, 2025

The mmdebstrap process fails because the format contains single quotation.
To fix this, remove single quotation (') from the append strings of dpkgopt and aptopt.

Debos yaml file:

architecture: amd64

actions:
  - action: mmdebstrap
    suite: sid
    variant: minbase
    merged-usr: true
    dpkg-opts:
      - path-exclude=/usr/share/man/*

Error message:

[...]
2025/03/03 06:59:12 Mmdebstrap | dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/99mmdebstrap:1: unknown option ''
[...]

From debug message of mmdebstrap:

[...]
D: 1 3180 content of /etc/dpkg/dpkg.cfg.d/99mmdebstrap:
'path-exclude=/usr/share/man/*' <--here
apt 2.9.30 (amd64)
Supported modules:
*Ver: Standard .deb
[...]

@iwamatsu
Copy link
Author

iwamatsu commented Mar 3, 2025

@nbuchwitz Could you check this PR?

@nbuchwitz
Copy link
Contributor

Hm looks like something is double-escaping the string. I've tested your patches and can confirm that this fixes the issue. Thanks for also adding tests for this! -> LGTM

@nbuchwitz
Copy link
Contributor

@sjoerdsimons unfortunately this slipped trough in my initial MR. This should go into the release too

@obbardc
Copy link
Member

obbardc commented Mar 3, 2025

@sjoerdsimons looks good to me. I will let you review too

@sjoerdsimons
Copy link
Member

@sjoerdsimons looks good to me. I will let you review too

thanks looks like we'll need to fix the arch build to get the pipeline green against first

…pkgopt and aptopt

Remove single quotation (') from the append strings of dpkgopt and aptopt.
The mmdebstrap process fails because the format contains single quotation.

Debos yaml file:
```
architecture: amd64

actions:
  - action: mmdebstrap
    suite: sid
    variant: minbase
    merged-usr: true
    dpkg-opts:
      - path-exclude=/usr/share/man/*
```

Error message:
```
[...]
2025/03/03 06:59:12 Mmdebstrap | dpkg: error: configuration error: /etc/dpkg/dpkg.cfg.d/99mmdebstrap:1: unknown option ''
[...]
```

From debug message of mmdebstrap:
```
[...]
D: 1 3180 content of /etc/dpkg/dpkg.cfg.d/99mmdebstrap:
'path-exclude=/usr/share/man/*' <--here
apt 2.9.30 (amd64)
Supported modules:
*Ver: Standard .deb
[...]
```

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
@sjoerdsimons sjoerdsimons added this pull request to the merge queue Mar 4, 2025
Merged via the queue into go-debos:main with commit 1c95fe3 Mar 4, 2025
37 checks passed
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.

5 participants