Re: [yaourt] branche exp à tester
Publié : mer. 21 avr. 2010, 01:02
ah! un dernier truc: j'ai absolument rien configuré, j'ai installé et éssayé direct..
Forum d'entraide ! Posez vos questions ici
https://forums.archlinux.fr/
Code : Tout sélectionner
diff --git a/src/lib/pkgbuild.sh b/src/lib/pkgbuild.sh
index 3f2a839..169dd74 100644
--- a/src/lib/pkgbuild.sh
+++ b/src/lib/pkgbuild.sh
@@ -46,6 +46,7 @@ source_makepkg_conf ()
# Set PKGBUILD_VARS, exec "eval $PKGBUILD_VARS" to have PKGBUILD content.
read_pkgbuild ()
{
+ set -x
local update=${1:-0}
local vars=(pkgbase pkgname pkgver pkgrel arch pkgdesc provides url \
groups license source install md5sums depends makedepends conflicts \
@@ -68,6 +69,9 @@ read_pkgbuild ()
echo "}" >> $pkgbuild_tmp
echo "( yaourt_$$ ) || exit 1" >> $pkgbuild_tmp
echo "exit 0" >> $pkgbuild_tmp
+ echo_fill "" "-" ""
+ cat $pkgbuild_tmp
+ echo_fill "" "-" ""
PKGBUILD_VARS="$(makepkg -p "$pkgbuild_tmp" 3>&1 1>/dev/null 2>&1 | tr '\n' ';')"
rm "$pkgbuild_tmp"
eval $PKGBUILD_VARS
@@ -76,6 +80,7 @@ read_pkgbuild ()
PKGBUILD_VARS=${PKGBUILD_VARS//declare -- /}
if [[ ! "$pkgbase" ]]; then
echo $(eval_gettext 'Unable to read PKGBUILD for $PKG')
+ set +x
return 1
fi
(( ${#pkgname[@]} > 1 )) && SPLITPKG=1 || SPLITPKG=0
@@ -84,6 +89,7 @@ read_pkgbuild ()
msg $(gettext 'Specific package options are unknown')
}
[[ "$arch" = 'any' ]] && PARCH=any || PARCH=$CARCH
+ set +x
return 0
}
Code : Tout sélectionner
yaourt_debug.diff
Code : Tout sélectionner
sudo patch -i yaourt_debug.diff /usr/lib/yaourt/pkgbuild.sh
Code : Tout sélectionner
yaourt -Sb scite
Code : Tout sélectionner
==> Compilation de scite depuis les sources.
==> Récupération du PKGBUILD et fichiers locaux...
receiving file list ... done
./
ChangeLog
PKGBUILD
SciTE.desktop
makefile.patch
scite.install
sent 123 bytes received 4924 bytes 1442.00 bytes/sec
total size is 4570 speedup is 0.91
no configuration found for scite in /etc/customizepkg.d/
+ local update=0
+ vars=(pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname)
+ local vars
+ unset pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname
++ mktemp --tmpdir=.
+ local pkgbuild_tmp=./tmp.0wjvu8IVX7
+ echo 'yaourt_8507() {'
+ cat PKGBUILD
+ echo
+ (( update ))
+ echo 'declare -p pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname >&3'
+ echo 'return 0'
+ echo '}'
+ echo '( yaourt_8507 ) || exit 1'
+ echo 'exit 0'
+ echo_fill '' - ''
+ printf -v_fill %80s ''
+ echo -e --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
+ cat ./tmp.0wjvu8IVX7
yaourt_8507() {
# $Id: PKGBUILD 15354 2010-04-10 09:17:42Z dgriffiths $
# Contributor: Corrado 'bardo' Primier <corrado.primier@mail.polimi.it>
# Contributor: Jochem Kossen <j.kossen@home.nl>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=scite
pkgver=2.11
pkgrel=1
pkgdesc="A generally useful editor with facilities for building and running programs"
arch=('i686' 'x86_64')
url="http://www.scintilla.org/SciTE.html"
license=('custom:scite')
depends=('desktop-file-utils' 'gtk2')
backup=(usr/share/scite/SciTEGlobal.properties)
install=scite.install
source=(http://downloads.sourceforge.net/sourceforge/scintilla/${pkgname}${pkgver/\./}.tgz
SciTE.desktop makefile.patch)
md5sums=('129aad231c9618aaa2c2e41226db2327' '48526532ef677982a4b156ae90f25b6f'
'13f0526312c257da3bbd7386ae43414c')
build() {
cd ${srcdir}
patch -Np0 -i ${srcdir}/makefile.patch || return 1
cd ${srcdir}/scintilla/gtk
sed -i "s/#ARCHCXXFLAGS#/${CXXFLAGS}/g" makefile
make || return 1
install -Dm644 ../License.txt ${pkgdir}/usr/share/licenses/scintilla/LICENSE
cd ${srcdir}/${pkgname}/gtk
sed -i "s/#ARCHCXXFLAGS#/${CXXFLAGS}/g" makefile
make || return 1
make DESTDIR=${pkgdir} install
install -Dm644 ../License.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -Dm644 ${srcdir}/SciTE.desktop ${pkgdir}/usr/share/applications/
ln -sf SciTE ${pkgdir}/usr/bin/scite
}
declare -p pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname >&3
return 0
}
( yaourt_8507 ) || exit 1
exit 0
+ echo_fill '' - ''
+ printf -v_fill %80s ''
+ echo -e --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
++ makepkg -p ./tmp.0wjvu8IVX7
++ tr '\n' ';'
+ PKGBUILD_VARS=
+ rm ./tmp.0wjvu8IVX7
+ eval
+ [[ -n '' ]]
+ pkgbase=
++ tr '\n' ';'
++ declare -p pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname
+ PKGBUILD_VARS='declare -- pkgbase="";'
+ PKGBUILD_VARS='pkgbase="";'
+ [[ ! -n '' ]]
++ eval_gettext 'Unable to read PKGBUILD for $PKG'
++ gettext 'Unable to read PKGBUILD for $PKG'
+++ envsubst --variables 'Unable to read PKGBUILD for $PKG'
++ export PATH PKG
++ envsubst 'Unable to read PKGBUILD for $PKG'
+ echo Impossible de lire le PKGBUILD de scite
Impossible de lire le PKGBUILD de scite
+ set +x
==> WARNING: Les paquets suivants n'ont pas été installés :
scite
Code : Tout sélectionner
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
CFLAGS="-march=core2 -O2 -fgraphite -floop-block -floop-interchange -floop-strip-mine -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
MAKEFLAGS="-j5"
BUILDENV=(fakeroot !distcc color ccache)
PKGDEST=/srv/data/Projets/Paquets/build
SRCDEST=/srv/data/Projets/Paquets/sources
Code : Tout sélectionner
==> Compilation de scite depuis les sources.
==> Récupération du PKGBUILD et fichiers locaux...
receiving file list ... done
./
ChangeLog
PKGBUILD
SciTE.desktop
makefile.patch
scite.install
sent 123 bytes received 4924 bytes 2018.80 bytes/sec
total size is 4570 speedup is 0.91
no configuration found for scite in /etc/customizepkg.d/
+ local update=0
+ vars=(pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname)
+ local vars
+ unset pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname
++ mktemp --tmpdir=.
+ local pkgbuild_tmp=./tmp.VjGBcbTDwJ
+ echo 'yaourt_11382() {'
+ cat PKGBUILD
+ echo
+ (( update ))
+ echo 'declare -p pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname >&3'
+ echo 'return 0'
+ echo '}'
+ echo '( yaourt_11382 ) || exit 1'
+ echo 'exit 0'
+ echo_fill '' - ''
+ printf -v_fill %80s ''
+ echo -e --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
+ cat ./tmp.VjGBcbTDwJ
yaourt_11382() {
# $Id: PKGBUILD 15354 2010-04-10 09:17:42Z dgriffiths $
# Contributor: Corrado 'bardo' Primier <corrado.primier@mail.polimi.it>
# Contributor: Jochem Kossen <j.kossen@home.nl>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=scite
pkgver=2.11
pkgrel=1
pkgdesc="A generally useful editor with facilities for building and running programs"
arch=('i686' 'x86_64')
url="http://www.scintilla.org/SciTE.html"
license=('custom:scite')
depends=('desktop-file-utils' 'gtk2')
backup=(usr/share/scite/SciTEGlobal.properties)
install=scite.install
source=(http://downloads.sourceforge.net/sourceforge/scintilla/${pkgname}${pkgver/\./}.tgz
SciTE.desktop makefile.patch)
md5sums=('129aad231c9618aaa2c2e41226db2327' '48526532ef677982a4b156ae90f25b6f'
'13f0526312c257da3bbd7386ae43414c')
build() {
cd ${srcdir}
patch -Np0 -i ${srcdir}/makefile.patch || return 1
cd ${srcdir}/scintilla/gtk
sed -i "s/#ARCHCXXFLAGS#/${CXXFLAGS}/g" makefile
make || return 1
install -Dm644 ../License.txt ${pkgdir}/usr/share/licenses/scintilla/LICENSE
cd ${srcdir}/${pkgname}/gtk
sed -i "s/#ARCHCXXFLAGS#/${CXXFLAGS}/g" makefile
make || return 1
make DESTDIR=${pkgdir} install
install -Dm644 ../License.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
install -Dm644 ${srcdir}/SciTE.desktop ${pkgdir}/usr/share/applications/
ln -sf SciTE ${pkgdir}/usr/bin/scite
}
declare -p pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname >&3
return 0
}
( yaourt_11382 ) || exit 1
exit 0
+ echo_fill '' - ''
+ printf -v_fill %80s ''
+ echo -e --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
++ makepkg -p ./tmp.VjGBcbTDwJ
++ tr '\n' ';'
+ PKGBUILD_VARS='declare -- pkgname="scite";declare -- pkgver="2.11";declare -- pkgrel="1";declare -a arch='\''([0]="i686" [1]="x86_64")'\'';declare -- pkgdesc="A generally useful editor with facilities for building and running programs";declare -- url="http://www.scintilla.org/SciTE.html";declare -a license='\''([0]="custom:scite")'\'';declare -a source='\''([0]="http://downloads.sourceforge.net/sourceforge/scintilla/scite211.tgz" [1]="SciTE.desktop" [2]="makefile.patch")'\'';declare -- install="scite.install";declare -a md5sums='\''([0]="129aad231c9618aaa2c2e41226db2327" [1]="48526532ef677982a4b156ae90f25b6f" [2]="13f0526312c257da3bbd7386ae43414c")'\'';declare -a depends='\''([0]="desktop-file-utils" [1]="gtk2")'\'';'
+ rm ./tmp.VjGBcbTDwJ
+ eval declare -- 'pkgname="scite";declare' -- 'pkgver="2.11";declare' -- 'pkgrel="1";declare' -a 'arch='\''([0]="i686"' '[1]="x86_64")'\'';declare' -- 'pkgdesc="A' generally useful editor with facilities for building and running 'programs";declare' -- 'url="http://www.scintilla.org/SciTE.html";declare' -a 'license='\''([0]="custom:scite")'\'';declare' -a 'source='\''([0]="http://downloads.sourceforge.net/sourceforge/scintilla/scite211.tgz"' '[1]="SciTE.desktop"' '[2]="makefile.patch")'\'';declare' -- 'install="scite.install";declare' -a 'md5sums='\''([0]="129aad231c9618aaa2c2e41226db2327"' '[1]="48526532ef677982a4b156ae90f25b6f"' '[2]="13f0526312c257da3bbd7386ae43414c")'\'';declare' -a 'depends='\''([0]="desktop-file-utils"' '[1]="gtk2")'\'';'
++ declare -- pkgname=scite
++ declare -- pkgver=2.11
++ declare -- pkgrel=1
++ declare -a 'arch=([0]="i686" [1]="x86_64")'
++ declare -- 'pkgdesc=A generally useful editor with facilities for building and running programs'
++ declare -- url=http://www.scintilla.org/SciTE.html
++ declare -a 'license=([0]="custom:scite")'
++ declare -a 'source=([0]="http://downloads.sourceforge.net/sourceforge/scintilla/scite211.tgz" [1]="SciTE.desktop" [2]="makefile.patch")'
++ declare -- install=scite.install
++ declare -a 'md5sums=([0]="129aad231c9618aaa2c2e41226db2327" [1]="48526532ef677982a4b156ae90f25b6f" [2]="13f0526312c257da3bbd7386ae43414c")'
++ declare -a 'depends=([0]="desktop-file-utils" [1]="gtk2")'
+ [[ -n '' ]]
+ pkgbase=scite
++ tr '\n' ';'
++ declare -p pkgbase pkgname pkgver pkgrel arch pkgdesc provides url groups license source install md5sums depends makedepends conflicts replaces _svntrunk _svnmod _cvsroot_cvsmod _hgroot _hgrepo _darcsmod _darcstrunk _bzrtrunk _bzrmod _gitroot _gitname
+ PKGBUILD_VARS='declare -- pkgbase="scite";declare -- pkgname="scite";declare -- pkgver="2.11";declare -- pkgrel="1";declare -a arch='\''([0]="i686" [1]="x86_64")'\'';declare -- pkgdesc="A generally useful editor with facilities for building and running programs";declare -- url="http://www.scintilla.org/SciTE.html";declare -a license='\''([0]="custom:scite")'\'';declare -a source='\''([0]="http://downloads.sourceforge.net/sourceforge/scintilla/scite211.tgz" [1]="SciTE.desktop" [2]="makefile.patch")'\'';declare -- install="scite.install";declare -a md5sums='\''([0]="129aad231c9618aaa2c2e41226db2327" [1]="48526532ef677982a4b156ae90f25b6f" [2]="13f0526312c257da3bbd7386ae43414c")'\'';declare -a depends='\''([0]="desktop-file-utils" [1]="gtk2")'\'';'
+ PKGBUILD_VARS='pkgbase="scite";pkgname="scite";pkgver="2.11";pkgrel="1";declare -a arch='\''([0]="i686" [1]="x86_64")'\'';pkgdesc="A generally useful editor with facilities for building and running programs";url="http://www.scintilla.org/SciTE.html";declare -a license='\''([0]="custom:scite")'\'';declare -a source='\''([0]="http://downloads.sourceforge.net/sourceforge/scintilla/scite211.tgz" [1]="SciTE.desktop" [2]="makefile.patch")'\'';install="scite.install";declare -a md5sums='\''([0]="129aad231c9618aaa2c2e41226db2327" [1]="48526532ef677982a4b156ae90f25b6f" [2]="13f0526312c257da3bbd7386ae43414c")'\'';declare -a depends='\''([0]="desktop-file-utils" [1]="gtk2")'\'';'
+ [[ ! -n scite ]]
+ (( 1 > 1 ))
+ SPLITPKG=0
+ (( SPLITPKG ))
+ [[ i686 = \a\n\y ]]
+ PARCH=x86_64
+ set +x
==> Dépendances de scite :
- desktop-file-utils (déjà installé)
- gtk2 (déjà installé)
==> Lancer la compilation de scite ? [O/n]
==> ----------------------------------------------
==>
==> Construction et installation du paquet
==> Création du paquet scite 2.11-1 x86_64 (mer. avril 21 16:53:59 CEST 2010)
==> Vérification des dépendances...
==> Vérification des dépendances pour la compilation...
==> Récupération des sources...
-> Utilisation de la copie de scite211.tgz du cache.
-> SciTE.desktop trouvé dans le répertoire de compilation
-> makefile.patch trouvé dans le répertoire de compilation
==> Validation des fichiers sources avec md5sums...
scite211.tgz ... Réussite
SciTE.desktop ... Réussite
makefile.patch ... Réussite
==> Extraction des sources...
-> Extraction de scite211.tgz avec bsdtar
==> Entre dans l'environnement fakeroot...
==> Début de la compilation...
Code : Tout sélectionner
ABS_REPO=(gnome-unstable testing community-testing xorg18 extra community core)
NOCONFIRM=1
EDITFILES=0
NOENTER=1
AURVOTE=0
AURCOMMENT=0
TERMINALTITLE=1
EDITOR="nano"
DEVELBUILDDIR="/srv/data/Projets/Paquets/yaourtbuild/"
TMPDIR="/srv/data/Projets/Paquets/tmp"
EXPORTDIR="/srv/data/Projets/Paquets/build"
Code : Tout sélectionner
Changements:
* Fonctionnalités et options:
- Mise à niveau par rapport à pacman 3.4 (option --arch, -D|--database, --print|--print-format, ...)
- Suppression des fonctions prises en compte directement par le nouveau pacman (-U gère les conflits et les dépendances, -o fait un 'which' maintenant)
- Ajout de l'option -a qui est équivalente à --aur
- -Syua n'affiche plus les informations sur les paquets non trouvés sur AUR ou à jour.
- -Qma donne des infos sur les paquets pouvant provenir d'AUR
- -C --database n'est plus d'actualité, -Sc à la place.
- Correction des provides, si un paquet présent sur AUR est fourni dans un dépôt, yaourt installait celui d'AUR, plus maintenant.
- Ajout d'informations sur le -Si d'AUR (votes, url)
- La mise à jour en mode détaillée regroupe les maj dépôt et AUR (si AURUPGRADE ou -a|--aur bien sûr)
* Configuration:
- MAXCOMMENTS n'est plus valable, utiliser AURCOMMENT directement.
- Ca date de plus longtemps que cette version, mais peu importe, TMPDIR peut être défini dans l'environnement.
- L'export des paquets/sources est légèrement modifié, les anciens paquets ne sont plus supprimés:
+ EXPORT=1 active l'exportation des paquets après construction.
+ EXPORTSRC=1 exporte en plus les sources sous forme compréssée.
+ EXPORTDIR=x, si non défini, yaourt utilise les variables SRCPKGDEST, PKGDEST de makepkg, sinon exporte dans EXPORTDIR.
- SUDONOVERIF=1 évite les demandes de mot de passe à répétition pour ceux qui configurent le timeout à 0.
- UP_NOCONFIRM=1 ne demande aucune confirmation pour la "compilation" des mises à jour qu'elle soit du dépôt (suite à -b ou customizepkg) ou d'AUR
- BUILD_NOCONFIRM=1 ne demande que pour l'édition des fichiers (PKGBUILD et install)
plus rapide, fait le café toussa toussa...
Code : Tout sélectionner
yaourt -S yaourt-git-exp
Sinon je ne trouve pas l'option caféLa mise à jour en mode détaillée