unable to sign source package

Asked by Dave Chen

I am not sure if it's appropriate to post the question in this forum, but if you have any clue, would you kindly drop me some suggestion?
the question is, when I try to sign my source package, I got these error message, something about the binary file:
dpkg-source: error: cannot represent change to xxx/commons-logging-1.0.4.jar: binary file contents changed.
Does this mean, the source package mustn't include some class or jar file? As our project cannot be built successfully without these binary, is there any work around solution?

We also try to download these jar package from the PPA server, but seems this is not supported here:
wget http://www.docjar.com/jar/activation-1.0.2.jar
http://www.docjar.com/jar/activation-1.0.2.jar
Resolving www.docjar.com (www.docjar.com)... failed: Name or service not known.

any suggestion is strongly appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Michael Bienia (geser) said :
#1

Re your 1st problem:
Your error happens during building of the source package and not during the signing stage.
Your build process changed the file xxx/commons-logging-1.0.4.jar (why did it change?) and changes to binary files can't get expressed as diff files.

Re your 2nd problem:
The build servers don't have access to the internet (on purpose). You can't download anything from the internet but has to ship it in your source package. In this case it would be better to check if that jar is perhaps already packaged and reuse that package (depend on it) instead of duplicating that file.

Revision history for this message
Max Bowsher (maxb) said :
#2

The error message:

>> dpkg-source: error: cannot represent change to xxx/commons-logging-1.0.4.jar: binary file contents changed.

occurs when *building* a source package, not when *signing* a source package.

It occurs because it is not permitted to add or change non-text files in the packaging part of a debian source package, because the packaging part is represented as a textual diff.

It is hard to give more detailed advice without seeing a copy of your attempted source packaging. I recommend making it available, ideally in version control - e.g. a Bazaar branch on Launchpad - and then asking for further help, either here or in the IRC channel #ubuntu-packaging on FreeNode.

Revision history for this message
Dave Chen (wei-d-chen) said :
#3

Hi Michael,

Thanks for your prompt reply, really appreciate that. Your answer help me get a clear view of my issue.

Best Regards

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Michael Bienia
Sent: Thursday, August 16, 2012 7:41 PM
To: Chen, Wei D
Subject: Re: [Question #205972]: unable to sign source package

Your question #205972 on Launchpad itself changed:
https://answers.launchpad.net/launchpad/+question/205972

Michael Bienia posted a new comment:
Re your 1st problem:
Your error happens during building of the source package and not during the signing stage.
Your build process changed the file xxx/commons-logging-1.0.4.jar (why did it change?) and changes to binary files can't get expressed as diff files.

Re your 2nd problem:
The build servers don't have access to the internet (on purpose). You can't download anything from the internet but has to ship it in your source package. In this case it would be better to check if that jar is perhaps already packaged and reuse that package (depend on it) instead of duplicating that file.

--
You received this question notification because you asked the question.

Revision history for this message
Dave Chen (wei-d-chen) said :
#4

Hi Max,

Thanks for your prompt reply, really appreciate your help on this issue.

Best Regards

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Max Bowsher
Sent: Thursday, August 16, 2012 7:46 PM
To: Chen, Wei D
Subject: Re: [Question #205972]: unable to sign source package

Your question #205972 on Launchpad itself changed:
https://answers.launchpad.net/launchpad/+question/205972

    Status: Open => Answered

Max Bowsher proposed the following answer:
The error message:

>> dpkg-source: error: cannot represent change to xxx/commons-
logging-1.0.4.jar: binary file contents changed.

occurs when *building* a source package, not when *signing* a source package.

It occurs because it is not permitted to add or change non-text files in the packaging part of a debian source package, because the packaging part is represented as a textual diff.

It is hard to give more detailed advice without seeing a copy of your attempted source packaging. I recommend making it available, ideally in version control - e.g. a Bazaar branch on Launchpad - and then asking for further help, either here or in the IRC channel #ubuntu-packaging on FreeNode.

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/launchpad/+question/205972/+confirm?answer_id=1

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/launchpad/+question/205972

You received this question notification because you asked the question.

Revision history for this message
Dave Chen (wei-d-chen) said :
#5

Hi Michael,

Thanks for your prompt reply, really appreciate that. Your answer help me get a clear view of my issue.

Best Regards

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Michael Bienia
Sent: Thursday, August 16, 2012 7:41 PM
To: Chen, Wei D
Subject: Re: [Question #205972]: unable to sign source package

Your question #205972 on Launchpad itself changed:
https://answers.launchpad.net/launchpad/+question/205972

Michael Bienia posted a new comment:
Re your 1st problem:
Your error happens during building of the source package and not during the signing stage.
Your build process changed the file xxx/commons-logging-1.0.4.jar (why did it change?) and changes to binary files can't get expressed as diff files.

Re your 2nd problem:
The build servers don't have access to the internet (on purpose). You can't download anything from the internet but has to ship it in your source package. In this case it would be better to check if that jar is perhaps already packaged and reuse that package (depend on it) instead of duplicating that file.

--
You received this question notification because you asked the question.

Revision history for this message
Laura Czajkowski (czajkowski) said :
#6

has been answered above

Can you help with this problem?

Provide an answer of your own, or ask Dave Chen for more information if necessary.

To post a message you must log in.