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

Generate .changes files for debian packages #488

Open
2 tasks done
SasSwart opened this issue Apr 6, 2022 · 2 comments · May be fixed by #612
Open
2 tasks done

Generate .changes files for debian packages #488

SasSwart opened this issue Apr 6, 2022 · 2 comments · May be fixed by #612
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@SasSwart
Copy link
Contributor

SasSwart commented Apr 6, 2022

Is your feature request related to a problem? Please describe.

I need to upload debian packages to reprepo for distribution to internal package mirrors.
Reprepo needs a .changes file. I'm able to generate a debian compatible changelog using chglog, but I'm unable to create the .changes file.

I found this issue, which refers to an earlier one, but both only mention generating the changelog itself. I'm unable to find any documentation that speaks to generating the .changes control file.

Describe the solution you'd like

I'm happy to provide the PR that generates the .changes file as documented here.

Since this would be my first contribution to this project, I would like to engage the maintainers and community for advice first.

  • Do you feel this belongs in nfpm, or another goreleaser repo?
  • Does this change fit within the current roadmap of this project?
  • Is this feature desirable enough for the maintainers to warrant their time reviewing my PR?

Describe alternatives you've considered

An alternative is for me to use dpkg-genchanges to generate the file, but nfpm is already signing my .deb file, so I would like it to sign the .changes file as well.

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@SasSwart SasSwart added the enhancement New feature or request label Apr 6, 2022
@caarlos0
Copy link
Member

caarlos0 commented Apr 6, 2022

hmmm... probably nfpm/chglog

it might be possible to do it by using chglog and providing it as an extra file to the nfpm config though... maybe worth trying that first...

if it works, we can document it it :)

@ArtemTrofimushkin ArtemTrofimushkin linked a pull request Jan 30, 2023 that will close this issue
@ArtemTrofimushkin
Copy link

Hello @caarlos0 !
I tried to implement such functionality for generating .changes files for deb packages, according to docs:
https://www.debian.org/doc/debian-policy/ch-controlfields.html#debian-changes-files-changes
https://man7.org/linux/man-pages/man5/deb-changes.5.html

Can you look this PR, please?

@caarlos0 caarlos0 added this to the 2.38.0 milestone May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants