Coccinelle Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: elfring@users.sourceforge.net (SF Markus Elfring)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Handling of sub-packages by autoconf interfaces
Date: Fri, 4 Sep 2015 08:00:43 +0200	[thread overview]
Message-ID: <55E9338B.2040106@users.sourceforge.net> (raw)
In-Reply-To: <20150903140906.GA9379@pl-59055.rocqadm.inria.fr>

> The tool is distributed with the libraries it depends on
> (they are provided as bundles).

This approach is generally fine in principle.


> For each dependency, coccinelle's configure script checks whether the
> library is already installed. If not, the system is prepared to use the
> bundled version.

The configuration interface needs also to be designed in a way so that
a software builder can select the preferred variant.


> This approach does not seem very satisfactory to me.

Interesting ?


> For a start, I find it cumbersome to provide the dependencies as bundles

Is it usual that a working version of a needed software component
is distributed together with your evolving tool?


> but I'm not the person making the decisions.

Would any more maintainers like to share their experiences?


> However, any opinion or pointer about software bundling their dependencies,
> pros and cons and the techniques used to do so would be warmly appreciated.

I assume that you are more looking for general solutions which can make
the involved software management a bit easier and safer.


> Then, assuming we continue to bundle the dependencies, it seems to me
> that it would be more coherent to have the configure script of each
> required bundle run by the tool's main configure script.

You can call another configuration script already if a bundle provides one.


> I am aware of the AC_CONFIG_SUBDIRS macro, but this seems a bit limited to me.
> For instance it means that the sub-package's configure may find a different
> compiler to use than the one found by the main conigure, which is not good.

Would you like to revive discussions around an issue which is described in
a similar way in the article "Autoconf: AC_CONFIG_SUBDIRS With Custom Flags
for Subprojects" by Clemens Lang?
https://neverpanic.de/blog/2014/04/10/autoconf-ac-config-subdirs-with-custom-flags-for-subprojects/


> One other issue is that we bundle the dependencies as .tar.gz archives
> and we would like to be able to extract the archives only for those
> dependencies that will really be needed (because they are not already
> installed on the system).

Did we stumble on similar software management challenges often enough already?

Do any "problems" come from design details like the following?
* How much control have you got on the bundle format for each item?

* Do the involved data formats support the determination of dependencies
  without unpacking the available archives completely?


> Can this be achieved somehow with autoconf?

Partly, yes.

The autoconf software is reusing the programming language "M4".
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Autoconf-Language.html

It can be extended with libraries as usual.
https://www.gnu.org/software/autoconf-archive/

Regards,
Markus

       reply	other threads:[~2015-09-04  6:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150903140906.GA9379@pl-59055.rocqadm.inria.fr>
2015-09-04  6:00 ` SF Markus Elfring [this message]
     [not found] ` <55E98987.9010300@redhat.com>
     [not found]   ` <20150904122620.GA8717@pl-59055.rocqadm.inria.fr>
2015-09-04 14:15     ` [Cocci] Handling of sub-packages by autoconf interfaces SF Markus Elfring
     [not found]     ` <D88E6E9B-6C74-4B49-BCDB-14BA002C85BF@etr-usa.com>
     [not found]       ` <20150904184647.GA8675@pema>
2015-09-04 19:05         ` SF Markus Elfring

Reply instructions:

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

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

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55E9338B.2040106@users.sourceforge.net \
    --to=elfring@users.sourceforge.net \
    --cc=cocci@systeme.lip6.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox