On 2/10/14, 10:08 , Fabrice Jammes wrote:
> Hello,
>
> The issues faced while packaging Qserv dependencies with eupspkg are
> discussed here :
> https://dev.lsstcorp.org/trac/wiki/db/Qserv/Packaging/eupspkg
>
Hi Fabrice,
Thanks for the page, it's very helpful. I think I see three issues there:
* The "git checkout" bug -- I believe I already fixed that on the
'eupspkg' branch in my fork of EUPS on githup. I'll ask you to try it
out when I'm done with a few other changes there (likely today).
* The python 2.6 vs. 2.7 issue.
This is a thornier one. I understand the desire not to require a
version of python higher than what's really needed, but would it be
very inconvenient to require 2.7 for qserv as well as the rest of the
stack? I think most distros other than RHEL6 are already on 2.7, and
when RHEL7 is out this year it will be as well. The downside is that
for RHEL6, where most of your development takes place, you'd have to
install a third-party python (e.g., Anaconda, which will be provided
by EUPS as well)
* mysql-server vs. mysql-client
I think it should be possible to build two packages -- the server and
the client one. That's how RPMs are organized on RedHat's distros
(though one SRPM builds both the -server and -client binary RPM, but
that's a detail). I'll see how to do it.
PS: As a heads up, after the January discussion with the Princeton
group, I've slightly changed the format of ./ups/eupspkg:
* The file is now called ./ups/eupspkg.sh, and it gets sourced by the
$EUPS_DIR/lib/eupspkg.sh file, instead of the other way around. That
means there's no need for lots of boilerplate code that was
previously required, i.e.:
Old ./ups/eupspkg:
================================================================
#!/bin/bash
. "$EUPS_DIR/lib/eupspkg.sh"
# ---- customizations start here ----
CONFIGURE_OPTIONS="--prefix=$PREFIX --disable-shared"
export CFLAGS="$CFLAGS -fPIC"
# ---- customizations end here ----
"$@"
================================================================
New ./ups/eupspkg.sh:
================================================================
# EupsPkg config file. Sourced by 'eupspkg'
CONFIGURE_OPTIONS="--prefix=$PREFIX --disable-shared"
export CFLAGS="$CFLAGS -fPIC"
================================================================
Once Robert merges those changes, you'll need to rename/modify your
existing ./ups/eupspkg files to conform to the new format. Sorry for the
inconvenience; I think it's worth doing it -- less boilerplate, less
chance for errors!
PPS: Overall, this is great! I think we'll soon be able to have a
unified repo and buildbot for both qserv and the rest of DM!
Cheers,
--
Mario Juric,
Data Mgmt. Project Scientist, Large Synoptic Survey Telescope
Web : http://research.majuric.org Phone : +1 617 744 9003
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1
|