[Xapian-devel] Omega 1.2.4 build questions

xapian at catcons.co.uk xapian at catcons.co.uk
Sun Dec 26 14:50:54 GMT 2010


Hello :-)

I am creating an omega 1.2.4 package for Slackware (actually an automated
build, the Slackware way) and hope that this xapian-devel mailing list is
the right place to ask questions.

Firstly, the build (from
http://oligarchy.co.uk/xapian/1.2.4/xapian-omega-1.2.4.tar.gz) does not
create/populate some directories including /var/lib/omega/templates.  I do
not have enough make knowledge to analyse the cause.  Here are the scripted
configure and make commands used (cut down to essentials):

=== scrippet begins  ===

PRGNAM=xapian-omega
VERSION=${VERSION:-1.2.4}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm
400 \) \
 -exec chmod 644 {} \;

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --disable-static \
  --build=$ARCH-slackware-linux

make
make install DESTDIR=$PKG

=== scrippet ends ===

The build is done in /tmp/SBo/xapian-omega-1.2.4 and the files to be
installed are created in /tmp/SBo/package-xapian-omega

After such a build these directories have been created:

root at CW8:~# find /tmp/SBo/package-xapian-omega -type d
/tmp/SBo/package-xapian-omega
/tmp/SBo/package-xapian-omega/etc
/tmp/SBo/package-xapian-omega/usr
/tmp/SBo/package-xapian-omega/usr/bin
/tmp/SBo/package-xapian-omega/usr/doc
/tmp/SBo/package-xapian-omega/usr/doc/xapian-omega-1.2.4
/tmp/SBo/package-xapian-omega/usr/lib64
/tmp/SBo/package-xapian-omega/usr/lib64/xapian-omega
/tmp/SBo/package-xapian-omega/usr/lib64/xapian-omega/bin
/tmp/SBo/package-xapian-omega/usr/man
/tmp/SBo/package-xapian-omega/usr/man/man1
/tmp/SBo/package-xapian-omega/usr/share
/tmp/SBo/package-xapian-omega/usr/share/omega

Importantly /tmp/SBo/package-xapian-omega/var/lib/omega/templates/ and
contents is missing.  Less importantly
/tmp/SBo/package-xapian-omega/usr/share/vim/vim72 and content is missing.
Perhaps trivially (I presume initially empty) directories are missing:
/tmp/SBo/package-xapian-omega/var/lib/omega/cdb,
/tmp/SBo/package-xapian-omega/var/lib/omega/data and
/tmp/SBo/package-xapian-omega/var/log/omega.  

Secondly, there are 38 .png files in the build directory, in
/tmp/SBo/xapian-omega-1.2.4/images.  Are these required on the target system
or are they just part of the build system?

I can, of course, script around these issues but:
 a) have I understood what is required?
 b) is there a defect in the build system?

Best

Charles   





Best

Charles




More information about the Xapian-devel mailing list