Thanks,
I downloaded the .dsc package. Then I did:
Code:
dpkg-source -x python-debian_0.1.21+nmu2ubuntu2.dsc
Then...
Code:
dpkg-buildpackage -rfakeroot -b
but unfortunately I got this:
Code:
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package python-debian
dpkg-buildpackage: source version 0.1.21+nmu2ubuntu2
dpkg-buildpackage: source distribution trusty
dpkg-buildpackage: source changed by Matthias Klose <doko@ubuntu.com>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build python-debian-0.1.21+nmu2ubuntu2
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 5.0.37.2) python3-setuptools python3-chardet python3-six
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
I managed to solve this. Anyway then I got this:
Code:
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package python-debian
dpkg-buildpackage: source version 0.1.21+nmu2ubuntu2
dpkg-buildpackage: source distribution trusty
dpkg-buildpackage: source changed by Matthias Klose <doko@ubuntu.com>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build python-debian-0.1.21+nmu2ubuntu2
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
python setup.py clean
running clean
python3 setup.py clean
running clean
rm -rf lib/python_debian.egg-info
rm -rf build/
rm -f README.debtags
rm -f setup.py
find lib/debian -type f -name '*.pyc' -exec rm {} \;
dh_clean
debian/rules build
sed -e 's/__CHANGELOG_VERSION__/0.1.21+nmu2ubuntu2/' < setup.py.in > setup.py
dh_testdir
# Add here commands to compile the package.
python setup.py build
running build
running build_py
creating build
creating build/lib
copying lib/deb822.py -> build/lib
creating build/lib/debian
copying lib/debian/debian_support.py -> build/lib/debian
copying lib/debian/changelog.py -> build/lib/debian
copying lib/debian/debtags.py -> build/lib/debian
copying lib/debian/deprecation.py -> build/lib/debian
copying lib/debian/__init__.py -> build/lib/debian
copying lib/debian/deb822.py -> build/lib/debian
copying lib/debian/arfile.py -> build/lib/debian
copying lib/debian/debfile.py -> build/lib/debian
creating build/lib/debian_bundle
copying lib/debian_bundle/__init__.py -> build/lib/debian_bundle
python3 setup.py build
running build
running build_py
# run the tests
cd tests && ./test_deb822.py
.................................................
----------------------------------------------------------------------
Ran 49 tests in 0.227s
OK
cd tests && ./test_debfile.py
..........
----------------------------------------------------------------------
Ran 10 tests in 0.289s
OK
cd tests && ./test_debtags.py
...
----------------------------------------------------------------------
Ran 3 tests in 0.017s
OK
cd tests && ./test_changelog.py
.................
----------------------------------------------------------------------
Ran 17 tests in 0.065s
OK
cd tests && ./test_debian_support.py
......
----------------------------------------------------------------------
Ran 6 tests in 0.009s
OK
cd tests && python3 ./test_deb822.py
.................................................
----------------------------------------------------------------------
Ran 49 tests in 0.139s
OK
cd tests && python3 ./test_debfile.py
..........
----------------------------------------------------------------------
Ran 10 tests in 0.232s
OK
cd tests && python3 ./test_debtags.py
...
----------------------------------------------------------------------
Ran 3 tests in 0.004s
OK
cd tests && python3 ./test_changelog.py
.................
----------------------------------------------------------------------
Ran 17 tests in 0.029s
OK
cd tests && python3 ./test_debian_support.py
......
----------------------------------------------------------------------
Ran 6 tests in 0.016s
OK
lib/debian/doc-debtags > README.debtags
touch build-stamp
fakeroot debian/rules binary
dh_testdir
dh_testroot
dh_clean
dh_installdirs
# Add here commands to install the package into debian/tmp
python setup.py install --root="/root/python-debian-0.1.21+nmu2ubuntu2/debian/python-debian" --no-compile --install-layout=deb
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --install-layout not recognized
make: *** [install] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Bookmarks