-
Notifications
You must be signed in to change notification settings - Fork 322
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
Support for multiple packages in control file #219
Comments
The control file as used by jdeb is more like the control file of a binary package, it doesn't support multiple paragraphs as used in the control file of a source package. |
If the bahviour is on purpose, then there should be a better error message. And it should be documented. |
It's documented here with an example. How would you improve the documentation to make this clearer? |
The documentation should state clearly, that jdeb only supports a subset of the control file specification. Especially that is doesn't support multiple packages. I can't find that in the current documentation. |
@Eymux the spec allows multiple binary packages from one control file? |
http://people.canonical.com/~cjwatson/ubuntu-policy/policy.html/ch-controlfields.html
|
"Some control files allow only one paragraph; others allow several" sounds we are not really outside of the spec but we should provide better docs and a better error message. Given that May I ask why you wanted to create multiple packages with one |
We're creating several packages from the same sources for different scenarios, that can be installed individually. I already have a control file, that is used with Ant. After switching to Maven, I wanted to get rid of Ant as much as possible. And jdeb is the only Maven plugin for creating Debian packages, I'm aware of. It would have been nice, if jdeb supported source packages. |
Well, the use case of You are creating source packages or binary packages? While it would need quite some work I am not opposed to adding support for multi package support. |
For your migration to Maven, you can consider using the maven-antrun-plugin to build several .deb from the same module. |
@tcurdt: As far as I understand it, we're creating a source package and multiple binary packages. The control file is here: https://raw.githubusercontent.com/WollMux/WollMux/master/lhmdeb/control @ebourg: I'm aware of that. But then I would have to change my control file to work with Maven. That's not trivial. |
Well, I only see a few options here:
I am a little concerned on how a retrofit into the 1.x branch could look like. This certainly could be added in 2.x but since I currently don't have a customer sponsoring the development that's mostly just plans and vaporware at this stage. |
We're already working on a different solution. I wish I could give you the money to work on this. Maven could use a comprehensive plugin for making Debian packages. |
Well, so far most people have been quite happy with jdeb as is :) |
It wasn't meant as critisism. jdeb just isn't what I need right now. |
@Eymux no worries - all good :) |
I have a control file with four separate packages. Each package is separated by an empty line (as per specification).
The parser of the Maven plugin fails with an exception.
The control file works fine with the Debian packaging tools. So I think, this is a problem of the jdeb parser.
The text was updated successfully, but these errors were encountered: