pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Raiskup <praiskup@redhat.com>
To: Craig Ringer <craig@2ndquadrant.com>
To: Dave Cramer <pg@fastcrypt.com>
To: List <pgsql-jdbc@postgresql.org>
To: Pavel Kajaba <pkajaba@redhat.com>
To: hhorak@redhat.com
Cc: Vitalii Tymchyshyn <vit@tym.im>
Cc: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Subject: Re: Complicated re-distribution of pgjdbc the "open source way"
Date: Tue, 22 Mar 2016 12:48:20 +0100
Message-ID: <3498474.iS0Ea9eYHK@nb.usersys.redhat.com> (raw)
In-Reply-To: <CAMsr+YG5s+GUMd1PxhCa4qRp75cctmN__jcKYRJ5s=FYSwtRfw@mail.gmail.com>
References: <2562462.qBr8q3cvoq@nb.usersys.redhat.com>
	<2432316.E9y0GgTWSA@nb.usersys.redhat.com>
	<CAMsr+YG5s+GUMd1PxhCa4qRp75cctmN__jcKYRJ5s=FYSwtRfw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On Thursday 10 of March 2016 22:08:18 Craig Ringer wrote:
> > thanks for all your good comments!  This is definitely the preferred way
> > to go, Allow me some time to process this, I'll update this thread as soon
> > as possible.
>
> Cool.
> 
> It might be a good idea to speak to maintainers of some of the Maven-based
> Fedora packages, as they'll probably be able to offer some hints/guidance
> on the details when it comes to creating profiles, conditionally compiling
> files, etc.
> 
> I haven't verified that you can use maven profiles to avoid the OSGi stuff,
> but it'll certainly do the job for Waffle-JNA and the couple of isolated
> files in PgJDBC that use it.

I'm getting lost TBH, it all sounds like some magic to me (taking into
account that I want to do the thing the right way, which means not
breaking actual code and conditionally allow build on offline linux).

There are two WIP testing projects/branches I prepared with kind help of
our Java guys:

  https://github.com/praiskup/pgjdbc-parent-poms/commits/pgjdbc-linux-fixes
  https://github.com/praiskup/pgjdbc/commits/pgjdbc-linux-fixes

Note that the patches are not final and are somehow destructive, which is
definitely not on schedule for upstream proposal -- I just need to present
where I feel blocked.

When using those changes -- after the parent-poms is built and installed
into ~/.m2, after some dependencies for osgi are installed from maven (I'm
not yet ready to fully avoid osgi code - starting with waffle as you said)
I'm able to "start" compiling with:

  $ python3 /usr/share/java-utils/mvn_build.py \
      -- -DwaffleEnabled=false -Dmaven.test.skip=true

Which is equivalent to:

  $ xmvn --batch-mode --offline -DwaffleEnabled=false \
    -Dmaven.test.skip=true verify org.fedoraproject.xmvn:xmvn-mojo:install \
    org.apache.maven.plugins:maven-javadoc-plugin:aggregate \
    org.fedoraproject.xmvn:xmvn-mojo:builddep

This fails with:
[ERROR] Failed to execute goal com.igormaznitsa:jcp:6.0.1:preprocess
(preprocessSources) on project postgresql: Can't find a source directory
[/home/praiskup/rh/projects/pgjdbc/pgjdbc/target/generated-sources/annotations]
-> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed
to execute goal com.igormaznitsa:jcp:6.0.1:preprocess (preprocessSources)
on project postgresql: Can't find a source directory
[/home/praiskup/rh/projects/pgjdbc/pgjdbc/target/generated-sources/annotations]

The error log is attached.  Seems like something wrong is with
preprocessor.  Is anybody able to help a bit?  It is quite exhausting and
I start to think that, if we want to have it upstream, we need to have a
shell script or Makefile (that would be is more flexible) :( and I'm not
sure whether that will be friendly with igormaznitsa:jcp thing.
Thoughts?

Thanks,
Pavel

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

Attachments:

  build.log.xz (application/x-xz, 42.1K) download

view thread (40+ messages)  latest in thread

Message-ID: <3498474.iS0Ea9eYHK@nb.usersys.redhat.com>
Permalink:  ../3498474.iS0Ea9eYHK@nb.usersys.redhat.com/
Also on:    postgresql.org/message-id/3498474.iS0Ea9eYHK@nb.usersys.redhat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: praiskup@redhat.com, craig@2ndquadrant.com, pg@fastcrypt.com, pkajaba@redhat.com, hhorak@redhat.com, vit@tym.im, sitnikov.vladimir@gmail.com
  Subject: Re: Complicated re-distribution of pgjdbc the "open source way"
  In-Reply-To: <3498474.iS0Ea9eYHK@nb.usersys.redhat.com>
  References: <2562462.qBr8q3cvoq@nb.usersys.redhat.com> <2432316.E9y0GgTWSA@nb.usersys.redhat.com> <CAMsr+YG5s+GUMd1PxhCa4qRp75cctmN__jcKYRJ5s=FYSwtRfw@mail.gmail.com> <3498474.iS0Ea9eYHK@nb.usersys.redhat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox