You are not logged in.

#1 2018-02-03 16:29:30

venky80
Member
Registered: 2007-05-13
Posts: 1,002

[REQUEST] MADlib Postgres extension

i think they only have rpm packages
http://madlib.apache.org/download.html

Last edited by venky80 (2018-02-03 18:48:47)


Acer Aspire V5-573P Antergos KDE

Offline

#2 2018-02-03 16:55:18

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [REQUEST] MADlib Postgres extension

But they do provide source code. Have you tried compiling that?

Offline

#3 2018-02-03 18:46:50

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: [REQUEST] MADlib Postgres extension

sorry getting into Arch again after years...would that be same as building a PKGBUILD?


Acer Aspire V5-573P Antergos KDE

Offline

#4 2018-02-03 18:50:57

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [REQUEST] MADlib Postgres extension

Not quite. You need to create the PKGBUILD first before you can build with it.

https://wiki.archlinux.org/index.php/Creating_packages


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2018-02-04 17:47:48

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [REQUEST] MADlib Postgres extension

@slithery and @x33a this might not be a good candidate for a first PKGBUILD it has at least the following issues:
Requires python to be python2.
Uses bundled components some even if supplied by the system which would result in a package with parts under up to five separate licences.
Fails to build due to missing boost headers either using the bundled boost which did not seem to be built in time or the system supplied boost.

Offline

#6 2018-02-11 17:16:12

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: [REQUEST] MADlib Postgres extension

hmm so this is a lost cause I am assuming smile Maybe that is why they only have rpm for centOS and Redhat


Acer Aspire V5-573P Antergos KDE

Offline

#7 2018-02-11 17:49:48

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [REQUEST] MADlib Postgres extension

Not neccasrily a lost cuase but I suspect it will need input from either upstream or someone with familiarity of cmake.
This is the PKGBUILD I was working with,  very much a work in progress.  Sorry I did not preserve the makepkg logs

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Your Name <youremail@domain.com>
pkgname=madlib
pkgver=1.13
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="http://madlib.apache.org"
license=('APACHE')
groups=()
depends=('postgresql' 'boost' 'python2')
makedepends=('cmake')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(https://www.apache.org/dist/madlib/1.13/apache-$pkgname-$pkgver-src.tar.gz{,.asc})
sha256sums=('e266b40b140ecf120aa73f9633f105cb6359e4e0228d2c1a1d7e5af53ad89a43'
            'SKIP')
validpgpkeys=('BBEDA7B5F336D516B34ADE0CFC0662F257325522') #Edward Bartolo Espino (CODE SIGNING KEY) <espino@apache.org>

prepare() {
	mkdir path
	ln -s /usr/bin/python2 path/python
}

build() {
	export PATH="$srcdir/path:$PATH"
	cd "apache-$pkgname-$pkgver-src"
	mkdir -p build
	cd build
	cmake ..
#	./configure
	make VERBOSE=1
}

#check() {
#	cd "$pkgname-$pkgver"
#	make -k check
#}

package() {
	cd "$pkgname-$pkgver"
#	make DESTDIR="$pkgdir/" install
}

Offline

Board footer

Powered by FluxBB