Re: How to make contrib/sepgsql on Ubuntu Maverick ?

Lists: pgsql-hackers
From: Vladimir Kokovic <vladimir(dot)kokovic(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: How to make contrib/sepgsql on Ubuntu Maverick ?
Date: 2011-02-05 05:58:31
Message-ID: AANLkTim+KkqxmvZf4iujT3CO01U2wJGdEPwAmGzw4GN4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

My build script:
-------------------------------------------------
#!/bin/sh
set -v
set -e
cd /media/sda5/postgresql-9.1devel/build
export CFLAGS="-g3 -gdwarf-2"
../../tmp/postgresql-git/postgresql/configure
'--srcdir=../../tmp/postgresql-git/postgresql' '--enable-cassert' \
'--enable-nls' '--enable-integer-datetimes' '--with-perl' '--with-python'
'--with-tcl' '--with-krb5' '--with-openssl' \
'--enable-thread-safety' '--with-ldap' '--with-gssapi' '--with-pam'
'--with-libxml' '--with-libxslt' '--with-selinux' \
'--prefix=/media/sda5/postgresql-9.1devel/20110204' > configure-out1.log
2>&1
make world > make-out1.log 2>&1
make install-world > make-install-out1.log 2>&1
exit 0
--------------------------------------------------------

tail make-out1.log:
------------------------
make -C sepgsql all
make[2]: Entering directory
`/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
sed 's,MODULE_PATHNAME,$libdir/sepgsql,g'
/media/sda5/postgresql-9.1devel/build/../../tmp/postgresql-git/postgresql/contrib/sepgsql/
sepgsql.sql.in >sepgsql.sql
make -f /usr/share/selinux/devel/Makefile sepgsql-regtest.pp
make[3]: Entering directory
`/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
make[3]: /usr/share/selinux/devel/Makefile: No such file or directory
make[3]: *** No rule to make target `/usr/share/selinux/devel/Makefile'.
Stop.
make[3]: Leaving directory
`/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
make[2]: *** [sepgsql-regtest.pp] Error 2
make[2]: Leaving directory
`/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
make[1]: *** [all-sepgsql-recurse] Error 2
make[1]: Leaving directory `/media/sda5/postgresql-9.1devel/build/contrib'
make: *** [world-contrib-recurse] Error 2

Best regards,
Vladimir Kokovic, DP senior, Belgrade, Serbia


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Vladimir Kokovic <vladimir(dot)kokovic(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to make contrib/sepgsql on Ubuntu Maverick ?
Date: 2011-02-06 22:03:06
Message-ID: 4D4F1A9A.1030403@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On 02/05/2011 12:58 AM, Vladimir Kokovic wrote:
>
> make -C sepgsql all
> make[2]: Entering directory
> `/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
> sed 's,MODULE_PATHNAME,$libdir/sepgsql,g'
> /media/sda5/postgresql-9.1devel/build/../../tmp/postgresql-git/postgresql/contrib/sepgsql/sepgsql.sql.in
> <http://sepgsql.sql.in> >sepgsql.sql
> make -f /usr/share/selinux/devel/Makefile sepgsql-regtest.pp
> make[3]: Entering directory
> `/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
> make[3]: /usr/share/selinux/devel/Makefile: No such file or directory
> make[3]: *** No rule to make target
> `/usr/share/selinux/devel/Makefile'. Stop.
> make[3]: Leaving directory
> `/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
> make[2]: *** [sepgsql-regtest.pp] Error 2
> make[2]: Leaving directory
> `/media/sda5/postgresql-9.1devel/build/contrib/sepgsql'
> make[1]: *** [all-sepgsql-recurse] Error 2
> make[1]: Leaving directory `/media/sda5/postgresql-9.1devel/build/contrib'
> make: *** [world-contrib-recurse] Error 2

Yeah, this bit of the Makefile looks bogus:

sepgsql-regtest.pp: sepgsql-regtest.te
$(MAKE) -f $(DESTDIR)/usr/share/selinux/devel/Makefile $@

Shouldn't configure be working out the location of this Makefile and
setting a variable accordingly?

I'm trying to work out a sane way to come up with buildfarm coverage of
this module. I'm glad somebody at least is testing it.

cheers

andrew


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Vladimir Kokovic <vladimir(dot)kokovic(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, KaiGai Kohei <kaigai(at)kaigai(dot)gr(dot)jp>
Subject: Re: How to make contrib/sepgsql on Ubuntu Maverick ?
Date: 2011-02-07 05:16:27
Message-ID: AANLkTikeDtkgy8osj4HH_H33ugjHsPtEUw7dSS70NNA7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Sun, Feb 6, 2011 at 5:03 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Yeah, this bit of the Makefile looks bogus:
>
>   sepgsql-regtest.pp: sepgsql-regtest.te
>        $(MAKE) -f $(DESTDIR)/usr/share/selinux/devel/Makefile $@
>

I agree. That looks bogus. KaiGai?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company