Creare pacchetti di MariaDB su CentOS

Stai visualizzando una vecchia versione di questo article. Visualizza la versione più recente.

Requisiti per il build su

  • Script di packaging
  • Sorgenti di MariaDB
  • bzr. La versione di bzr di CentOS è troppo vecchia per MariaDB. E' necessario installare Bazaar dai sorgenti.
  • I seguenti pacchetti rpm:
    • gperf
    • rpm-devel
    • rpm-build
    • rpmdevtools
    • libdbi
  • Per un build completamente automatico è necessario eseguire un sudo senza password. Questa procedura NON è raccomandata sui sistemi di produzione! Siete stati avvisati!
    • visudo
    • e commentare la riga %wheel ALL=(ALL) NOPASSWD: ALL
    • usermod -a -G wheel {your_system_username}

Costruire i pacchetti .rpm su CentOS

Prima occorre impostare un ambiente di build.

Creare pacchetti CentOS

cd $PACKAGING_WORK
bakery/preheat.sh
cd bakery_{number}
bakery/tarbake51.sh last:1 $MARIA_WORK
bakery/autobake51-centos.sh mariadb-{version_num}-maria-beta-ourdelta{number}.tar.gz

Aggiornare i repository

Occorre aggiornare i repository ed eseguire gli script di packaging:

rm -rf $MARIA_WORK
rm -rf $PACKAGING_WORK

cd $MARIA_MASTER
$BZR pull
$BZR branch $MARIA_MASTER $MARIA_WORK

cd $PACKAGING_MASTER
$BZR pull
$BZR branch $PACKAGING_MASTER $PACKAGING_WORK

E' ora possibile creare nuovamente i pacchetti per CentOS.

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.