You are not logged in.
Pages: 1
Just wondering, whether after installing an app via subversion and afterwards using the svn up command, would I need to again do ./configure, make, make install? Re-install over the older installation? Or make uninstall and then make install the newer version?
Offline
After updating with svn, you should rerun the build process (./configure, make, make install).
Whether or not 'make uninstall' should be used depends on the project. I've came across some projects where not performing 'make uninstall' can lead to problems. However, usually it is not required.
Offline
Leverage the power of pacman to handle version controlled installs. For example, this is the PKGBUILD for FFmpeg that I use. It maintains a local repo of the subversion tree and builds in a separate folder:
pkgname=ffmpeg-svn
pkgver=21080
pkgrel=1
pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
arch=('i686' 'x86_64')
url="http://ffmpeg.mplayerhq.hu/"
license=('GPL')
depends=('sdl' 'zlib' 'imlib2' 'x264')
makedepends=('subversion')
provides=("ffmpeg=`date +%Y%m%d`")
conflicts=('ffmpeg')
_svntrunk=svn://svn.ffmpeg.org/ffmpeg/trunk
_svnmod=ffmpeg
build() {
cd $srcdir
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build
./configure --prefix=/usr \
--enable-gpl \
--enable-libx264 \
--enable-shared \
--disable-static \
--enable-pthreads \
--enable-network \
--enable-x11grab \
--enable-postproc \
--enable-avfilter \
--enable-avfilter-lavf || return 1
make || return 1
make tools/cws2fws || return 1
make doc/ff{mpeg,play,server}.1 || return 1
make DESTDIR=$pkgdir install install-man || return 1
install -D -m755 tools/cws2fws "$pkgdir/usr/bin/cws2fws" || return 1
rm -rf ../$_svnmod-build
}
Offline
Pages: 1