Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix131 #135

Merged
15 commits merged into from
Oct 21, 2016
Merged

Fix131 #135

15 commits merged into from
Oct 21, 2016

Conversation

ghost
Copy link

@ghost ghost commented Oct 21, 2016

This is a follow up from commit ae4f16e to fix issue #131 C.4.

@ghost
Copy link
Author

ghost commented Oct 21, 2016

Personally, I have tested with unreleased source on my local machine and confirmed that lintian error is resolved. Created DEB package and installed to host system.

APT and Synaptic will now show proper dependencies for Python:

  • On Ubuntu: python2.7:any, python:any (>= 2.7.1-0ubuntu2)...
  • On Debian: python2.7:any, python:any (>= 2.7)...

Most features in Customizer have been tested working in Xubuntu Trusty (14.04) and Debian Jessie 32-bit; Both were tested with UMR 14.04 32-bit ISO image.

P.S.: Wait for testing result on Debian, then only merge into pre413 branch.

P.S.S.: Test result OK; That lintian error was not seen, therefore resolved.

@ghost
Copy link
Author

ghost commented Oct 21, 2016

Proof of testing on Debian Jessie:

$ wget https://github.com/clearkimura/Customizer/archive/fix131.tar.gz
...
fix131.tar.gz           [     <=>              ]  62.85K  36.3KB/s   in 1.7s   

2016-10-22 03:51:21 (36.3 KB/s) - ‘fix131.tar.gz’ saved [64356]

$ tar zxvf fix131.tar.gz 
$ cd Customizer-fix131/
$ make deb && cd ..
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -b
dpkg-buildpackage: source package customizer
dpkg-buildpackage: source version 4.1.0
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Ivailo Monev <xakepa10@gmail.com>
dpkg-buildpackage: host architecture i386
 dpkg-source --before-build Customizer-fix131
 fakeroot debian/rules clean
make[1]: Entering directory '/home/jessie/Customizer-fix131'
dh clean --with python2
   dh_testdir
   debian/rules override_dh_auto_clean
