Build process corrupting binary?
Hi!
I just solved the problem of getting a PPA into Launchpad and it works! I am so happy! I have a binary to distribute only so the Makefile looks like this:
BINDIR := /usr/bin
all:
install:
mkdir -p ${DESTDIR}${BINDIR}
cp cronjob-guardian ${DESTDIR}
So it just copies the binary from the same folder into /usr/bin.
However, when I install this PPA on a different system it puts a smaller binary into /usr/bin, only 30.8 MB instead of the original 39.5 MB. The `cmp` app says the differences start at byte 41, so it is not just truncated.
That binary always fails with "Pkg: Error reading from file.", doesn't even start. I am not sure where this error message comes from. The original binary is executable on that same system.
Does anyone have an idea why the binary is altered and why it isn't executable anymore?
Thank you!
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Michel Helms for more information if necessary.