Closed elichai closed 3 years ago
When I try to compile on Debian it gives me something similar:
sed: can't read Makefile: No such file or directory
sed: can't read rpmpackage/pybitmessage.spec: No such file or directory
sed: can't read rpmpackage/pybitmessage.spec: No such file or directory
sed: can't read puppypackage/pinstall.sh: No such file or directory
sed: can't read puppypackage/puninstall.sh: No such file or directory
sed: can't read debian/*.links: No such file or directory
make: *** No rule to make target `clean'. Stop.
make: *** No targets specified and no makefile found. Stop.
mv: cannot stat ‘../pybitmessage’: No such file or directory
make: *** No rule to make target `sourcedeb'. Stop.
dpkg-buildpackage: source package pybitmessage
dpkg-buildpackage: source version 0.4.4-1
dpkg-buildpackage: source distribution utopic
dpkg-buildpackage: source changed by Bob Mottram (4096 bits) <bob@robotics.uk.to>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build PyBitmessage
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
dh_clean
dpkg-source -b PyBitmessage
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../pybitmessage_0.4.4.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b PyBitmessage gave error exit status 255
You need a passphrase to unlock the secret key for
user:
4096-bit RSA key, ID, created 2015
gpg: can't open `../pybitmessage_0.4.4-1_all.deb': No such file or directory
gpg: signing failed: file open error
You need a passphrase to unlock the secret key for
user:
4096-bit RSA key, ID, created 2015
gpg: can't open `../pybitmessage_0.4.4.orig.tar.gz': No such file or directory
gpg: signing failed: file open error
mv: cannot stat ‘../pybitmessage-0.4.4’: No such file or directory
Update: I'm stupid
Some clarification: I installed packagemonkey as detailed in INSTALL.md, perhaps something was deprecated?
The issue is residing in this:
debian/rules:10: *** missing separator (did you mean TAB instead of 8 spaces?). Stop.
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
Which corresponds to this in debian/rules:
build-stamp:
dh_testdir
touch build-stamp
Edit: It seems to be in lines 19 - 38 There are some spaces there that seem to be acting as quite the monkey wrench Anyone know what the expected output of running debian.sh is supposed to be?
After changing those lines locally and doing ./debian.sh
, I get this as an output:
drwxr-xr-x 12 4.0K Dec 8 19:13 pybitmessage
-rw-r--r-- 1 391K Dec 8 19:13 pybitmessage_0.4.4-1_all.deb
-rw-r--r-- 1 1.7K Dec 8 19:13 pybitmessage_0.4.4-1_amd64.changes
-rw-r--r-- 1 7.5K Dec 8 19:13 pybitmessage_0.4.4-1.debian.tar.xz
-rw-r--r-- 1 990 Dec 8 19:13 pybitmessage_0.4.4-1.dsc
-rw-r--r-- 1 627K Dec 8 19:13 pybitmessage_0.4.4.orig.tar.gz
pybitmessage: directory
pybitmessage_0.4.4-1_all.deb: Debian binary package (format 2.0)
pybitmessage_0.4.4-1_amd64.changes: ASCII text
pybitmessage_0.4.4-1.debian.tar.xz: XZ compressed data
pybitmessage_0.4.4-1.dsc: ASCII text
pybitmessage_0.4.4.orig.tar.gz: gzip compressed data, max compression, from Unix
This could be a fix
Also, I would recommend against using generate.sh
The problem is that ./generate.sh
overwrites debian/rules
with a version containing spaces, but ./debian.sh
expects the file to contain tabs. I have no idea why it does that.
A simple workaround is to run git checkout debian/rules
after running ./generate.sh
.
I have added the Debian package building, please check maybe this will solve your problems. https://github.com/Bitmessage/PyBitmessage/pull/1675
This is obsolete.
That's what happens when I try to compile it for my Ubuntu