Empacotamento do Compton para o Debian Wheezy


Assim como no caso do plowshare4, o compton também já foi admitido na árvore oficial de pacotes do Debian (experimental, sid e jessie), mas não no atual Debian Stable e essa dica tratará do empacotamento do mesmo no Debian Wheezy.

Dependências

Como tratarei de empacotamento, nesses casos o mínimo necessário sempre será a instalação dos pacotes build-essential, devscripts e dpkg-dev, logo:

$ sudo apt-get update
$ sudo apt-get install build-essential devscripts dpkg-dev

Empacotamento e Instalação

Debian Wheezy.

$ apt-get source compton    ### apenas se tem os repos deb-src do Debian Jessie ou SID habilitados no sources.list.
$ dget -x -u http://ftp.de.debian.org/debian/pool/main/c/compton/compton_0.1~beta2-1.dsc     ### baixa e extrai com o dget.
$ cd compton-0.1~beta2/     ### entrando no diretório de trabalho.
$ mk-build-deps     ### criação do meta-pacote de dependências.
$ sudo apt-get --no-install-recommends install asciidoc     ### o pulo-do-gato que impedira o download de =/- 600MB de pacotes desnecessários.
$ sudo dpkg -i compton-build-deps_0.1~beta2-1_all.deb     ### instalação do meta-pacote de dependências.
$ sudo apt-get -f install
$ dpkg-buildpackage -us -uc -b -tc     ### compila, empacota e limpa a árvore do programa.
$ $ sudo dpkg -i ../compton_0.1~beta2-1_i386.deb     ### instalação do pacote.

log:

[12549:12532 0:643] 07:01:33 Seg Mar 16 [edps@debian: +1] ~ 
(1:643)$ apt-get source compton
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
NOTICE: 'compton' packaging is maintained in the 'Git' version control system at:
git://github.com/smlx/package-compton.git
Preciso obter 122 kB de arquivos fonte.
Obter:1 http://ftp.debian.org/debian/ sid/main compton 0.1~beta2-1 (dsc) [2.090 B]
Obter:2 http://ftp.debian.org/debian/ sid/main compton 0.1~beta2-1 (tar) [116 kB]
Obter:3 http://ftp.debian.org/debian/ sid/main compton 0.1~beta2-1 (diff) [3.839 B]
Baixados 122 kB em 2s (43,6 kB/s)  
dpkg-source: info: extracting compton in compton-0.1~beta2
dpkg-source: info: unpacking compton_0.1~beta2.orig.tar.xz
dpkg-source: info: unpacking compton_0.1~beta2-1.debian.tar.gz
dpkg-source: info: applying 0001-Don-t-install-.desktop-file.patch

[12549:12532 0:644] 07:09:22 Seg Mar 16 [edps@debian: +1] ~ 
(1:644)$ cd compton-0.1~beta2/
/home/edps/compton-0.1~beta2

[12549:12532 0:645] 07:09:29 Seg Mar 16 [edps@debian: +1] ~/compton-0.1~beta2 
(1:645)$ mk-build-deps 
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: construindo pacote 'compton-build-deps' em '../compton-build-deps_0.1~beta2-1_all.deb'.

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!

[12549:12532 0:639] 07:09:37 Seg Mar 16 [edps@debian: +1] ~/compton-0.1~beta2 
(1:639)$ sudo apt-get --no-install-recommends install asciidoc
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
asciidoc já é a versão mais nova.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.

[12549:12532 0:640] 07:10:18 Seg Mar 16 [edps@debian: +1] ~/compton-0.1~beta2 
(1:640)$ sudo dpkg -i compton-build-deps_0.1~beta2-1_all.deb 
Selecting previously unselected package compton-build-deps.
(Lendo banco de dados ... 278245 files and directories currently installed.)
Desempacotando compton-build-deps (de compton-build-deps_0.1~beta2-1_all.deb) ...
Configurando compton-build-deps (0.1~beta2-1) ...

[12549:12532 0:641] 07:10:30 Seg Mar 16 [edps@debian: +1] ~/compton-0.1~beta2 
(1:641)$ dpkg-buildpackage -us -uc -b -tc
dpkg-buildpackage: source package compton
dpkg-buildpackage: source version 0.1~beta2-1
dpkg-buildpackage: source changed by Scott Leggett <scott@sl.id.au>
dpkg-buildpackage: host architecture i386
 dpkg-source --before-build compton-0.1~beta2
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
make[1]: Entrando no diretório `/home/edps/compton-0.1~beta2'
make[1]: Saindo do diretório `/home/edps/compton-0.1~beta2'
   dh_clean
 debian/rules build
dh build
   dh_testdir
   dh_auto_configure
   dh_auto_build
