Ago 052013
 

Thank GNUtransfer the loan us a VPS and other resources to write this article.

With the twitter api change from version 1.0 to 1.1, the package choqok for debian wheezy and debian jessie to stopped working, luckily the developers of this software (in our view the best twitter client for linux) are working and in the git repository and there is a version that works with the new api of twitter.

In this article we will see how to create the package deb for debian wheezy or debian jessie

At the end of the article we both deb packages

We entered in the directory /usr/src and create the directory choqok and entered in

root@vps415960:/# cd /usr/src/
root@vps415960:/usr/src# mkdir choqok
root@vps415960:/usr/src# cd choqok/
root@vps415960:/usr/src/choqok# 

Install the package git

root@vps415960:/usr/src/choqok# apt-get install git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  git-man libcurl3-gnutls liberror-perl librtmp0 libssh2-1 patch rsync
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk gitweb ed diffutils-doc
The following NEW packages will be installed:
  git git-man libcurl3-gnutls liberror-perl librtmp0 libssh2-1 patch rsync
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 8.788 kB of archives.
After this operation, 16,6 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.us.debian.org/debian/ wheezy/main librtmp0 amd64 2.4+20111222.git4e06e21-1 [62,3 kB]
Get:2 http://security.debian.org/ wheezy/updates/main libcurl3-gnutls amd64 7.26.0-1+wheezy3 [322 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libssh2-1 amd64 1.4.2-1.1 [133 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main patch amd64 2.6.1-3 [121 kB]
Get:5 http://ftp.us.debian.org/debian/ wheezy/main liberror-perl all 0.17-1 [23,6 kB]
Get:6 http://ftp.us.debian.org/debian/ wheezy/main git-man all 1:1.7.10.4-1+wheezy1 [1.074 kB]
Get:7 http://ftp.us.debian.org/debian/ wheezy/main git amd64 1:1.7.10.4-1+wheezy1 [6.683 kB]
Get:8 http://ftp.us.debian.org/debian/ wheezy/main rsync amd64 3.0.9-4 [369 kB]
Fetched 8.788 kB in 3s (2.472 kB/s)
Selecting previously unselected package librtmp0:amd64.
(Reading database ... 28043 files and directories currently installed.)
Unpacking librtmp0:amd64 (from .../librtmp0_2.4+20111222.git4e06e21-1_amd64.deb) ...
Selecting previously unselected package libssh2-1:amd64.
Unpacking libssh2-1:amd64 (from .../libssh2-1_1.4.2-1.1_amd64.deb) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Unpacking libcurl3-gnutls:amd64 (from .../libcurl3-gnutls_7.26.0-1+wheezy3_amd64.deb) ...
Selecting previously unselected package patch.
Unpacking patch (from .../patch_2.6.1-3_amd64.deb) ...
Selecting previously unselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously unselected package git-man.
Unpacking git-man (from .../git-man_1%3a1.7.10.4-1+wheezy1_all.deb) ...
Selecting previously unselected package git.
Unpacking git (from .../git_1%3a1.7.10.4-1+wheezy1_amd64.deb) ...
Selecting previously unselected package rsync.
Unpacking rsync (from .../rsync_3.0.9-4_amd64.deb) ...
Processing triggers for man-db ...
Setting up librtmp0:amd64 (2.4+20111222.git4e06e21-1) ...
Setting up libssh2-1:amd64 (1.4.2-1.1) ...
Setting up libcurl3-gnutls:amd64 (7.26.0-1+wheezy3) ...
Setting up patch (2.6.1-3) ...
Setting up liberror-perl (0.17-1) ...
Setting up git-man (1:1.7.10.4-1+wheezy1) ...
Setting up git (1:1.7.10.4-1+wheezy1) ...
Setting up rsync (3.0.9-4) ...
update-rc.d: using dependency based boot sequencing
root@vps415960:/usr/src/choqok# 

Then run git to bring the source code of the development version of choqok

