Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I create .deb out of punjab? #41

Closed
akarelas opened this issue Aug 13, 2013 · 7 comments
Closed

How do I create .deb out of punjab? #41

akarelas opened this issue Aug 13, 2013 · 7 comments

Comments

@akarelas
Copy link

This is related to #37

I read this page: https://pypi.python.org/pypi/stdeb and installed python-stdeb on my machine. Then I cloned the punjab github repo on my machine, and did the following:

dpkg -L python-stdeb
python setup.py sdist
py2dsc dist/punjab-0.15.tar.gz

and I get this error

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/punjab-0.15
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/user/fromGit/punjab/deb_dist --use-premade-distfile=/home/user/fromGit/punjab/dist/punjab-0.15.tar.gz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running sdist_dsc
running egg_info
writing punjab.egg-info/PKG-INFO
writing top-level names to punjab.egg-info/top_level.txt
writing dependency_links to punjab.egg-info/dependency_links.txt
package init file 'twisted/plugins/__init__.py' not found (or not a regular file)
reading manifest file 'punjab.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'TODO.txt'
warning: no files found matching 'MANIFEST'
warning: no files found matching '*' under directory 'html/js'
warning: no files found matching '*' under directory 'html/css'
warning: no files found matching '*' under directory 'html/images'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '.cvs*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn*' found anywhere in distribution
writing manifest file 'punjab.egg-info/SOURCES.txt'
CALLING dpkg-source -b punjab-0.15 (in dir /home/user/fromGit/punjab/deb_dist)
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building punjab using existing ./punjab_0.15.orig.tar.gz
dpkg-source: info: local changes detected, the modified files are:
 punjab-0.15/punjab.egg-info/SOURCES.txt
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/punjab_0.15-1.diff.JGLEI7
Traceback (most recent call last):
  File "setup.py", line 35, in <module>
    package_data={'twisted.plugins': ['twisted/plugins/punjab.py']}
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/stdeb/command/sdist_dsc.py", line 139, in run
    remove_expanded_source_dir=self.remove_expanded_source_dir,
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 1207, in build_dsc
    cwd=dist_dir)
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 478, in dpkg_source
    process_command(args, cwd=cwd)
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 142, in process_command
    check_call(args, cwd=cwd)
  File "/usr/lib/python2.7/dist-packages/stdeb/util.py", line 35, in check_call
    raise CalledProcessError(retcode)
stdeb.util.CalledProcessError: 2
ERROR running: /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/home/user/fromGit/punjab/deb_dist --use-premade-distfile=/home/user/fromGit/punjab/dist/punjab-0.15.tar.gz
ERROR in deb_dist/tmp_py2dsc/punjab-0.15

I don't know what to do after it. What do you suggest?

@akarelas
Copy link
Author

I did this:

# dpkg-source --commit
tail: cannot open `punjab/debian/changelog' for reading: No such file or directory
dpkg-source: error: tail of punjab/debian/changelog gave error exit status 1

and failed (see error above)

@akarelas
Copy link
Author

@twonds May I create a .deb out of Punjab and put it up on launchpad.net? I have absolutely zero experience in this, so I'm learning...

@twonds
Copy link
Owner

twonds commented Aug 13, 2013

You are more than welcome to do this, thanks!

@akarelas
Copy link
Author

Finished: https://launchpad.net/~karjala/+archive/jabber - Installs and uninstalls (on Ubuntu) wonderfully.

Maybe you want to link to that URL as an alternative method of Installation in your INSTALL.txt file, because my punjab page does not get returned when you search for punjab from launchpad.net (see here: https://launchpad.net/+search?field.text=punjab)

twonds pushed a commit that referenced this issue Aug 14, 2013
@twonds
Copy link
Owner

twonds commented Aug 14, 2013

Awesome! Thanks so much for this!

@twonds twonds closed this as completed Aug 14, 2013
@akarelas
Copy link
Author

A small correction: it's "Ubuntu" package, not "Debian" package. Ubuntu users who see "Debian" might think it's not good for their version of Linux (and equally, Debian users might try to install it when they can't)

twonds pushed a commit that referenced this issue Aug 14, 2013
@twonds
Copy link
Owner

twonds commented Aug 14, 2013

Thanks again and fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants