Delian's Blog
9dic/113

Ricompilazione pacchetti in Debian

Debian OpenLogo

Image via Wikipedia

A seguito di un bug con la mia stravecchia scheda video, mi è stato chiesto da un developer di fargli avere più output applicando una patch ai sorgenti di mesa.

Mi sono trovato un po' spiazzato: venendo da Gentoo sono sempre stato abituato a vedere direttamente la relazione tra sorgenti e pacchetti compilati. Tuttavia, grazie a qualche documentazione esauriente e alla disponibilità della comunità su IRC, la cosa si è rivelata ancora più automatizzata che con Gentoo.

Per prima cosa è necessario avere alcuni strumenti fondamentali:

 aptitude install build-essential devscripts fakeroot 

e soddisfare le dipendenze di compilazione necessarie per il pacchetto che vogliamo ricompilare

 aptitude -R build-dep packagename 

A questo punto possiamo scaricare i sorgenti del pacchetto. Nota: è necessario avere la riga deb-src tra i repository, altrimenti aptitude non saprà da dove prendere i sorgenti.

 apt-get source packagename 

entriamo nella directory contenente i sorgenti appena scaricati, facciamo tutte le modifiche che dovevamo fare e compiliamo il pacchetto:

 dpkg-buildpackage -rfakeroot -uc -us 

Una volta concluso con successo, verranno creati i pacchetti deb che potranno essere installati con un classico

 dpkg -i nomepacchetto-versione.deb 

Veramente troppo semplice :)

Thank you Debian!

Enhanced by Zemanta
Inserito in: Debian Lascia un commento
Commenti (3) Trackback (0)
  1. Warning: mysql_query(): No such file or directory in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 219

    Warning: mysql_query(): A link to the server could not be established in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 219

    Warning: mysql_query(): No such file or directory in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 226

    Warning: mysql_query(): A link to the server could not be established in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 226
    class="comment even thread-even depth-1" id="li-comment-421">

    So sad, installing the new build fails: [cut] Selecteren van vooehern niet geselecteerd pakket snowglobe.Uitpakken van snowglobe (uit /snowglobe_1.3.1-10_i386.deb) dpkg: fout bij afhandelen van /var/cache/apt/archives/snowglobe_1.3.1-10_i386.deb ( unpack): subproces nieuw pre-installation script gaf een foutwaarde 10 terugProcessing triggers for menu Fouten gevonden tijdens behandelen van: /var/cache/apt/archives/snowglobe_1.3.1-10_i386.debE: Sub-process /usr/bin/dpkg returned an error code (1)

    Mi piace o Non mi piace: Thumb up 0 Thumb down 0

  2. Warning: mysql_query(): No such file or directory in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 219

    Warning: mysql_query(): A link to the server could not be established in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 219

    Warning: mysql_query(): No such file or directory in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 226

    Warning: mysql_query(): A link to the server could not be established in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 226
    class="comment odd alt thread-odd thread-alt depth-1" id="li-comment-423">

    pof,The rotate secren gives me a rotation to the right but my secren gets divided.Looking at your script and reading your comments on xda-developer is saw you use the command xrandr.Reading the help file for xrandr is saw it is possible to also give the possible size for the secren.But xorg.conf needs to be adjusted for that. Using the easy setup way I saw you copied the xorg.cof and added a new one. If I adjust my xorg.conf to allow the resolution 600 800 won’t it be overwritten when I swicth between kernel and synce?Also I would be in trouble since the easy setup uses the .deb package which doesn’t include the alterations in htschift-rotate.cRotation to the right could be:xrandr -o right -s 600 800Default could be:xrandr -0 0 -s800x600Is my reasoning correct?

    Mi piace o Non mi piace: Thumb up 0 Thumb down 0

  3. Warning: mysql_query(): No such file or directory in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 219

    Warning: mysql_query(): A link to the server could not be established in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 219

    Warning: mysql_query(): No such file or directory in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 226

    Warning: mysql_query(): A link to the server could not be established in /home/mhd-01/www.delian.it/htdocs/wp-content/plugins/comment-rating/comment-rating.php on line 226
    class="comment even thread-even depth-1" id="li-comment-456">

    Good comparison. Installation of Gentoo had tuhagt me the same things as of the things I have learned from LFS installation and I still think if one wants to *only* learn Linux and not a distro for daily use then one can go with LFS. Gentoo is for an expert user who prefers customization and learning. I do prefer learnign over comfort (I prefer it a lot) and I don’t prefer customization/optimization. So I still wonder what distro is for me . My instincts are not satisfied with Arch.

    Mi piace o Non mi piace: Thumb up 0 Thumb down 0


Lascia un commento

Ancora nessun trackback.

Social Widgets powered by AB-WebLog.com.