root@vps415960:/usr/src/choqok# git clone git://anongit.kde.org/choqok
Cloning into 'choqok'...
remote: Counting objects: 16998, done.
remote: Compressing objects: 100% (3076/3076), done.
remote: Total 16998 (delta 14239), reused 16526 (delta 13908)
Receiving objects: 100% (16998/16998), 7.98 MiB | 2.43 MiB/s, done.
Resolving deltas: 100% (14239/14239), done.
root@vps415960:/usr/src/choqok# 

As we can see the source code left in the directory choqok

To make sure we have all the necessary packages to compile, execute the following command

root@vps415960:/usr/src/choqok# apt-get build-dep choqok
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  automoc build-essential cdbs cmake cmake-data debhelper docbook-xml docbook-xsl docbook2x dpkg-dev emacsen-common fontconfig fontconfig-config g++ g++-4.7 gcc gcc-4.7 gettext html2text
  intltool-debian kdelibs-bin kdelibs5-dev kdoctools libarchive12 libasyncns0 libattica-dev libattica0 libaudio2 libavcodec53 libavformat53 libavutil51 libc-dev-bin libc6-dev
  libclucene0ldbl libcroco3 libcurl3 libdbus-1-3 libdbusmenu-qt2 libdirac-encoder0 libdlrestrictions1 libdpkg-perl libdrm2 libencode-locale-perl libexiv2-12 libfam0 libfile-listing-perl
  libflac8 libfontconfig1 libgettextpo0 libgif4 libgl1-mesa-glx libglapi-mesa libgomp1 libgsm1 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 libhtml-parser-perl libhtml-tagset-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libice6 libio-socket-ssl-perl libiodbc2 libitm1 libjbig0 libjpeg8 libjson0
  libkcmutils4 libkde3support4 libkdeclarative5 libkdecore5 libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkfile4 libkhtml5 libkidletime4 libkimproxy4 libkio5 libkjsapi4
  libkjsembed4 libkmediaplayer4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkparts4 libkprintutils4 libkpty4 libkrosscore4 libkrossui4 libktexteditor4
  libkunitconversion4 libkutils4 liblcms1 libltdl7 liblwp-mediatypes-perl liblwp-protocol-https-perl libmhash2 libmng1 libmp3lame0 libnepomuk4 libnepomukquery4a libnepomukutils4
  libnet-http-perl libnet-ssleay-perl libnettle4 libogg0 libopenjpeg2 liborc-0.4-0 libosp5 libphonon-dev libphonon4 libplasma3 libpng12-0 libpulse-mainloop-glib0 libpulse0 libqca2
  libqca2-dev libqjson-dev libqjson0 libqoauth-dev libqoauth1 libqt4-dbus libqt4-declarative libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-network libqt4-opengl
  libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtcore4 libqtdbus4 libqtgui4 libqtwebkit4 libquadmath0 libraptor2-0
  librasqal3 librdf0 libschroedinger-1.0-0 libsm6 libsndfile1 libsolid4 libsoprano-dev libsoprano4 libspeex1 libstdc++6-4.7-dev libstreamanalyzer0 libstreams0 libswscale2 libtheora0
  libthreadweaver4 libtiff4 libtimedate-perl libunistring0 liburi-perl libutempter0 libva1 libvorbis0a libvorbisenc2 libvpx1 libwww-perl libwww-robotrules-perl libx11-xcb1 libx264-123
  libxcb-glx0 libxdamage1 libxfixes3 libxi6 libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml2-utils libxmlrpc-core-c3
  libxrender1 libxslt1.1 libxss1 libxt6 libxtst6 libxvidcore4 libxxf86vm1 libyajl2 linux-libc-dev opensp phonon-backend-null pkg-kde-tools po-debconf qdbus qt4-linguist-tools qt4-qmake
  sgml-data soprano-daemon ttf-dejavu-core x11-common xsltproc
