ghantoos / lshell

lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
GNU General Public License v3.0
436 stars 111 forks source link

make builddeb on master fails #71

Closed hostingnuggets closed 10 years ago

hostingnuggets commented 10 years ago

As Debian 7 only includes lshell 0.9.15 and I would like lshell 0.9.16 I tried running "make builddeb" on my Debian 7 machine but unfortunately this fails. Have a look at the output below:

build the package

dpkg-buildpackage -i -I -rfakeroot dpkg-buildpackage: source package lshell dpkg-buildpackage: source version 0.9.16-1 dpkg-buildpackage: source changed by Ignace Mouzannar mouzannar@gmail.com dpkg-buildpackage: host architecture amd64 dpkg-source -i -I --before-build lshell fakeroot debian/rules clean make[1]: Entering directory /home/hn/source/lshell' dh clean --with python2 dh_testdir dh_auto_clean make[2]: Entering directory/home/hn/source/lshell' which python setup.py clean running clean rm -rf build/ MANIFEST dist/ find . -name '_.pyc' -delete make[2]: Leaving directory /home/hn/source/lshell' dh_clean make[1]: Leaving directory/home/hn/source/lshell' dpkg-source -i -I -b lshell dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building lshell using existing ./lshell_0.9.16.orig.tar.gz dpkg-source: warning: ignoring deletion of file PKG-INFO dpkg-source: info: local changes detected, the modified files are: lshell/Makefile lshell/TODO lshell/rpm/lshell.spec lshell/rpm/postinstall lshell/rpm/postuninstall lshell/rpm/preinstall dpkg-source: info: you can integrate the local changes with dpkg-source --commit dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/lshell0.9.16-1.diff.xyauiI dpkg-buildpackage: error: dpkg-source -i -I -b lshell gave error exit status 2 make: ** [builddeb] Error 2

Do you have any ideas why its failing?

ghantoos commented 10 years ago

The original tar.gz does not include the operating system specific files (e.g. debian/ or rpm/).

Here is a procedure you can follow in order to easily build any release.

cd /tmp

# get release tar.gz
wget https://github.com/ghantoos/lshell/releases/download/0.9.16/lshell-0.9.16.tar.gz

# rename release using Debian orig naming schema
mv lshell-0.9.16.tar.gz lshell_0.9.16.orig.tar.gz 

# clone the repository
git clone git@github.com:ghantoos/lshell.git  && cd lshell/

# list tags, and choose proper tag
git tag -l
git checkout tags/0.9.16

# delete files that are not included in the tar.gz (operating system specific)
rm -rf rpm/ Makefile TODO 

# build your package
dpkg-buildpackage -i -I -rfakeroot

Hope this helps!