Différences entre versions de « Backport Git »

De Cliss XXI
Sauter à la navigation Sauter à la recherche
imported>SylvainBeucler
m (Nouvelle page : pbuilder initial Lenny setup: <pre> mkdir -p /usr/src/backports/lenny/debs (cd /usr/src/backports/lenny/debs && apt-ftparchive packages . | gzip > Packages.gz) pbuilder --create --ba...)
 
imported>SylvainBeucler
m
Ligne 16 : Ligne 16 :
 
# Meanwhile we edit /etc/pbuilderrc manually
 
# Meanwhile we edit /etc/pbuilderrc manually
 
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-experimental
 
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-experimental
</pre>
 
 
shell variables:
 
<pre>
 
export DEBEMAIL="beuc@beuc.net"
 
export DEBFULLNAME="Sylvain Beucler"
 
export EDITOR="emacs"
 
 
</pre>
 
</pre>
  
Ligne 31 : Ligne 24 :
 
EOF
 
EOF
 
apt-get update
 
apt-get update
 +
</pre>
 +
 +
shell variables:
 +
<pre>
 +
export DEBEMAIL="beuc@beuc.net"
 +
export DEBFULLNAME="Sylvain Beucler"
 +
export EDITOR="emacs"
 
</pre>
 
</pre>
  

Version du 7 juillet 2009 à 12:05

pbuilder initial Lenny setup:

mkdir -p /usr/src/backports/lenny/debs
(cd /usr/src/backports/lenny/debs && apt-ftparchive packages . | gzip > Packages.gz)
pbuilder --create --basetgz /var/cache/pbuilder/base-lenny.tar.gz --distribution lenny \
  --othermirror "deb http://backports.org/debian lenny-backports main|deb file:///usr/src/backports/lenny/debs ./"
# to upgrade: pbuilder --update --basetgz /var/cache/pbuilder/base-lenny.tar.gz --bindmounts /usr/src/backports/lenny/debs

pbuilder --login --basetgz /var/cache/pbuilder/base-lenny.tar.gz --bindmounts /usr/src/backports/lenny/debs --save-after-login
echo "deb http://network/mirrors/debian-backports.org etch-backports main" > /etc/apt/sources.list.d/bpo.list
apt-get install debian-backports-keyring
apt-get update

# TODO: --pbuildersatisfydepends doesn't work, why?
#pdebuild --pbuilder cowbuilder --pbuildersatisfydepends /usr/lib/pbuilder/pbuilder-satisfydepends-experimental
# Meanwhile we edit /etc/pbuilderrc manually
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-experimental

source packages location:

cat <<EOF > /etc/apt/sources.list.d/squeeze-src
deb-src http://ftp.fr.debian.org/debian/ lenny main
EOF
apt-get update

shell variables:

export DEBEMAIL="beuc@beuc.net" 
export DEBFULLNAME="Sylvain Beucler"
export EDITOR="emacs"

git-core:

apt-get source git-core
pushd git-core-*
# debian/control: add new field
# Uploaders: Sylvain Beucler <beuc@beuc.net>
yes | dch -D etch-backports \
  --newversion $(dpkg-parsechangelog | sed -ne 's,^Version: ,,p')~bpo50+1 \
  --force-bad-version -- \
  "Rebuild for Debian Backports <http://www.backports.org/>"
#sed -i -e "s/Uploaders:\(.*\)/Uploaders:\1, $DEBFULLNAME <$DEBEMAIL>/" debian/control
pdebuild --debbuildopts '-sa' --buildresult /usr/src/backports/lenny/debs \
  -- --basetgz /var/cache/pbuilder/base-lenny.tar.gz --bindmounts /usr/src/backports/lenny/debs
# Takes around 1/2h
popd

(cd /usr/src/backports/lenny/debs && apt-ftparchive packages . | gzip > Packages.gz)