make[1]: Entrando no diretório `/home/edps/compton-0.1~beta2'
cc -std=c99 -DCONFIG_XINERAMA -DCONFIG_LIBCONFIG  -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT -DCONFIG_VSYNC_DRM -DCONFIG_VSYNC_OPENGL -DCONFIG_VSYNC_OPENGL_GLSL -DCONFIG_VSYNC_OPENGL_FBO -DCONFIG_VSYNC_OPENGL_VBO -DCONFIG_DBUS -DCONFIG_C2 -DCOMPTON_VERSION=""0.1~beta2"" -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall   -I/usr/include/libdrm   -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include   -c src/compton.c
In file included from src/compton.c:11:0:
src/compton.h: In function ‘set_tgt_clip’:
src/compton.h:663:3: warning: enumeration value ‘NUM_BKEND’ not handled in switch [-Wswitch]
src/compton.c: In function ‘win_paint_win’:
src/compton.c:1641:5: warning: enumeration value ‘NUM_BKEND’ not handled in switch [-Wswitch]
src/compton.c: In function ‘init_filters’:
src/compton.c:6140:5: warning: enumeration value ‘NUM_BKEND’ not handled in switch [-Wswitch]
src/compton.c: At top level:
src/compton.c:2536:1: warning: ‘win_upd_run’ defined but not used [-Wunused-function]
cc -std=c99 -DCONFIG_XINERAMA -DCONFIG_LIBCONFIG  -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT -DCONFIG_VSYNC_DRM -DCONFIG_VSYNC_OPENGL -DCONFIG_VSYNC_OPENGL_GLSL -DCONFIG_VSYNC_OPENGL_FBO -DCONFIG_VSYNC_OPENGL_VBO -DCONFIG_DBUS -DCONFIG_C2 -DCOMPTON_VERSION=""0.1~beta2"" -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall   -I/usr/include/libdrm   -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include   -c src/opengl.c
src/opengl.c:1425:1: warning: ‘glx_render_color’ defined but not used [-Wunused-function]
src/opengl.c:1463:1: warning: ‘glx_render_dots’ defined but not used [-Wunused-function]
cc -std=c99 -DCONFIG_XINERAMA -DCONFIG_LIBCONFIG  -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT -DCONFIG_VSYNC_DRM -DCONFIG_VSYNC_OPENGL -DCONFIG_VSYNC_OPENGL_GLSL -DCONFIG_VSYNC_OPENGL_FBO -DCONFIG_VSYNC_OPENGL_VBO -DCONFIG_DBUS -DCONFIG_C2 -DCOMPTON_VERSION=""0.1~beta2"" -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall   -I/usr/include/libdrm   -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include   -c src/dbus.c
cc -std=c99 -DCONFIG_XINERAMA -DCONFIG_LIBCONFIG  -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT -DCONFIG_VSYNC_DRM -DCONFIG_VSYNC_OPENGL -DCONFIG_VSYNC_OPENGL_GLSL -DCONFIG_VSYNC_OPENGL_FBO -DCONFIG_VSYNC_OPENGL_VBO -DCONFIG_DBUS -DCONFIG_C2 -DCOMPTON_VERSION=""0.1~beta2"" -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall   -I/usr/include/libdrm   -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include   -c src/c2.c
cc -std=c99 -DCONFIG_XINERAMA -DCONFIG_LIBCONFIG  -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT -DCONFIG_VSYNC_DRM -DCONFIG_VSYNC_OPENGL -DCONFIG_VSYNC_OPENGL_GLSL -DCONFIG_VSYNC_OPENGL_FBO -DCONFIG_VSYNC_OPENGL_VBO -DCONFIG_DBUS -DCONFIG_C2 -DCOMPTON_VERSION=""0.1~beta2"" -D_FORTIFY_SOURCE=2 -Wl,-z,relro -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -o compton compton.o opengl.o dbus.o c2.o -lGL -lm -lrt -L/usr/lib/i386-linux-gnu -lpcre -lXcomposite -lXdamage -lXfixes -lXrender -lX11 -lXext -lXrandr -lXinerama -lconfig -ldbus-1  
make[1]: Saindo do diretório `/home/edps/compton-0.1~beta2'
   dh_auto_test
 fakeroot debian/rules binary
dh binary
   dh_testroot
   dh_prep
   dh_installdirs
   dh_auto_install
make[1]: Entrando no diretório `/home/edps/compton-0.1~beta2'
a2x --format manpage man/compton.1.asciidoc
a2x --format manpage man/compton-trans.1.asciidoc
asciidoc man/compton.1.asciidoc
asciidoc man/compton-trans.1.asciidoc
make[1]: Saindo do diretório `/home/edps/compton-0.1~beta2'
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_installexamples
   dh_installman
   dh_installcatalogs
   dh_installcron
   dh_installdebconf
   dh_installemacsen
   dh_installifupdown
   dh_installinfo
   dh_installinit
   dh_installmenu
   dh_installmime
   dh_installmodules
   dh_installlogcheck
   dh_installlogrotate
   dh_installpam
   dh_installppp
   dh_installudev
   dh_installwm
   dh_installxfonts
   dh_installgsettings
   dh_bugfiles
   dh_ucf
   dh_lintian
   dh_gconf
   dh_icons
   dh_perl
   dh_usrlocal
   dh_link
   dh_compress
   dh_fixperms
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/compton/usr/bin/compton was not linked against librt.so.1 (it uses none of the library's symbols)
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: construindo pacote 'compton' em '../compton_0.1~beta2-1_i386.deb'.
 dpkg-genchanges -b >../compton_0.1~beta2-1_i386.changes
dpkg-genchanges: binary-only upload - not including any source code
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
make[1]: Entrando no diretório `/home/edps/compton-0.1~beta2'
make[1]: Saindo do diretório `/home/edps/compton-0.1~beta2'
   dh_clean
 dpkg-source --after-build compton-0.1~beta2
dpkg-buildpackage: binary only upload (no source included)

[12549:12532 0:639] 07:12:15 Seg Mar 16 [edps@debian: +1] ~/compton-0.1~beta2 
(1:639)$ sudo dpkg -i ../compton_0.1~beta2-1_i386.deb 
Selecting previously unselected package compton.
(Lendo banco de dados ... 278239 files and directories currently installed.)
Desempacotando compton (de .../compton_0.1~beta2-1_i386.deb) ...
Configurando compton (0.1~beta2-1) ...
Processando gatilhos para man-db ...

[12549:12532 0:640] 07:13:15 Seg Mar 16 [edps@debian: +1] ~/compton-0.1~beta2 
(1:640)$ 

Simples assim! daí bastará dar uma lida nos artigos de referência para ver como habilitar os efeitos do Compton em seu Debian.

IntÉ!

Anúncios
Empacotamento do Compton para o Debian Wheezy

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s