make[2]: Entering directory '/home/jessie/Customizer-fix131'
dh_auto_clean
make[3]: Entering directory '/home/jessie/Customizer-fix131'
rm -vf -r  tr/*.qm *.tar.xz
rm -vf -r debian/*.log debian/customizer.substvars \
    debian/customizer debian/files \
    src/gui_ui.py src/gui.py src/main.py \
    data/customizer.policy data/customizer.menu \
    data/customizer.desktop
make[3]: Leaving directory '/home/jessie/Customizer-fix131'
make[2]: Leaving directory '/home/jessie/Customizer-fix131'
   dh_clean
make[1]: Leaving directory '/home/jessie/Customizer-fix131'
 debian/rules build
make[1]: Entering directory '/home/jessie/Customizer-fix131'
dh build --with python2
   dh_testdir
   dh_auto_configure
   debian/rules override_dh_auto_build
make[2]: Entering directory '/home/jessie/Customizer-fix131'
dh_auto_build
make[3]: Entering directory '/home/jessie/Customizer-fix131'
rm -vf -r  tr/*.qm *.tar.xz
rm -vf -r debian/*.log debian/customizer.substvars \
    debian/customizer debian/files \
    src/gui_ui.py src/gui.py src/main.py \
    data/customizer.policy data/customizer.menu \
    data/customizer.desktop
removed ‘debian/customizer.debhelper.log’
fatal: Not a git repository (or any of the parent directories): .git
sed -e 's|@VERSION@|4.1.2 (stable)|' -e 's|@PREFIX@|/usr|g' \
    src/main.py.in > src/main.py
fatal: Not a git repository (or any of the parent directories): .git
sed -e 's|@PREFIX@|/usr|' -e 's|@ELEVATOR@|pkexec|' \
    data/customizer.menu.in > data/customizer.menu
sed -e 's|@PREFIX@|/usr|' -e 's|@ELEVATOR@|pkexec|' \
    data/customizer.desktop.in > data/customizer.desktop
sed 's|@PREFIX@|/usr|' data/customizer.policy.in > \
    data/customizer.policy
sed -e 's|@VERSION@|4.1.2 (stable)|' -e 's|@PREFIX@|/usr|g' \
    src/gui.py.in > src/gui.py
pyuic4 src/gui.ui -o src/gui_ui.py
pylupdate4 -noobsolete -verbose src/*.py -ts tr/customizer_bg_BG.ts tr/customizer_ko_KR.ts
Updating 'tr/customizer_bg_BG.ts'...
    Found 59 source texts (1 new and 58 already existing)
    Removed 1 obsolete entry
Updating 'tr/customizer_ko_KR.ts'...
    Found 59 source texts (1 new and 58 already existing)
    Removed 1 obsolete entry
lrelease tr/customizer_bg_BG.ts tr/customizer_ko_KR.ts
Updating 'tr/customizer_bg_BG.qm'...
    Generated 52 translation(s) (52 finished and 0 unfinished)
    Ignored 7 untranslated source text(s)
Updating 'tr/customizer_ko_KR.qm'...
    Generated 54 translation(s) (52 finished and 2 unfinished)
    Ignored 5 untranslated source text(s)
make[3]: Leaving directory '/home/jessie/Customizer-fix131'
make[2]: Leaving directory '/home/jessie/Customizer-fix131'
   dh_auto_test
make[1]: Leaving directory '/home/jessie/Customizer-fix131'
 fakeroot debian/rules binary
make[1]: Entering directory '/home/jessie/Customizer-fix131'
dh binary --with python2
   dh_auto_test
   dh_testroot
   dh_prep
   debian/rules override_dh_auto_install
make[2]: Entering directory '/home/jessie/Customizer-fix131'
dh_auto_install
make[3]: Entering directory '/home/jessie/Customizer-fix131'
install -v -dm755 /home/jessie/Customizer-fix131/debian/customizer/etc /home/jessie/Customizer-fix131/debian/customizer/usr/sbin \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/lib \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/etc’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/sbin’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/lib’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions’
install -v -m755 src/main.py /home/jessie/Customizer-fix131/debian/customizer/usr/sbin/customizer
‘src/main.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/sbin/customizer’
install -v -m644 src/lib/*.py /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/lib/
‘src/lib/__init__.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/lib/__init__.py’
‘src/lib/config.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/lib/config.py’
‘src/lib/message.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/lib/message.py’
‘src/lib/misc.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/lib/misc.py’
install -v -m644 src/actions/*.py /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/
‘src/actions/__init__.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/__init__.py’
‘src/actions/chroot.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/chroot.py’
‘src/actions/clean.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/clean.py’
‘src/actions/common.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/common.py’
‘src/actions/deb.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/deb.py’
‘src/actions/extract.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/extract.py’
‘src/actions/hook.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/hook.py’
‘src/actions/pkgm.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/pkgm.py’
‘src/actions/qemu.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/qemu.py’
‘src/actions/rebuild.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/rebuild.py’
‘src/actions/xnest.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/actions/xnest.py’
install -v -m644 data/customizer.conf /home/jessie/Customizer-fix131/debian/customizer/etc/customizer.conf
‘data/customizer.conf’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/etc/customizer.conf’
install -v -m644 data/exclude.list \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/exclude.list
‘data/exclude.list’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/exclude.list’
install -v -dm755 /home/jessie/Customizer-fix131/debian/customizer/usr/sbin \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/applications \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/menu \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/polkit-1/actions
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/applications’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/menu’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/polkit-1’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/polkit-1/actions’
install -v -m755 src/gui.py /home/jessie/Customizer-fix131/debian/customizer/usr/sbin/customizer-gui
‘src/gui.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/sbin/customizer-gui’
install -v -m644 src/gui_ui.py /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/
‘src/gui_ui.py’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/gui_ui.py’
install -v -m644 data/customizer.desktop \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/applications/customizer.desktop
‘data/customizer.desktop’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/applications/customizer.desktop’
install -v -m644 data/logo.png \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/logo.png
‘data/logo.png’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/customizer/logo.png’
install -v -m644 data/customizer.menu \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/menu/customizer
‘data/customizer.menu’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/menu/customizer’
install -v -m644 data/customizer.policy \
    /home/jessie/Customizer-fix131/debian/customizer/usr/share/polkit-1/actions/customizer.policy
‘data/customizer.policy’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/polkit-1/actions/customizer.policy’
install -v -dm755 /home/jessie/Customizer-fix131/debian/customizer/usr/share/qt4/translations/
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/qt4’
install: creating directory ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/qt4/translations/’
install -v -m644 tr/*.qm /home/jessie/Customizer-fix131/debian/customizer/usr/share/qt4/translations/
‘tr/customizer_bg_BG.qm’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/qt4/translations/customizer_bg_BG.qm’
‘tr/customizer_ko_KR.qm’ -> ‘/home/jessie/Customizer-fix131/debian/customizer/usr/share/qt4/translations/customizer_ko_KR.qm’
make[3]: Leaving directory '/home/jessie/Customizer-fix131'
make[2]: Leaving directory '/home/jessie/Customizer-fix131'
   dh_installdocs
   dh_installchangelogs
   dh_python2
W: dh_python2:479: Please add dh-python package to Build-Depends
   dh_perl
   dh_link
   dh_compress
   dh_fixperms
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: Depends field of package customizer: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
   dh_md5sums
   dh_builddeb
dpkg-deb: building package `customizer' in `../customizer_4.1.0_all.deb'.
make[1]: Leaving directory '/home/jessie/Customizer-fix131'
 dpkg-genchanges -b >../customizer_4.1.0_i386.changes
dpkg-genchanges: binary-only upload (no source code included)
 dpkg-source --after-build Customizer-fix131
dpkg-buildpackage: binary-only upload (no source included)

$ sudo dpkg -i customizer*.deb 
[sudo] password for jessie: 
Selecting previously unselected package customizer.
(Reading database ... 90451 files and directories currently installed.)
Preparing to unpack customizer_4.1.0_all.deb ...
Unpacking customizer (4.1.0) ...
Setting up customizer (4.1.0) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for menu (2.1.47) ...

$ apt-cache show customizer
Package: customizer
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 192
Maintainer: Ivailo Monev <xakepa10@gmail.com>
Architecture: all
Version: 4.1.0
Depends: python2.7:any, python:any (>= 2.7), libpython2.7, python-qt4, squashfs-tools (>= 4.2~), xorriso, x11-xserver-utils, xserver-xephyr, qemu-kvm, policykit-1
Recommends: policykit-1-gnome | polkit-kde-1
Conffiles:
 /etc/customizer.conf 2e23ea0658a28aa4a91dc838c92b6038
Description: advanced Ubuntu LiveCD customization and remastering tool
 Customizer is an advanced LiveCD customization and remastering tool.
 With it, you can build own Ubuntu-based remix using Ubuntu Mini Remix,
 Ubuntu or its derivatives ISO image with a few mouse clicks.
Description-md5: 4f1892214be08ce27d2fad6275c4d8d9
Homepage: https://github.com/clearkimura/Customizer

$ sudo customizer
customizer      customizer-gui  

$ sudo customizer -h
* Read Configuration file: /etc/customizer.conf
usage: Customizer [-h] [-e] [-c] [-x] [-p] [-d] [-k] [-r] [-q] [-t] [-D] [-v]

Ubuntu based LiveCD ISO images remastering tool

optional arguments:
  -h, --help     show this help message and exit
  -e, --extract  Extract ISO image
  -c, --chroot   Chroot into the filesystem
  -x, --xnest    Execute nested X-session
  -p, --pkgm     Execute package manager
  -d, --deb      Install Debian package
  -k, --hook     Execute hook
  -r, --rebuild  Rebuild the ISO image
  -q, --qemu     Test the built ISO image with QEMU
  -t, --clean    Clean all temporary files and folders
  -D, --debug    Enable debug messages
  -v, --version  Show Customizer version and exit

$ sudo customizer-gui 
* Read Configuration file: /etc/customizer.conf
* Read Configuration file: /etc/customizer.conf
* Read Configuration file: /etc/customizer.conf
* Read Configuration file: /etc/customizer.conf

Some output has been trimmed for simplicity; Unlike Ubuntu, there were additional warnings appearing while creating DEB package on Debian, esp. the following lines:

W: dh_python2:479: Please add dh-python package to Build-Depends
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe

I suppose the warnings are specific to Debian, since those didn't appear on Ubuntu. Anyway, Customizer has been tested installable and usable on Debian.

@ghost ghost merged commit 5326aa8 into pre413 Oct 21, 2016
@ghost ghost deleted the fix131 branch October 23, 2016 07:06
ghost pushed a commit that referenced this pull request Oct 30, 2016
* Delete genabout.py

* Create MANUAL.md

* Simplify ChangeLog

* Rename ChangeLog to CHANGELOG

* Simplify Contributors

* Fix issue #123

* Fix issue #131 C.1, C.2, C.3, C.4

This will automatically provide proper dependencies for Python with version that is defined by hashbang line of all Python scripts.

* Fix131 (#135)

The hashbang lines are revised from 'python2' to 'python2.7'.

* Rename MANUAL.md to docs/manual.md

* Fix issue #133 A, B, C

* Simplify README.md

* Update README.md

Fix relative links and paragraph.

Fix relative link for Wiki.

Added copyright and link to debian/copyright.

Revised text and include main requirements in one line.

* Update debian/copyright

* Update debian/changelog

* Update Makefile
This pull request was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants