On 08/25/2010 11:34 AM, Nathan O wrote:
On Wed, Aug 25, 2010 at 4:07 AM, Nathan Wayde<[email protected]> wrote:
On 25/08/10 10:01, Nathan O wrote:
On Wed, Aug 25, 2010 at 3:00 AM, Nathan O<[email protected]> wrote:
On Tue, Aug 24, 2010 at 11:16 PM, Nathan O<[email protected]>
wrote:
I have almost got BES packaged, the only problem is that namcap gives
me:
bes W: Referenced library 'libbes_dispatch.so.8' is an uninstalled
dependency
bes W: Referenced library 'libbes_ppt.so.4' is an uninstalled
dependency
bes W: Referenced library 'libbes_xml_command.so.1' is an uninstalled
dependency
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/lib/bes/libbes_xml_command.so.1.0.3')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/lib/bes/libbes_ppt.so')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/lib/bes/libbes_ppt.so.4.0.3')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/lib/bes/libbes_ppt.so.4')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/lib/bes/libbes_xml_command.so')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/lib/bes/libbes_xml_command.so.1')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/bin/besstandalone')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/bin/bescmdln')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/bin/besdaemon')
bes E: Insecure RPATH '/build/pkg/usr/lib/bes' in file
('usr/bin/beslistener')
I figured out how to fix the rpath issue with cmake, but this one uses
./configure and make system.
Well I fixed the issues with namcap, though it doesn't run correctly :S
I
uploaded it to AUR if you want to check it out. When you try to do
/etc/rc.d/bes start, it was to find the besctl in /aur/pkg/usr/bin/besctl
Is anybody interested in taking BES over? I fixed the compile issue, but
not
matter what I try to do to get it to run correctly, it doesn't work.
Somebody else will probably have better luck then I am having :s
I only looked briefly at the pkgbuild but on the configure line
*=${pkgdir}* really stand out as being incorrect in most(if not all) cases
which would explain why /aur/pkg/usr/bin/besctl contains `/aur/pkg` i.e
${pkgdir}
additionally on the sed line, ${exec_prefix} and ${prefix} are undefined as
far as i can see so it's unlikely to work the way you intend it to.
I'll try again tomorrow, though don't know how much luck I will have then
Actually, there were a few other quirks :
- license variable was not an array
- the sed line was useless, as far as I'm aware
- the make install line should read DESTDIR=$pkgdir, not
prefix=$pkgdir, for the same reason as the ./configure
the PKGBUILD should look something like the attached one.
#Maintainer: Nathan O <ndowens.aur at gmail dot com>
pkgname=bes
pkgver=3.8.4
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="A high-performance back-end server software framework that allows data
providers more flexibility in providing end users views of their data"
url="http://www.opendap.org/download/BES.html"
license=("LGPL")
depends=('libxml2' 'bzip2' 'openssl' 'bash')
options=('!libtool')
source=(http://www.opendap.org/pub/source/$pkgname-$pkgver.tar.gz
sslserver.patch sslclient.patch)
md5sums=('18d182bdcc266243908e9202511b0450'
'f9b2826276040c95a5a32afc7a3352e1'
'f5e981d9c0cb54c9133d07ab5d84e556')
build() {
install -d ${pkgdir}/etc/rc.d
cd ${srcdir}/${pkgname}-${pkgver}/ppt
patch -Np0 -i ${srcdir}/sslclient.patch
patch -Np0 -i ${srcdir}/sslserver.patch
cd ${srcdir}/${pkgname}-${pkgver}
FC=gfortran F77=gfortran
./configure --prefix=/usr/ --sysconfdir=/etc --localstatedir=/var
make
make DESTDIR=${pkgdir} install
install -D ${pkgdir}/usr/bin/besd ${pkgdir}/etc/rc.d/besd
}