You are not logged in.

#1 2010-01-09 01:28:32

leberyo
Member
Registered: 2009-12-30
Posts: 123

Quick question about Subversion

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

#2 2010-01-09 01:42:30

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: Quick question about Subversion

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

#3 2010-01-09 01:51:06

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Quick question about Subversion

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

Board footer

Powered by FluxBB