Skip to content

Instantly share code, notes, and snippets.

@pazz
Created May 6, 2012 18:03
Show Gist options
  • Select an option

  • Save pazz/2623562 to your computer and use it in GitHub Desktop.

Select an option

Save pazz/2623562 to your computer and use it in GitHub Desktop.
alot debian
pazz@brick:~/projects/alot$ make builddeb
# build the source package in the parent directory
# then rename it to project_version.orig.tar.gz
`which python` setup.py sdist --dist-dir=../ --prune
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)
warning: sdist: standard file not found: should have one of README, README.txt
writing manifest file 'MANIFEST'
creating alot-0.3+
creating alot-0.3+/alot
creating alot-0.3+/alot/commands
creating alot-0.3+/alot/db
creating alot-0.3+/alot/defaults
creating alot-0.3+/alot/settings
creating alot-0.3+/bin
making hard links in alot-0.3+...
hard linking setup.py -> alot-0.3+
hard linking alot/__init__.py -> alot-0.3+/alot
hard linking alot/account.py -> alot-0.3+/alot
hard linking alot/addressbooks.py -> alot-0.3+/alot
hard linking alot/buffers.py -> alot-0.3+/alot
hard linking alot/completion.py -> alot-0.3+/alot
hard linking alot/helper.py -> alot-0.3+/alot
hard linking alot/init.py -> alot-0.3+/alot
hard linking alot/ui.py -> alot-0.3+/alot
hard linking alot/walker.py -> alot-0.3+/alot
hard linking alot/widgets.py -> alot-0.3+/alot
hard linking alot/commands/__init__.py -> alot-0.3+/alot/commands
hard linking alot/commands/bufferlist.py -> alot-0.3+/alot/commands
hard linking alot/commands/envelope.py -> alot-0.3+/alot/commands
hard linking alot/commands/globals.py -> alot-0.3+/alot/commands
hard linking alot/commands/search.py -> alot-0.3+/alot/commands
hard linking alot/commands/taglist.py -> alot-0.3+/alot/commands
hard linking alot/commands/thread.py -> alot-0.3+/alot/commands
hard linking alot/db/__init__.py -> alot-0.3+/alot/db
hard linking alot/db/attachment.py -> alot-0.3+/alot/db
hard linking alot/db/envelope.py -> alot-0.3+/alot/db
hard linking alot/db/errors.py -> alot-0.3+/alot/db
hard linking alot/db/message.py -> alot-0.3+/alot/db
hard linking alot/db/thread.py -> alot-0.3+/alot/db
hard linking alot/db/utils.py -> alot-0.3+/alot/db
hard linking alot/defaults/abook_contacts.spec -> alot-0.3+/alot/defaults
hard linking alot/defaults/alot.rc.spec -> alot-0.3+/alot/defaults
hard linking alot/defaults/config.stub -> alot-0.3+/alot/defaults
hard linking alot/defaults/default.theme -> alot-0.3+/alot/defaults
hard linking alot/defaults/notmuch.rc.spec -> alot-0.3+/alot/defaults
hard linking alot/defaults/theme.spec -> alot-0.3+/alot/defaults
hard linking alot/settings/__init__.py -> alot-0.3+/alot/settings
hard linking alot/settings/checks.py -> alot-0.3+/alot/settings
hard linking alot/settings/errors.py -> alot-0.3+/alot/settings
hard linking alot/settings/theme.py -> alot-0.3+/alot/settings
hard linking alot/settings/utils.py -> alot-0.3+/alot/settings
hard linking bin/alot -> alot-0.3+/bin
Creating tar archive
removing 'alot-0.3+' (and everything under it)
rename -f 's/myprojectname-(.*)\.tar\.gz/myprojectname_$1\.orig\.tar\.gz/' ../*
# build the package
dpkg-buildpackage -i -I -rfakeroot
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package alot
dpkg-buildpackage: source version 0.3+-1
dpkg-buildpackage: source changed by Patrick Totzke <patricktotzke@gmail.com>
dpkg-buildpackage: host architecture amd64
dpkg-source -i -I --before-build alot
fakeroot debian/rules clean
make[1]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
make[2]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[3]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
make[4]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[5]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
make[6]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[7]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
make[8]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[9]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
make[10]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[11]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
Vmake[12]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[13]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
make[14]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[15]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
^C dh_auto_clean
make[16]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
running clean
make -f /home/pazz/projects/alot/debian/rules clean
make[17]: Entering directory `/home/pazz/projects/alot'
dh clean
dh_testdir
dh_auto_clean
make[18]: Entering directory `/home/pazz/projects/alot'
`which python` setup.py clean
^CTraceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 562, in <module>
main()
File "/usr/lib/python2.7/site.py", line 544, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages
user_site = getusersitepackages()
File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/usr/lib/python2.7/site.py", line 236, in getuserbase
USER_BASE = get_config_var('userbase')
File "/usr/lib/python2.7/sysconfig.py", line 543, in get_config_var
return get_config_vars().get(name)
File "/usr/lib/python2.7/sysconfig.py", line 442, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/usr/lib/python2.7/sysconfig.py", line 316, in _init_posix
parse_config_h(f, vars)
File "/usr/lib/python2.7/sysconfig.py", line 356, in parse_config_h
undef_rx = re.compile("/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/\n")
File "/usr/lib/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.7/re.py", line 242, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python2.7/sre_compile.py", line 504, in compile
code = _code(p, flags)
File "/usr/lib/python2.7/sre_compile.py", line 489, in _code
_compile(code, p.data, flags)
File "/usr/lib/python2.7/sre_compile.py", line 101, in _compile
_compile(code, av[1], flags)
File "/usr/lib/python2.7/sre_compile.py", line 82, in _compile
_compile(code, av[2], flags)
File "/usr/lib/python2.7/sre_compile.py", line 57, in _compile
_compile_charset(av, flags, code, fixup)
File "/usr/lib/python2.7/sre_compile.py", line 183, in _compile_charset
for op, av in _optimize_charset(charset, fixup):
File "/usr/lib/python2.7/sre_compile.py", line 253, in _optimize_charset
data = _mk_bitmap(charmap)
File "/usr/lib/python2.7/sre_compile.py", line 269, in _mk_bitmap
m = m + m
KeyboardInterrupt
make[18]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[17]: *** [clean] Error 29
make[16]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[15]: *** [clean] Error 29
make[14]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[13]: *** [clean] Error 29
make[12]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[11]: *** [clean] Error 29
make[10]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[9]: *** [clean] Error 29
make[8]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[7]: *** [clean] Error 29
make[6]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[5]: *** [clean] Error 29
make[4]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[3]: *** [clean] Error 29
make[2]: *** [clean] Interrupt
dh_auto_clean: make -j1 clean died with signal 2
make[1]: *** [clean] Error 29
/usr/bin/fakeroot: line 1: kill: (5988) - No such process
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 130
make: *** [builddeb] Error 130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment