-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
deb packaging: Two trailing \n in DEBIAN/conffiles prevent Uyuni/SUSE Manager from importing Vector deb repo #18439
Labels
Comments
Thanks for reporting this @senecops ! It seems to be an issue with the tool we use to build the debian packages. I opened an issue upstream: kornelski/cargo-deb#110 I noticed the only conffiles we have are in |
jszwedko
added a commit
that referenced
this issue
Sep 1, 2023
Apparently `cargo-deb` is including an extra newline in the generated `conffiles` file which causes a bug when used with Uyuni/SUSE Manager (#18439). I opened an issue upstream, kornelski/cargo-deb#110, but observed that we only have conffiles in `/etc` and so don't actually need to include a `conffiles` control file. Per the Debian docs: > dh_installdeb(1) automatically flags any files under the /etc directory as conffiles, so if your program only has conffiles there you do not need to specify them in this file. For most package types, the only place conffiles should ever be is under /etc, and so this file doesn't need to exist. Closes: #18439 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 1, 2023
…18455) Apparently `cargo-deb` is including an extra newline in the generated `conffiles` file which causes a bug when used with Uyuni/SUSE Manager (#18439). I opened an issue upstream, kornelski/cargo-deb#110, but observed that we only have conffiles in `/etc` and so don't actually need to include a `conffiles` control file. Per the Debian docs: > dh_installdeb(1) automatically flags any files under the /etc directory as conffiles, so if your program only has conffiles there you do not need to specify them in this file. For most package types, the only place conffiles should ever be is under /etc, and so this file doesn't need to exist. Closes: #18439 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A note for the community
Problem
We noticed that deb packages generated by cloudsmith cannot be imported into Uyuni/SUSE Manager due to an empty newline in
conffiles
. Steps to check:I also reproduced this with https://packages.timber.io/vector/nightly/latest/vector_nightly-1_amd64.deb as of 2023-08-31.
Outputs:
Note the two
0a
. One newline is completely fine and expected. Two are not. The source definition does nothing wrong I would say, ref:vector/Cargo.toml
Line 51 in 4cc9cdf
Configuration
No response
Version
vector 0.31.0 (x86_64-unknown-linux-gnu 0f13b22 2023-07-06 13:52:34.591204470)
Debug Output
No response
Example Data
No response
Additional Context
I reported this on 2023-08-09 to support@cloudsmith.io. They say the problem is caused by how Vector creates the package. I was able to confirm that by searching for another project and checking if their conffile also has double newline. https://cloudsmith.io/~isc/repos/stork/packages/detail/deb/isc-stork-server/1.12.0.230802125039/a=amd64;d=any-distro%252Fany-version;t=binary/ has a single new line.
References
The text was updated successfully, but these errors were encountered: