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.
On Tue, Aug 24, 2010 at 11:16 PM, Nathan O <ndowens.aur@gmail.com> 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
On Wed, Aug 25, 2010 at 3:00 AM, Nathan O <ndowens.aur@gmail.com> wrote:
On Tue, Aug 24, 2010 at 11:16 PM, Nathan O <ndowens.aur@gmail.com> 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
On 25/08/10 10:01, Nathan O wrote:
On Wed, Aug 25, 2010 at 3:00 AM, Nathan O<ndowens.aur@gmail.com> wrote:
On Tue, Aug 24, 2010 at 11:16 PM, Nathan O<ndowens.aur@gmail.com> 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.
On Wed, Aug 25, 2010 at 4:07 AM, Nathan Wayde <kumyco@konnichi.com> wrote:
On 25/08/10 10:01, Nathan O wrote:
On Wed, Aug 25, 2010 at 3:00 AM, Nathan O<ndowens.aur@gmail.com> wrote:
On Tue, Aug 24, 2010 at 11:16 PM, Nathan O<ndowens.aur@gmail.com> 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
On 08/25/2010 11:34 AM, Nathan O wrote:
On Wed, Aug 25, 2010 at 4:07 AM, Nathan Wayde<kumyco@konnichi.com> wrote:
On 25/08/10 10:01, Nathan O wrote:
On Wed, Aug 25, 2010 at 3:00 AM, Nathan O<ndowens.aur@gmail.com> wrote:
On Tue, Aug 24, 2010 at 11:16 PM, Nathan O<ndowens.aur@gmail.com> 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.
On 25/08/10 10:34, Nathan O wrote:
On Wed, Aug 25, 2010 at 4:07 AM, Nathan Wayde<kumyco@konnichi.com> wrote: [...] I'll try again tomorrow, though don't know how much luck I will have then
I took a closer look and noticed the sed line used single quote as opposed to double so ignore my comment about that, in either case it was unneeded as the default for ${exec_prefix} is already ${prefix} here is a working build function to get you going. it now runs but you'll till need to take care of the group business, you'll see the error when you start the daemon. other than the fact that it runs i don't know if it works as i don't even know what BES is. build() { install -m755 -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} export FC=gfortran F77=gfortran sed -ie 's|/init.d||g' besd.in sed -ie 's|${prefix}/var|${localstatedir}|g' server/besctl.in ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make || return 1 make DESTDIR=${pkgdir} install install -m755 -D ${pkgdir}/usr/bin/besd ${pkgdir}/etc/rc.d/besd }
On Wed, Aug 25, 2010 at 5:59 AM, Nathan Wayde <kumyco@konnichi.com> wrote:
On 25/08/10 10:34, Nathan O wrote:
On Wed, Aug 25, 2010 at 4:07 AM, Nathan Wayde<kumyco@konnichi.com> wrote: [...]
I'll try again tomorrow, though don't know how much luck I will have then
I took a closer look and noticed the sed line used single quote as opposed to double so ignore my comment about that, in either case it was unneeded as the default for ${exec_prefix} is already ${prefix}
here is a working build function to get you going. it now runs but you'll till need to take care of the group business, you'll see the error when you start the daemon. other than the fact that it runs i don't know if it works as i don't even know what BES is.
build() { install -m755 -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} export FC=gfortran F77=gfortran sed -ie 's|/init.d||g' besd.in sed -ie 's|${prefix}/var|${localstatedir}|g' server/besctl.in ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make || return 1 make DESTDIR=${pkgdir} install install -m755 -D ${pkgdir}/usr/bin/besd ${pkgdir}/etc/rc.d/besd }
I am trying it, I have never had this much of an issue with a package
On Wed, Aug 25, 2010 at 12:30 PM, Nathan O <ndowens.aur@gmail.com> wrote:
On Wed, Aug 25, 2010 at 5:59 AM, Nathan Wayde <kumyco@konnichi.com> wrote:
On 25/08/10 10:34, Nathan O wrote:
On Wed, Aug 25, 2010 at 4:07 AM, Nathan Wayde<kumyco@konnichi.com> wrote: [...]
I'll try again tomorrow, though don't know how much luck I will have then
I took a closer look and noticed the sed line used single quote as opposed to double so ignore my comment about that, in either case it was unneeded as the default for ${exec_prefix} is already ${prefix}
here is a working build function to get you going. it now runs but you'll till need to take care of the group business, you'll see the error when you start the daemon. other than the fact that it runs i don't know if it works as i don't even know what BES is.
build() { install -m755 -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} export FC=gfortran F77=gfortran sed -ie 's|/init.d||g' besd.in sed -ie 's|${prefix}/var|${localstatedir}|g' server/besctl.in ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make || return 1 make DESTDIR=${pkgdir} install install -m755 -D ${pkgdir}/usr/bin/besd ${pkgdir}/etc/rc.d/besd }
I am trying it, I have never had this much of an issue with a package
I have orphaned the package, nothing seems to work. Somebody will probably have a better chance at it. It seems to be the way that the software is written and I don't know programming languages such as C to understand exactly what is causing it. Thanks
On 08/25/2010 11:01 AM, Nathan O wrote:
On Wed, Aug 25, 2010 at 3:00 AM, Nathan O<ndowens.aur@gmail.com> wrote:
On Tue, Aug 24, 2010 at 11:16 PM, Nathan O<ndowens.aur@gmail.com> 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
In the ./configure line, remove all the $pkgdir prefixes; the configure script defines the environment of the application, not the installation directories; it should work fine then. Andrea
participants (3)
-
Andrea Fagiani
-
Nathan O
-
Nathan Wayde