[ anterior ] [ Contenidos ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ A ] [ siguiente ]
En este ejemplo mpaquetaremos el código fuente original gentoo-1.0.2.tar.gz y subiremos todos los paquetes al nm_objetivo.
$ mkdir -p /ruta/a # nuevo directorio vacío $ cd /ruta/a $ tar -xvzf /ruta/desde/gentoo-1.0.2.tar.gz # obtén la fuente $ cd gentoo-1.0.2 $ dh_make -e nombre@dominio.com -f /ruta/desde/gentoo-1.0.2.tar.gz ... Responde a las preguntas ... Arregla el árbol de las fuentes ... Si es un paquete que contiene programas guiones, indica en debian/control «Architecture: all» ... No borres ../gentoo_1.0.2.orig.tar.gz $ debuild ... Asegúrate de que no hay ningún aviso $ cd .. $ dupload -t nm_objetivo gentoo_1.0.2-1_i386.changes
dpatch
y pbuilder
$ mkdir -p /ruta/a # nuevo directorio vacío $ cd /ruta/a $ tar -xvzf /ruta/desde/gentoo-1.0.2.tar.gz $ cp -a gentoo-1.0.2 gentoo-1.0.2-orig $ cd gentoo-1.0.2 $ dh_make -e nombre@dominio.com -f /ruta/de/gentoo-1.0.2.tar.gz ... Responde a las preguntas
En un principio, debian/rules
es así:
configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/gentoo.sgml > gentoo.1 touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. -$(MAKE) clean dh_clean
Cambia lo siguiente con un editor en debian/rules
para usar
dpatch
y añade dpatch
a la línea
Build-Depends: en el fichero debian/control
:
configure: configure-stamp configure-stamp: patch dh_testdir # Add here commands to configure the package. touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. $(MAKE) #docbook-to-man debian/gentoo.sgml > gentoo.1 touch $@ clean: clean-patched unpatch dh_testdir dh_testroot rm -f build-stamp configure-stamp # Add here commands to clean up after the build process. -$(MAKE) clean dh_clean patch: patch-stamp patch-stamp: dpatch apply-all dpatch call-all -a=pkg-info >patch-stamp unpatch: dpatch deapply-all rm -rf patch-stamp debian/patched
Ahora está todo preparado para reempaquetar el árbol de código con el sistema
dpatch
y con la ayuda de dpatch-edit-patch
.
$ dpatch-edit-patch patch 10_firstpatch ... Arregla el arbol de fuentes con el editor $ exit 0 ... Intenta construir el paquete con «debuild -us -uc» ... Limpia las fuentes con «debuild clean» ... Repite con dpatch-edit-patch hasta que las fuentes compilen. $ sudo pbuilder update $ pdebuild $ cd /var/cache/pbuilder/result/ $ dupload -t nm_objetivo gentoo_1.0.2-1_i386.changes
[ anterior ] [ Contenidos ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ A ] [ siguiente ]
Guía del nuevo desarrollador de Debian
version 1.2.11, 12 de enero de 2007.joy-mg@debian.org
jfs@debian.org
ender@debian.org
ana@debian.org