0 upgraded, 210 newly installed, 0 to remove and 0 not upgraded.
Need to get 99,2 MB of archives.
After this operation, 331 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y

Now downloaded sources choqok from the debian repositories

root@vps415960:/usr/src/choqok# apt-get source choqok
Reading package lists... Done
Building dependency tree       
Reading state information... Done
NOTICE: 'choqok' packaging is maintained in the 'Git' version control system at:
http://git.debian.org/git/collab-maint/choqok.git
Need to get 766 kB of source archives.
Get:1 http://ftp.us.debian.org/debian/ wheezy/main choqok 1.3-1 (dsc) [1.275 B]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main choqok 1.3-1 (tar) [759 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main choqok 1.3-1 (diff) [5.119 B]
Fetched 766 kB in 0s (1.602 kB/s)
gpgv: keyblock resource `/root/.gnupg/trustedkeys.gpg': file open error
gpgv: Signature made mar 10 abr 2012 06:18:29 UTC using DSA key ID 11404EC3
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./choqok_1.3-1.dsc
dpkg-source: info: extracting choqok in choqok-1.3
dpkg-source: info: unpacking choqok_1.3.orig.tar.bz2
dpkg-source: info: unpacking choqok_1.3-1.debian.tar.gz
dpkg-source: info: applying cmake-install-fix
root@vps415960:/usr/src/choqok# 

We entered the choqok directory and copy the debian directory which is in the Debian package sources

root@vps415960:/usr/src/choqok# cd choqok
root@vps415960:/usr/src/choqok/choqok# cp -R ../choqok-1.3/debian .
root@vps415960:/usr/src/choqok/choqok# 

Now edit the file debian/changelog and where it says (first line)

choqok (1.3-1) unstable; urgency=low

for debian wheezy read

choqok (1.3-2-wheezy) unstable; urgency=low

and for debian jessie read

choqok (1.3-2-jessie) unstable; urgency=low

Now run the command ./debian/rules clean

root@vps415960:/usr/src/choqok/choqok# ./debian/rules clean
test -x debian/rules
dh_testroot
rmdir obj-x86_64-linux-gnu
rmdir: failed to remove `obj-x86_64-linux-gnu': No such file or directory
make: [cleanbuilddir] Error 1 (ignored)
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
/usr/bin/make  -C obj-x86_64-linux-gnu  -k clean
make: *** obj-x86_64-linux-gnu: No such file or directory.  Stop.
make: [makefile-clean] Error 2 (ignored)
rm -rf obj-x86_64-linux-gnu
dh_clean 
rm -f choqok.1
root@vps415960:/usr/src/choqok/choqok# 

and then ./debian/rules binary

root@vps415960:/usr/src/choqok/choqok# ./debian/rules binary

This may take some time depending on the computing power of your PC

Leaving choqok directory and there we have the deb package

root@vps415960:/usr/src/choqok/choqok# cd ..
root@vps415960:/usr/src/choqok# ls -1 *.deb
choqok_1.3-2-wheezy_amd64.deb
root@vps415960:/usr/src/choqok# 

We proceed to the installation with dpkg

root@vps415960:/usr/src/choqok# dpkg -i choqok_1.3-2-wheezy_amd64.deb 
Selecting previously unselected package choqok.
(Reading database ... 43438 files and directories currently installed.)
Unpacking choqok (from choqok_1.3-2-wheezy_amd64.deb) ...
dpkg: dependency problems prevent configuration of choqok:
 choqok depends on kde-runtime; however:
  Package kde-runtime is not installed.
 choqok depends on libqca2-plugin-ossl; however:
  Package libqca2-plugin-ossl is not installed.

dpkg: error processing choqok (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 choqok
root@vps415960:/usr/src/choqok# 

For that error we run apt-get-f install and it installed all dependencies

root@vps415960:/usr/src/choqok# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  aspell aspell-en dbus dbus-x11 enchant hicolor-icon-theme hunspell-en-us kate-data katepart kde-runtime kde-runtime-data kdelibs5-data kdelibs5-plugins libasound2 libaspell15
  libcanberra0 libenchant1c2a libfile-basedir-perl libfile-desktopentry-perl libfile-mimeinfo-perl libfontenc1 libhunspell-1.3-0 libilmbase6 libjasper1 libkatepartinterfaces4
  libnet-dbus-perl libnl-3-200 libnl-route-3-200 libntrack-qt4-1 libntrack0 libopenexr6 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpolkit-qt-1-1 libqca2-plugin-ossl libsmbclient libssh-4
  libsystemd-login0 libtalloc2 libtdb1 libtie-ixhash-perl libvirtodbc0 libvorbisfile3 libwbclient0 libx11-protocol-perl libxaw7 libxcb-shape0 libxcomposite1 libxcursor1 libxft2
  libxinerama1 libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxrandr2 libxv1 libxxf86dga1 ntrack-module-libnl-0 odbcinst odbcinst1debian2 oxygen-icon-theme phonon
  plasma-scriptengine-javascript shared-desktop-ontologies ttf-dejavu ttf-dejavu-extra virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common x11-utils
  x11-xserver-utils xdg-utils
Suggested packages:
  aspell-doc spellutils hunspell openoffice.org-hunspell openoffice.org-core djvulibre-bin icoutils finger libasound2-plugins libcanberra-gtk0 libcanberra-pulse libenchant-voikko
  libjasper-runtime libunicode-map8-perl libunicode-string-perl xml-twig-tools phonon-backend-gstreamer phonon-backend-mplayer phonon-backend-vlc mesa-utils nickle cairo-5c xorg-docs-core
  gvfs-bin
The following NEW packages will be installed:
  aspell aspell-en dbus dbus-x11 enchant hicolor-icon-theme hunspell-en-us kate-data katepart kde-runtime kde-runtime-data kdelibs5-data kdelibs5-plugins libasound2 libaspell15
  libcanberra0 libenchant1c2a libfile-basedir-perl libfile-desktopentry-perl libfile-mimeinfo-perl libfontenc1 libhunspell-1.3-0 libilmbase6 libjasper1 libkatepartinterfaces4
  libnet-dbus-perl libnl-3-200 libnl-route-3-200 libntrack-qt4-1 libntrack0 libopenexr6 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpolkit-qt-1-1 libqca2-plugin-ossl libsmbclient libssh-4
  libsystemd-login0 libtalloc2 libtdb1 libtie-ixhash-perl libvirtodbc0 libvorbisfile3 libwbclient0 libx11-protocol-perl libxaw7 libxcb-shape0 libxcomposite1 libxcursor1 libxft2
  libxinerama1 libxml-twig-perl libxml-xpathengine-perl libxmu6 libxpm4 libxrandr2 libxv1 libxxf86dga1 ntrack-module-libnl-0 odbcinst odbcinst1debian2 oxygen-icon-theme phonon
  plasma-scriptengine-javascript shared-desktop-ontologies ttf-dejavu ttf-dejavu-extra virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common x11-utils
  x11-xserver-utils xdg-utils
0 upgraded, 73 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 58,1 MB of archives.
After this operation, 122 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y

I return to install with dpkg and now should not cause an error

root@vps415960:/usr/src/choqok# dpkg -i choqok_1.3-2-wheezy_amd64.deb 
(Reading database ... 54896 files and directories currently installed.)
Preparing to replace choqok 1.3-2-wheezy (using choqok_1.3-2-wheezy_amd64.deb) ...
Unpacking replacement choqok ...
Setting up choqok (1.3-2-wheezy) ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
root@vps415960:/usr/src/choqok# 

Done with this choqok running again.

Here are the debian packages for debian wheezy and jessie compiled the 05/08/2013

choqok_1.3-2-wheezy_amd64.deb

choqok_1.3-2-jessie_amd64.deb

This completes the article.

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.