dpkg-genchanges: error: cannot read files list file
I wanna build our source code on PPA, but it always complains that the file list cannot be found, I am really screwed now for I have trid bunch of times, the same issue is persistent there, can anyone help me? underneath is the rules file under debian directory:
%:
dh $@
build:
clean:
dh_testdir
dh_testroot
# Add here commands to clean up after the build process.
dh_clean
install: build
dh_testdir
dh_testroot
#dh_clean -k
#-cp ./debian/control ./debian/
./ppa.sh
binary-arch: build install
dh_testdir
dh_testroot
dh_builddeb
and the disgusting message hit me is like this:
mkdir: cannot create directory `/build/
1
-e DEB build: -------
dh_testdir
dh_testroot
dh_installdeb
dh_builddeb
INFO: pkgstriptransla
INFO: Disabling pkgstriptransla
INFO: Disabling pkgmaintainerma
INFO: Disabling pkgstripfiles for PPA build
dpkg-deb: warning: 'debian/
dpkg-deb: warning: 'debian/
dpkg-deb: warning: 'debian/
dpkg-deb: warning: 'debian/
dpkg-deb: warning: ignoring 4 warnings about the control file(s)
dpkg-deb: building package `openattestation' in `../openattesta
dpkg-genchanges -B -mUbuntu Build Daemon <email address hidden> >../openattesta
dpkg-genchanges: arch-specific upload - not including arch-independent packages
dpkg-genchanges: error: cannot read files list file: No such file or directory
dpkg-buildpackage: error: dpkg-genchanges gave error exit status 2
*******
Would you anyone kindly point it out and how to fix it? any suggestion is greatly appreciated.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- Jelmer Vernooij Edit question
- Last query:
- 2012-09-05
- Last reply:
- 2012-09-21
| Jelmer Vernooij (jelmer) said : | #1 |
Hello,
What's the package you're trying to build and in what PPA?
Does building locally work?
| Dave Chen (wei-d-chen) said : | #2 |
Hi Jelmer,
Thanks for your reply, we can build the package locally, I have tried it many times. The package we want to build on launchpad is an opensource project, package name is openattestation, and I config the changelog like this:
openattestation (1.0.31-1) precise; urgency=high
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- root <email address hidden> Tue, 21 Aug 2012 19:11:37 +0800
| Jelmer Vernooij (jelmer) said : | #3 |
Have you tried building just the arch specific bits when building locally?
| Dave Chen (wei-d-chen) said : | #4 |
Jelmer, thanks for your reply. I am just a newbee, would you kindly tell me how to build the arch specific bits? any configuration in the rules? thanks!
| Dave Chen (wei-d-chen) said : | #5 |
Jelmer, thanks for your reply. I am just a newbee, would you kindly tell me how to build the arch specific bits? any configuration in the rules? thanks!
| Jelmer Vernooij (jelmer) said : | #6 |
Running "./debian/rules binary-arch" should do it.
| Dave Chen (wei-d-chen) said : | #7 |
yes, it works when building locally with binary-arch. I suspect there is an issue with my rules file when I try to build on lauchpad but I cannot figure it out.
| Colin Watson (cjwatson) said : | #8 |
You have an odd mix of different styles of rules file in here, which is not going to help you.
You should delete the build, clean, install, and binary-arch targets entirely - the "dh $@" at the top covers almost all of this already. Then, to add the one piece of customisation you actually need here:
override_
./ppa.sh
Make sure that the spaces before "./ppa.sh" are actually a tab character - I can't represent that properly in this comment system.
However, it looks like the error message is actually coming from your ppa.sh script, which I can't see, so I have no way to offer advice on how it should be fixed.
Can you help with this problem?
Provide an answer of your own, or ask Dave Chen for more information if necessary.
