You are not logged in.

#1 2006-04-06 11:45:13

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

question about makeworld & pacman -Syu

I'm thinking about a makeworld over my entire distribution. From what I have found here in the forum makeworld just recompiles every package and if I give it the switch it will install the package.

But I have to export all packages to a public repo so everyone can do a "pacman -Syu" to update the packages. I'm not sure if pacman will see the packages are newer because they will have the same pkgrel number.

How is the right way to go?

Offline

#2 2006-04-06 19:40:17

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: question about makeworld & pacman -Syu

I've written a small script that will increment the pkgrel x to x+0.1 so the new pkg in the repo will be catched by a pacman -Syu for everyone.

#!/bin/bash

DESTDIR=/home/andyrtr/daten/arch64/packages/current
#DESTDIR=/home/andyrtr/daten/arch64/packages/extra
#DESTDIR=/home/andyrtr/daten/arch64/packages/community
#DESTDIR=/home/andyrtr/daten/arch64/packages/testing

REBUILDROOT=/home/andyrtr/daten/arch64/svn/rebuild/trunk/

# set it to what category you want to build
REBUILDDIR=current/lib

cd $REBUILDROOT/$REBUILDDIR

# incementing pkgrel=x to x+0.1
for PACKAGE in `ls -1`; do
    cd $PACKAGE
        PKGREL=`cat PKGBUILD | grep pkgrel | cut -d"=" -f2`
        PKGRELNEW=`echo "$PKGREL+0.1" | bc`
        sed -i "s/pkgrel=$PKGREL/pkgrel=$PKGRELNEW/g" PKGBUILD
    cd ..
done

cd $REBUILDROOT
makeworld $DESTDIR $REBUILDDIR

#makeworld version 2.9.8
#
#Usage: /usr/bin/makeworld [options] <destdir> <category> [category] ...
#
#Options:
#  -b, --builddeps  Build missing dependencies from source
#  -c, --clean      Clean up work files after build
#  -d, --nodeps     Skip all dependency checks
#  -f, --force      Overwrite existing packages
#  -i, --install    Install package after successful build
#  -h, --help       This help
#  -r, --rmdeps     Remove installed dependencies after a successful build
#  -s, --syncdeps   Install missing dependencies with pacman
#
#These options can be passed to pacman:
#
#  --noconfirm      Do not ask for confirmation when resolving dependencies
#  --noprogressbar  Do not show a progress bar when downloading files
#
#Where <category> is one or more directory names under the ABS root
#eg: makeworld -c /packages base lib editors
#
#This should be run from the toplevel directory of ABS (usually /var/abs)

It would be nice if such an option would be added to makeworld in a future pacman release.

AndyRTR

Offline

Board footer

Powered by FluxBB