From MAILER-DAEMON Tue Jun 06 11:23:24 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dIGKK-0001be-GJ
	for mharc-autoconf@gnu.org; Tue, 06 Jun 2017 11:23:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56539)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <catonano@gmail.com>) id 1dIBgK-0005r9-Hf
	for autoconf@gnu.org; Tue, 06 Jun 2017 06:25:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <catonano@gmail.com>) id 1dIBgJ-0003Nj-Ho
	for autoconf@gnu.org; Tue, 06 Jun 2017 06:25:48 -0400
Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:38287)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <catonano@gmail.com>) id 1dIBgJ-0003NO-Au
	for autoconf@gnu.org; Tue, 06 Jun 2017 06:25:47 -0400
Received: by mail-wm0-x22c.google.com with SMTP id n195so97298622wmg.1
	for <autoconf@gnu.org>; Tue, 06 Jun 2017 03:25:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:from:date:message-id:subject:to;
	bh=KCJkfkK7NzJWtTOBepaXS2b+aSKfNbjHTDGy/Hls9Wc=;
	b=rYkvRx4OvCYEN6pgQD1pRAwq17aVIG5ZU1WBqaVg+zoPCl2wk1MAQV7w+7Ka2dHQXF
	ZmGoxn5aQl8OFebtKDghlo7C0fNHaacxGGzvXrQ3Lx1Y2G76tWWuftaoa/JsAtKRV6Pr
	dhqOAQx+yZ7BzNq0buiLZdiCcRsDqYeeDTRoVstuSD45JRwc615RklLUHZazBTamR2eL
	tbfIxbYWCglSIyEPTWJ25Aei2cwc8EhkNY5J+xO2BE3nSISKQf+peepv0R/h14qwWg8j
	RLseZGnvWGmIIsgBRwAMB5n/B1L0s7biwnj5gdUSgvl8p6xOLLSpH3GZfQ1eFk8o/5Y0
	dheA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=KCJkfkK7NzJWtTOBepaXS2b+aSKfNbjHTDGy/Hls9Wc=;
	b=GtqqpexeMfxvY7IL672xqmN01d03EtVfuoyvGrCJPSMnERTgz+m6Xz1zaVnpxB5Ayo
	hyIozBfsha+ow2ToKbG5FGR359X+IELHdyJmL7bNMOMfvB1mMBn9P0287SZPHrCTE5Oz
	5IrNO/Bo8hlMaZEw48QIh80R0JxIeSt/GUFlH5dMKmyRNXeR8ys0QKAvZmjzlZJZICOd
	mm7ql+f651MHlXraupqQz5fDzzPufPoIG/IzS/kMQUUG2cK8UGHrpdSIMZwOQEpwmO2t
	CO0tjBxHub2nxycQbmB/YTGAHPBi8hp/fjlq7gGSy+EhQtN1qPMVpckrnMAf4Tqeln+9
	kujw==
X-Gm-Message-State: AODbwcDCfM7iZ8UlEOgZLvluTPgKWOLK94lccHH/iiz9U817A3JJ3aQy
	xUtZP0/4En2mNpbQG/WDGkpyvPvRN821
X-Received: by 10.80.160.231 with SMTP id 94mr19324581edo.173.1496744744611;
	Tue, 06 Jun 2017 03:25:44 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.131.4 with HTTP; Tue, 6 Jun 2017 03:25:44 -0700 (PDT)
From: Catonano <catonano@gmail.com>
Date: Tue, 6 Jun 2017 12:25:44 +0200
Message-ID: <CAJ98PDyQWUZhE1LKMCwK317hvfCqw8Wf7Oq9hfO8oO9wfS4guA@mail.gmail.com>
Subject: absolute beginner
To: autoconf@gnu.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:400c:c09::22c
X-Mailman-Approved-At: Tue, 06 Jun 2017 11:23:22 -0400
Content-Type: text/plain; charset="UTF-8"
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Jun 2017 10:25:49 -0000

Hello,

I'd like to create a Guile Scheme project linking to a C library, Freexl.

I copied guile-gcrypt, it does exactly that

Then I changed all thhe occurrences of "gcrypt" to "freexl"

But when I run configure in guile-gcrypt I get

checking for guile-config... /home/me/.guix-profile/bin/guile-config
checking for libgcrypt-config...
/gnu/store/1y54p19lvz3rh6a5dyynnffn9dbal2li-profile/bin/libgcrypt-config
checking libgcrypt's library directory...
/gnu/store/hag795ji8p9vqikwp8cibfibpsa39s3n-libgcrypt-1.7.6/lib
checking for libgcrypt shared library name...
/gnu/store/hag795ji8p9vqikwp8cibfibpsa39s3n-libgcrypt-1.7.6/lib/libgcrypt


As you can see it checks that "...bin/libgcrypt-config" is present AND it
checks the "shared library name"


But when I run it in my guile-freexl II get

checking for guile-config... /home/me.guix-profile/bin/guile-config
checking for freexl shared library name...
/gnu/store/13p9jpf8gp3mg414az1dsf59vw2hyyw2-profile/lib/libfreexl

as you can see it DOESN'T look for any ...bin/freexl-config AND it doesn't
look for the library shared name

why ?

It is substantially the same repo, I cloned it and changed the strings
"gcrypt" to "freexl"

That's all I did

Thanks in advance

From MAILER-DAEMON Wed Jun 07 01:29:50 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dITXS-0000pR-2d
	for mharc-autoconf@gnu.org; Wed, 07 Jun 2017 01:29:50 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59935)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <marco.maggi-ipsu@poste.it>) id 1dITXQ-0000pK-3z
	for autoconf@gnu.org; Wed, 07 Jun 2017 01:29:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <marco.maggi-ipsu@poste.it>) id 1dITXN-0002oJ-0J
	for autoconf@gnu.org; Wed, 07 Jun 2017 01:29:48 -0400
Received: from relay-avs3.poste.it ([62.241.5.78]:36884
	helo=relay-out.poste.it) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <marco.maggi-ipsu@poste.it>) id 1dITXM-0002n5-KS
	for autoconf@gnu.org; Wed, 07 Jun 2017 01:29:44 -0400
X-Junkmail-Premium-Raw: score=8/50, refid=2.7.2:2017.6.7.45116:17:8.317, ip=,
	rules=__HAS_X_LOOP, 
	__HAS_X_MAILER, __IN_REP_TO, __REFERENCES, __TO_MALFORMED_2, __TO_NAME, 
	__TO_NAME_DIFF_FROM_ACC, __HAS_CC_HDR, LEO_OBFU_SUBJ_RE,
	__BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END,
	__HAS_FROM, __PHISH_FROM2, __PHISH_FROM_P, __HAS_MSGID, __SANE_MSGID,
	__MIME_VERSION, __CT, __CT_TEXT_PLAIN, __SUBJ_ALPHA_NEGATE,
	__NO_HTML_TAG_RAW, BODYTEXTP_SIZE_400_LESS, BODY_SIZE_200_299,
	BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_P1, __MIME_TEXT_ONLY, HTML_00_01, 
	HTML_00_10, BODY_SIZE_5000_LESS, __PHISH_FROM1, IN_REP_TO, MSG_THREAD, 
	__TO_REAL_NAMES, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, __PHISH_FROM,
	NO_URI_FOUND, NO_CTA_URI_FOUND, BODY_SIZE_1000_LESS, BODY_SIZE_2000_LESS,
	SMALL_BODY, __MIME_TEXT_P, REFERENCES, NO_URI_HTTPS, BODY_SIZE_7000_LESS
Received: from governatore (93.148.3.5) by relay-out.poste.it (9.0.019.09-1)
	(authenticated as marco.maggi-ipsu@poste.it)
	id 59252966002EBFC4; Wed, 7 Jun 2017 07:29:41 +0200
Original-Original-Sender: marco.maggi-ipsu@poste.it
X-Loop: marco@maggi.it.invalid
X-Mailer: GNU Emacs
In-Reply-To: marco.maggi-ipsu@poste.it
	(catonano@gmail.com's message of "Tue, 6 Jun 2017 12:25:44 +0200")
References: <CAJ98PDyQWUZhE1LKMCwK317hvfCqw8Wf7Oq9hfO8oO9wfS4guA@mail.gmail.com>
To: Catonano <catonano@gmail.com>
Cc: autoconf@gnu.org
Subject: Re: absolute beginner
From: Marco Maggi <marco.maggi-ipsu@poste.it>
Date: Wed, 07 Jun 2017 07:30:39 +0200
Message-ID: <87efuwl5z4.fsf@poste.it>
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 62.241.5.78
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jun 2017 05:29:49 -0000

Catonano wrote:

> I'd like to create a Guile Scheme project linking to a C library, Freexl.

You should ask on the Guile  and maybe Guix mailing lists.  Also, nobody
can help you if you do not provide links to code that people can browse.
-- 
Marco Maggi


From MAILER-DAEMON Wed Jun 07 02:01:40 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dIU2F-0008AE-VR
	for mharc-autoconf@gnu.org; Wed, 07 Jun 2017 02:01:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35700)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <catonano@gmail.com>) id 1dIU2D-0008A5-Ry
	for autoconf@gnu.org; Wed, 07 Jun 2017 02:01:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <catonano@gmail.com>) id 1dIU2C-0001Oy-Jt
	for autoconf@gnu.org; Wed, 07 Jun 2017 02:01:37 -0400
Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:33502)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <catonano@gmail.com>) id 1dIU2C-0001Oq-CD
	for autoconf@gnu.org; Wed, 07 Jun 2017 02:01:36 -0400
Received: by mail-wm0-x230.google.com with SMTP id m7so31358986wmg.0
	for <autoconf@gnu.org>; Tue, 06 Jun 2017 23:01:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=n/mfTfuBasASBKQzI8kf2LkabaBlo8CIjwBdY5ZUdpM=;
	b=W5NqqcfjvKV9y40fGLFW79ZhmeyJXCz2wPc06wUW16CpIhxL/ocurcTKmaXbSyr0Rw
	kXRjeeDvZqkRnG+1p/eX4oVlQ6V9lcuMXa7ndPaNSJEQ86be+OxkB0EqR9WGy8Hlq7SY
	SzoHwRvEKtCfjsnJ0a/fbJKjUY9I8dUUxhO9U9QUePTPpMm0bKCRDXRWWn1THFHJQ+tz
	+vqLuDzZH26xEGKLJJr+rleibnf/9mBYY5O7YRnpLjcdk5gyr2aRlOu84CJcQe3tSNtm
	iM82k5umoH6Ugk0WpLXVseacFHu3ItG4EnnFWZfuxKLYBarFd4vT8gU+liC9KUDEG7U2
	VvzA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=n/mfTfuBasASBKQzI8kf2LkabaBlo8CIjwBdY5ZUdpM=;
	b=bnhkLAYtRKLAti8zzgUnI6Aw1x0wu0EZCbp5EA945PdlkRqKwTHFKBO3VcYqdxPXG+
	DfdvOqFrTDQ9GLLrF1mjMQ5WLJJUObWVENNO4PvI8s442GM0BZj+yz9knsmGqOMhTACm
	MzQREwXH8yscyJUOFvY2oUvAgJagzeOFcZZdLuvsi7do8E02i8MwFs6wte4pxCkbJ/tL
	vade/tboLi84KuHX97eDTE+hC3wYTELvXs2uklFqbL0OZ/0zzTH1UhRZZPewmN4eXNmm
	O8USBhJfZiOfpXh9ad/zan1r18quQOLQ0k8+5q1cjANHCV9QGlCRSOw/5LJiIXKDxwvN
	ysxQ==
X-Gm-Message-State: AODbwcDWMfQlX8DwRD5qO3cGBIBtsi44oGYx/RFZ65N206eMJx3Gv9IM
	G4e8z6vCWeB2fRI/OGXIi+SZdQB+lg==
X-Received: by 10.80.160.231 with SMTP id 94mr22570273edo.173.1496815295276;
	Tue, 06 Jun 2017 23:01:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.131.4 with HTTP; Tue, 6 Jun 2017 23:01:34 -0700 (PDT)
In-Reply-To: <87efuwl5z4.fsf@poste.it>
References: <CAJ98PDyQWUZhE1LKMCwK317hvfCqw8Wf7Oq9hfO8oO9wfS4guA@mail.gmail.com>
	<87efuwl5z4.fsf@poste.it>
From: Catonano <catonano@gmail.com>
Date: Wed, 7 Jun 2017 08:01:34 +0200
Message-ID: <CAJ98PDxqOtds2xsy6T0jfRqVvVv88QgcTbqGND-1L=7yrb7rSw@mail.gmail.com>
Subject: Re: absolute beginner
To: Marco Maggi <marco.maggi-ipsu@poste.it>
Cc: autoconf@gnu.org
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:400c:c09::230
Content-Type: text/plain; charset="UTF-8"
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jun 2017 06:01:38 -0000

2017-06-07 7:30 GMT+02:00 Marco Maggi <marco.maggi-ipsu@poste.it>:

> Catonano wrote:
>
> > I'd like to create a Guile Scheme project linking to a C library, Freexl.
>
> You should ask on the Guile  and maybe Guix mailing lists.  Also, nobody
> can help you if you do not provide links to code that people can browse.
> --
> Marco Maggi
>

thank you so much for your reply

This is my attempt (it doesn't find freexl)
 https://gitlab.com/humanitiesNerd/guile-freexl

And this is guile-gcrypt (it works like a charm)
https://notabug.org/cwebber/guile-gcrypt

From MAILER-DAEMON Wed Jun 07 10:20:53 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dIbpM-0007yZ-VC
	for mharc-autoconf@gnu.org; Wed, 07 Jun 2017 10:20:53 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48090)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <elfring@users.sourceforge.net>) id 1dIbpK-0007xb-E7
	for autoconf@gnu.org; Wed, 07 Jun 2017 10:20:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <elfring@users.sourceforge.net>) id 1dIbpF-00082T-Ee
	for autoconf@gnu.org; Wed, 07 Jun 2017 10:20:50 -0400
Received: from mout.web.de ([212.227.15.3]:65506)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <elfring@users.sourceforge.net>)
	id 1dIbpF-0007zN-4P
	for autoconf@gnu.org; Wed, 07 Jun 2017 10:20:45 -0400
Received: from [192.168.1.2] ([77.181.146.217]) by smtp.web.de (mrweb004
	[213.165.67.108]) with ESMTPSA (Nemesis) id 0M1DVw-1e7P3s1hTU-00tB4a
	for <autoconf@gnu.org>; Wed, 07 Jun 2017 16:20:36 +0200
To: autoconf@gnu.org
From: SF Markus Elfring <elfring@users.sourceforge.net>
Subject: Management for relative paths in global build system settings
Message-ID: <975a8096-2e9f-fd0b-3e77-71afed805b02@users.sourceforge.net>
Date: Wed, 7 Jun 2017 16:20:35 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
	Thunderbird/52.1.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:+1p/oI/MQcdNQtdJzfZt7a9SdZ8rgVs1EQtqRWFsoVSOchz6uZB
	flDIZiv//hVtm8UeBs3hQ0djcaaKuxZRDy1Hgh2StMtcdAS86jqYzh15VQoS1t0TP6XUaUy
	P4xtWBrOVqo/IaYItxZuDcQIs/83hjJFyKP3ooYe6MisH5QXBOWoOPXM0mBAzei3g5eI614
	VaUb1NYVYFgO0+SlRQ7Mg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:omJyicJiKi8=:v+dHYcubQWEOxtnOC1ISHg
	/PHK/vfFlulSxnWuxBq//ptADP+lh0832MPuxkcLis7diP98G5LsDRGSzErs3VhVf3N9PcFtR
	77kXnpithCjggBiGlnclJkzcuWtxZVTqHBu8gaw5KDdVOr328fNy5NJmq2bh5uNlmptU+a+Ti
	kK0nUAqkEYY4F0oNuV6WS95uwEV5JayM3VJJpHjxL4K3vVeflF+B45B2L35+ii1hJWPtDPQBW
	gJQdStdOnoYlvt9Z4ZCVJa75H6ZzDvBnHHM8IGmr95hyffDn9abPRl2EP241UUHJAHhTMkOt3
	6iCZqj4CdXBKHzerXUA7ePjS2UdkeLBe73R7paaZbFzTCnzLHJRhqleI0mQ4XD+dJOvTKyCiX
	DUwgogXR6FQSObaRwg2BB7BY3Xp/qnmPJJwNjIHZukrRzGvXZ5MUrd8IPfF9cWSZo98mQEBqm
	u7ZFmkFUOP5UUlccfwekgM8CRaRSOTH1SOE+SnEQpUnJcYwXcQ5J393mRJx7hyFf3PxW1d179
	r8tNPVjg+VWUTPAHTMWno67rq3gQT6WxWc3CUHJr/4g3COFCXBYL/aa1a32wpYL2grMFSOkWy
	pfswhQjCGSMfA+tDv2j8p4gp6g2HJmpaEfs2ffQ4e+Ya3yvhsHLEgZl1eFjRLJPdaWkhg7mp+
	K7efVQW0r1RMDD5hmYRmZCTL6kcCTTk1g9wxAvuEFZHHMedRnsv7F1V+MFKwjiUbYYOtuMler
	iNnKWkwPqTE5bv2ST+P4OWQM1aDPZOTajlC6atXw4wN+rkjTDWkMC3jS2WzPjCgf9t5Mv7+vE
	tTxoxFS
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 212.227.15.3
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jun 2017 14:20:51 -0000

Hello,

Software development projects can grow in the way that corresponding components
will be stored in several subdirectories. Such a project organisation has got
consequences on the management of some dependencies.

Now I am looking for advanced support by the Autoconf software infrastructure
(and related tools) once more.

* Macros like “AC_CONFIG_SUBDIR_CUSTOM” were developed a while ago.
  https://lists.gnu.org/archive/html/autoconf/2011-04/msg00006.html

* The components in these subdirectories will usually need some information
  also from the global build system settings. A portion of the involved
  configuration variables will eventually store relative paths.
  I imagine that desired data processing for them can trigger special
  development challenges then.
  How do you prefer to achieve consistent and safe access for paths across
  the directory hierarchy?

  Which programming languages would you try out to convert such data into
  absolute paths (for example)?

Regards,
Markus


From MAILER-DAEMON Tue Jun 13 08:29:13 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dKkwb-00068w-79
	for mharc-autoconf@gnu.org; Tue, 13 Jun 2017 08:29:13 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35057)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <noloader@gmail.com>) id 1dKkwZ-00068d-2R
	for autoconf@gnu.org; Tue, 13 Jun 2017 08:29:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <noloader@gmail.com>) id 1dKkwY-0001ww-As
	for autoconf@gnu.org; Tue, 13 Jun 2017 08:29:11 -0400
Received: from mail-ot0-x236.google.com ([2607:f8b0:4003:c0f::236]:34657)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <noloader@gmail.com>) id 1dKkwY-0001wX-4u
	for autoconf@gnu.org; Tue, 13 Jun 2017 08:29:10 -0400
Received: by mail-ot0-x236.google.com with SMTP id t31so86567660ota.1
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 05:29:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:reply-to:from:date:message-id:subject:to;
	bh=us1FfOLwXjTLby1VEQ36nptujRkEA3vgJ6vljXa1mJE=;
	b=a6U9N5S9IoZ1PEY5CixvcUoSRoUY8bj12BJvDtx39c3ysej1fvIPtMbC6jL8Dx47AI
	KZ3vB9VuGfRVDzoJUaZPDS+MmXzpy4dszKFMBS3YiTaNcGs57xMjDF3Q23oTnpTMJfnj
	nwIG/05uubkQmDodb7j3/7q+kCp2x+xf5EvLavmQnuiPn7a/lOc+i/LQYKSyhjVRVtFr
	Eizk4uRKYxcJtK5GwaXPYljSK4fNK//Fo9Lk03KaWhXR/yEs/DFSTAT3xAn+F5ZrRf6H
	fPI55hzhbyVfH+yR8BXHA1XlnfYleGFt7u1BytyinCMEL9UkYL3To8abNhYElUFmYPUj
	ajsg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:reply-to:from:date:message-id
	:subject:to;
	bh=us1FfOLwXjTLby1VEQ36nptujRkEA3vgJ6vljXa1mJE=;
	b=Yf1qnEcWylUvTN/2/uuHtcxXTS7Q0K8IO/RImiGF48bf1JcKii3Xl6Y9lDfGsTlwf3
	AxbduyxHnWPEAN33ybYH9t/yMaDBCLKjLzPevxiEm7ztbsi3pLpZxk+TtXABgjf3fgYq
	hO7OD3Cnop6N2raUFIypx3HeK8gX1c0rjD4CnkilEvuF6hvtdaHIEBjOxRW6fb6FcSl6
	Y0fQDs+wiEp9ZzThUAkwh32jtTFT/1YfdsL4So0w8EUwt9HzX/x2i/j4cA/4Hxy3WY7P
	cmPhnuq8x7/fly7npTnjYY4PCbtRe2rXPFIM3e/6AVt2f209NTZqEomIbQYdd9yWubVh
	Vp9A==
X-Gm-Message-State: AODbwcDuJpHVWf6Fa41C/bjvhEOHtkB8IzbiYGvc0lObBJ7/6BHc/f5e
	C0poiXr7WKm4Ia0VJ3z/iJzKJq7T4xEw
X-Received: by 10.157.33.108 with SMTP id l41mr28570930otd.171.1497356947707; 
	Tue, 13 Jun 2017 05:29:07 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.74.36.29 with HTTP; Tue, 13 Jun 2017 05:29:07 -0700 (PDT)
Reply-To: noloader@gmail.com
From: Jeffrey Walton <noloader@gmail.com>
Date: Tue, 13 Jun 2017 08:29:07 -0400
Message-ID: <CAH8yC8mmwSKyaSkOf9RgMpaCx3omXFupp=mFrw_FrnJ2b3vq=Q@mail.gmail.com>
Subject: Why doesn't Autotools makefile update Bash hash cache after install?
To: Autoconf <autoconf@gnu.org>
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4003:c0f::236
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jun 2017 12:29:12 -0000

Hi Everyone,

After performing a 'make install', the Bash shell could still use the
old program because the Bash hash cache was not updated for the
program. 'which' will show the expected program (say
/usr/local/bin/foo), but running 'foo' will result in the old program
(say /usr/bin/foo).

The results can be reproduced with a simple 'configure && make && sudo
make install'. There's nothing special going on. In fact, I suspect
this is probably the most common use case.

Why does Autotools produce a makefile which does _not_ update the
cache under Bash shells?

Jeff


From MAILER-DAEMON Tue Jun 13 08:40:21 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dKl7N-0000Un-K0
	for mharc-autoconf@gnu.org; Tue, 13 Jun 2017 08:40:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37241)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <zackw@panix.com>) id 1dKl7L-0000UU-IH
	for autoconf@gnu.org; Tue, 13 Jun 2017 08:40:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <zackw@panix.com>) id 1dKl7I-0004mu-Dh
	for autoconf@gnu.org; Tue, 13 Jun 2017 08:40:19 -0400
Received: from mailbackend.panix.com ([166.84.1.89]:63439)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <zackw@panix.com>) id 1dKl7I-0004mP-9N
	for autoconf@gnu.org; Tue, 13 Jun 2017 08:40:16 -0400
Received: from mail-it0-f50.google.com (mail-it0-f50.google.com
	[209.85.214.50])
	by mailbackend.panix.com (Postfix) with ESMTPSA id E1E861079D
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 08:40:14 -0400 (EDT)
Received: by mail-it0-f50.google.com with SMTP id m47so36468544iti.0
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 05:40:14 -0700 (PDT)
X-Gm-Message-State: AODbwcAUsfEIdz6SxESKC+SNd3xtnYHfm0KEN6sx5xnG7+wPNHf545s4
	ItzCeMQa3mLqqeCNXRD3aBrw8pTUxg==
X-Received: by 10.36.4.73 with SMTP id 70mr17009201itb.113.1497357614143; Tue,
	13 Jun 2017 05:40:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.173.69 with HTTP; Tue, 13 Jun 2017 05:40:13 -0700 (PDT)
In-Reply-To: <CAH8yC8mmwSKyaSkOf9RgMpaCx3omXFupp=mFrw_FrnJ2b3vq=Q@mail.gmail.com>
References: <CAH8yC8mmwSKyaSkOf9RgMpaCx3omXFupp=mFrw_FrnJ2b3vq=Q@mail.gmail.com>
From: Zack Weinberg <zackw@panix.com>
Date: Tue, 13 Jun 2017 08:40:13 -0400
X-Gmail-Original-Message-ID: <CAKCAbMgy3x96_z-Q_OogEKu13xWKBuNCf8xbM7BpYXoLb2JaSQ@mail.gmail.com>
Message-ID: <CAKCAbMgy3x96_z-Q_OogEKu13xWKBuNCf8xbM7BpYXoLb2JaSQ@mail.gmail.com>
Subject: Re: Why doesn't Autotools makefile update Bash hash cache after
	install?
To: noloader@gmail.com
Cc: Autoconf <autoconf@gnu.org>
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) [fuzzy]
X-Received-From: 166.84.1.89
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jun 2017 12:40:20 -0000

On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton <noloader@gmail.com> wrote:
>
> Why does Autotools produce a makefile which does _not_ update the
> cache under Bash shells?

It can't.  The rehash operation has to be done in the shell that is
the parent process of 'make install' (and any other shell processes
that are running at the time); there is no way for 'make install' to
do that.

zw


From MAILER-DAEMON Tue Jun 13 09:06:05 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dKlWH-0000gP-IT
	for mharc-autoconf@gnu.org; Tue, 13 Jun 2017 09:06:05 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42857)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1dKlWF-0000fM-Gh
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:06:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vhaisman@gmail.com>) id 1dKlWB-0007gH-NE
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:06:03 -0400
Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:36658)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <vhaisman@gmail.com>) id 1dKlWB-0007fk-Du
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:05:59 -0400
Received: by mail-lf0-x230.google.com with SMTP id o83so70475378lff.3
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 06:05:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=guSLLFQjqxwU1vmBXt3FDuzYdsgHS9zq9uKDWEhUU9A=;
	b=ipxqrmB2s1w8jDPc7ndmcDhYSlv1w+DrwZvWKFm4hW/vUX8rKUrZGSw70s+5y1dW5p
	fSvT8BNQVe73lyeGL/xZGEcdHFnTWF3rGv2kRCpr1DJK3vkqTV9gHIWCbm7X7hq6LYUh
	OYbj04JQWXmJRWInfFj/GNfzxAEoIaLgTQ7B+v4uB2dyDHa0cOcDiWt/cHq7km+l20qu
	NZJ9p0C2U8AinoR/7BgaMJKdvCI+fxpiDzkVz5EnK4AQYVFu1SfKtx8bleZrRk4idGC8
	8KBuXFKtnIihSzL1THOxPaIGCZfRvkHUVtFUBXlx6ZoPoACu481CumJWexrkSXUuVlqR
	em9g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=guSLLFQjqxwU1vmBXt3FDuzYdsgHS9zq9uKDWEhUU9A=;
	b=XeyXd069y8BEEHe5ETIjUl6qLTazG6htyvzcqdmd8l4X2i7yIQRp93LTxd7aGJnZv8
	9DpqwhBQ7FDx47DW8/pNF6IUqhRuHx9i/7M69pQI64zXKGLvc6PsvjgqFG2DGFKHdU63
	mMU0Z2GsM3zaYqEggnwWtIxQcVhJKkFvsKkZ58oINnEJAeJ0wtFOFcIVIDcB3O+7YBJd
	Zc4f7ulqk234V/WimReAaY/f+tu6JyDWZ43YKDJ68SMWP1NWl9pqTvQ7va2dd+eSUbml
	opdb4sHtPM0YX0xBbYHw5PyMeeHeQBKpPdWCc506QUgIPDd4n8fVyxTVlYUyW5XeYVgc
	I5gA==
X-Gm-Message-State: AKS2vOxP2zEL9SMX+sOb3atldjDky799lXaHNdQ17lH9FjTOGsEvs47S
	n2Emd4aQ8jlgLvXFZCXpUBwxGggiDA==
X-Received: by 10.80.180.188 with SMTP id w57mr10563669edd.42.1497359156404;
	Tue, 13 Jun 2017 06:05:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.195.70 with HTTP; Tue, 13 Jun 2017 06:05:55 -0700 (PDT)
In-Reply-To: <652d0dd4-fda5-38b7-28b0-44bbccce2c0d@redhat.com>
References: <d73c6fbe-a24e-0689-91b4-abddc5143247@gmail.com>
	<652d0dd4-fda5-38b7-28b0-44bbccce2c0d@redhat.com>
From: =?UTF-8?Q?V=C3=A1clav_Haisman?= <vhaisman@gmail.com>
Date: Tue, 13 Jun 2017 15:05:55 +0200
Message-ID: <CAKw7uVjQ0hL6VY-SzM4bFBVu4oYbo2LGJ_xvH2bQt7uuixJWLw@mail.gmail.com>
Subject: Re: Timeline for 2.70 (hit issue fixed in e17a30e9)
To: Eric Blake <eblake@redhat.com>
Cc: Andrei Borzenkov <arvidjaar@gmail.com>, Autoconf <autoconf@gnu.org>
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2a00:1450:4010:c07::230
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jun 2017 13:06:04 -0000

On 19 December 2016 at 15:03, Eric Blake <eblake@redhat.com> wrote:
> On 12/18/2016 09:22 PM, Andrei Borzenkov wrote:
>> We got report that GRUB build fails under glibc 2.25 due to issue fixed
>> in commit e17a30e9 (warnings about using major() etc from sys/types.h
>> with -Werror). It was confirmed that this commit fixes the problem. This
>> means we effectively need to mark minimal required autoconf version as
>> 2.70 and so should delay next release until it. What are plans for
>> release of 2.70? Thank you!
>
> My hope is to get a release done before the end of the year, but that is
> fast approaching.

Ping.

-- 
VH


From MAILER-DAEMON Tue Jun 13 09:45:30 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dKm8Q-00035W-2L
	for mharc-autoconf@gnu.org; Tue, 13 Jun 2017 09:45:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53327)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <noloader@gmail.com>) id 1dKm8O-000341-1F
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:45:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <noloader@gmail.com>) id 1dKm8I-0005J3-7z
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:45:28 -0400
Received: from mail-ot0-x231.google.com ([2607:f8b0:4003:c0f::231]:35048)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <noloader@gmail.com>) id 1dKm8I-0005Im-1P
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:45:22 -0400
Received: by mail-ot0-x231.google.com with SMTP id a2so88092922oth.2
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 06:45:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:reply-to:in-reply-to:references:from:date:message-id
	:subject:to:cc;
	bh=CQQYooA57fm8GM2hDCetHOZdv7tWsSAq3U6aTQM3/bA=;
	b=lSlKQhsXaana3t3gF6lu1OdVUrEFWgttWb5h5D6jkfb0WvXiycWd66MusW/zw6sNj2
	2ucWUeupQzh0zqkT49COwEZceOew//3znmyL4EcOncQ8ixNzoRVMJgsmycCcSE1p/ovx
	P+7ZpwXPS4n5+5JrcjUWqjqfHjDzj1vG4vukkakzk53NKFZD5s+30TMZo708nzF71Kkb
	00cm36AqayPIv1nSqOQC8kg8fJfTGKJzfJkzqNwX6ra/IolnVG+gcB/bC7HUi0q2BpYU
	jrcdyVvc2/ZipqkPZuOQq4jui54hAnhedWofGOXD+a8bbnOvad+oGWDb9FO3Au5H340a
	P3mA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:reply-to:in-reply-to:references
	:from:date:message-id:subject:to:cc;
	bh=CQQYooA57fm8GM2hDCetHOZdv7tWsSAq3U6aTQM3/bA=;
	b=K9HY7U8CmSPNJKgS6aRPEdWGJX/4Z+ENjnvHq2WuXrTTDBBUMqjwsEDNU9FeuYqGby
	tAQ7w8fjGuJ6jaguVebW6bexkIw7tFuvrL/UQHIw1nqRiAvLU0butj5J6vmwD7J9GX8w
	jlYURos5YJexBkqJv5HKkKRdnY5zaG2ymGioP8NPrRnDKyMoueSyoUr0zRn74mDAmAMa
	gmEAV8erekfQv929H4IrYVatXe6Sa9bc+kWz36HvN7rlQ31t7r2ysOzqkPYPAlzB1UMN
	GggOGYnoFD4A6kCk53wd8i4YGD7C9FkMr9U+Fh7axUMpqKU6wrcyah8M01sZSO0yfVbB
	P7pw==
X-Gm-Message-State: AODbwcBHUsHGIDbV3+9yX+p0mRJRJjr2BPlPUUpjb54gkqCDqcMdp6tc
	hUYREFAce8rx13vrEpFI34gGbkQ9zQ==
X-Received: by 10.157.33.108 with SMTP id l41mr28770128otd.171.1497361521262; 
	Tue, 13 Jun 2017 06:45:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.74.36.29 with HTTP; Tue, 13 Jun 2017 06:45:20 -0700 (PDT)
Reply-To: noloader@gmail.com
In-Reply-To: <CAKCAbMgy3x96_z-Q_OogEKu13xWKBuNCf8xbM7BpYXoLb2JaSQ@mail.gmail.com>
References: <CAH8yC8mmwSKyaSkOf9RgMpaCx3omXFupp=mFrw_FrnJ2b3vq=Q@mail.gmail.com>
	<CAKCAbMgy3x96_z-Q_OogEKu13xWKBuNCf8xbM7BpYXoLb2JaSQ@mail.gmail.com>
From: Jeffrey Walton <noloader@gmail.com>
Date: Tue, 13 Jun 2017 09:45:20 -0400
Message-ID: <CAH8yC8mvEKr3hopg_LCiUZQ_Rom8p4wPvAYq1TQgFrr-55cQCw@mail.gmail.com>
Subject: Re: Why doesn't Autotools makefile update Bash hash cache after
	install?
To: Zack Weinberg <zackw@panix.com>
Cc: Autoconf <autoconf@gnu.org>
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4003:c0f::231
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jun 2017 13:45:29 -0000

On Tue, Jun 13, 2017 at 8:40 AM, Zack Weinberg <zackw@panix.com> wrote:
> On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton <noloader@gmail.com> wrote:
>>
>> Why does Autotools produce a makefile which does _not_ update the
>> cache under Bash shells?
>
> It can't.  The rehash operation has to be done in the shell that is
> the parent process of 'make install' (and any other shell processes
> that are running at the time); there is no way for 'make install' to
> do that.

Thanks, makes sense.

I understand its a bad interaction. Things should "just work", but
they don't. Would you happen to know why Bash does not update on its
own after a 'make install'?

Jeff


From MAILER-DAEMON Tue Jun 13 09:47:59 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dKmAp-00053M-FB
	for mharc-autoconf@gnu.org; Tue, 13 Jun 2017 09:47:59 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54122)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <zackw@panix.com>) id 1dKmAn-0004xW-Q1
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:47:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <zackw@panix.com>) id 1dKmAk-0006B8-A9
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:47:57 -0400
Received: from mailbackend.panix.com ([166.84.1.89]:55277)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <zackw@panix.com>) id 1dKmAk-0006AU-6V
	for autoconf@gnu.org; Tue, 13 Jun 2017 09:47:54 -0400
Received: from mail-it0-f54.google.com (mail-it0-f54.google.com
	[209.85.214.54])
	by mailbackend.panix.com (Postfix) with ESMTPSA id 37A28109A4
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 09:47:52 -0400 (EDT)
Received: by mail-it0-f54.google.com with SMTP id m47so2286626iti.1
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 06:47:52 -0700 (PDT)
X-Gm-Message-State: AODbwcCpoogHbggb2CZ6telqu1hwkxbD2gjr5n0Fi/4uC2o3/yxQQNJU
	jkP+2sd0Z7aKrOTeCpAbjlSiLVPJdw==
X-Received: by 10.36.189.134 with SMTP id x128mr16884746ite.27.1497361671513; 
	Tue, 13 Jun 2017 06:47:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.173.69 with HTTP; Tue, 13 Jun 2017 06:47:50 -0700 (PDT)
In-Reply-To: <CAH8yC8mvEKr3hopg_LCiUZQ_Rom8p4wPvAYq1TQgFrr-55cQCw@mail.gmail.com>
References: <CAH8yC8mmwSKyaSkOf9RgMpaCx3omXFupp=mFrw_FrnJ2b3vq=Q@mail.gmail.com>
	<CAKCAbMgy3x96_z-Q_OogEKu13xWKBuNCf8xbM7BpYXoLb2JaSQ@mail.gmail.com>
	<CAH8yC8mvEKr3hopg_LCiUZQ_Rom8p4wPvAYq1TQgFrr-55cQCw@mail.gmail.com>
From: Zack Weinberg <zackw@panix.com>
Date: Tue, 13 Jun 2017 09:47:50 -0400
X-Gmail-Original-Message-ID: <CAKCAbMhit_ai_k7qr2R+Q2Z_fT+7XQyvx+L3g+i6hdBvuw9cgQ@mail.gmail.com>
Message-ID: <CAKCAbMhit_ai_k7qr2R+Q2Z_fT+7XQyvx+L3g+i6hdBvuw9cgQ@mail.gmail.com>
Subject: Re: Why doesn't Autotools makefile update Bash hash cache after
	install?
To: noloader@gmail.com
Cc: Autoconf <autoconf@gnu.org>
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) [fuzzy]
X-Received-From: 166.84.1.89
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jun 2017 13:47:58 -0000

On Tue, Jun 13, 2017 at 9:45 AM, Jeffrey Walton <noloader@gmail.com> wrote:
> On Tue, Jun 13, 2017 at 8:40 AM, Zack Weinberg <zackw@panix.com> wrote:
>> On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton <noloader@gmail.com> wrote:
>>>
>>> Why does Autotools produce a makefile which does _not_ update the
>>> cache under Bash shells?
>>
>> It can't.  The rehash operation has to be done in the shell that is
>> the parent process of 'make install' (and any other shell processes
>> that are running at the time); there is no way for 'make install' to
>> do that.
>
> Thanks, makes sense.
>
> I understand its a bad interaction. Things should "just work", but
> they don't. Would you happen to know why Bash does not update on its
> own after a 'make install'?

How is Bash to know that some random command changed the contents of
the directories in PATH?  Nowadays, I suppose it could use
inotify/dnotify/whatever the current flavor of that is to find out,
but in the past there was no such mechanism.

zw


From MAILER-DAEMON Tue Jun 13 10:35:46 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dKmv3-0002nB-Q9
	for mharc-autoconf@gnu.org; Tue, 13 Jun 2017 10:35:45 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41995)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eboyd53sf@gmail.com>) id 1dKmux-0002gv-UL
	for autoconf@gnu.org; Tue, 13 Jun 2017 10:35:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eboyd53sf@gmail.com>) id 1dKmuu-0000zU-12
	for autoconf@gnu.org; Tue, 13 Jun 2017 10:35:39 -0400
Received: from mail-io0-x22d.google.com ([2607:f8b0:4001:c06::22d]:35944)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <eboyd53sf@gmail.com>) id 1dKmut-0000yk-SX
	for autoconf@gnu.org; Tue, 13 Jun 2017 10:35:35 -0400
Received: by mail-io0-x22d.google.com with SMTP id y77so74484942ioe.3
	for <autoconf@gnu.org>; Tue, 13 Jun 2017 07:35:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=sender:subject:to:cc:references:from:message-id:date:user-agent
	:mime-version:in-reply-to:content-language:content-transfer-encoding;
	bh=eDbZ/CITJKC+ddjcAZltng6Ixq52/lwN3HecCOIKqk8=;
	b=NBsw73p/HQ//tjqir8qXd/J8zFApRsv8b8UH9pyD+FBTIF6sk2tEO0IPVjFK7P/9zL
	quKKqY8NITkVLkkHwaZq2lFuIgD97FMi2y4FxbWlm4REO0IyxVlO0veS4kNFiiPIrxrb
	MFTtKyPX/72Rr0XEQe3otOG1priYppG4Icy+160anJe6NNNWrPUxJSKadeqgjuo3oTIW
	18IfJzkeDTsdnHCq2O5jZ4Ae7gHKtZ2ksrJ4Ho7d0e1ne/7IRdrJ1tewHegNJvBv5w+J
	N5kdQrtE902dvYqWOkHBSI9aGKBAxn7ig2TnxRT3MDLOmjEaMdSzwPm2E1WekhdOgNyt
	XvNw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:sender:subject:to:cc:references:from:message-id
	:date:user-agent:mime-version:in-reply-to:content-language
	:content-transfer-encoding;
	bh=eDbZ/CITJKC+ddjcAZltng6Ixq52/lwN3HecCOIKqk8=;
	b=oxBG0N3m/gH3dYlyAgH2oy7Nw7nn2LCE8w8AwCSDjb1jb4tQqvh3BxOUQkdHVHd+1S
	IBNIRJNeSrkEkzDcoUlvmQiCwPZvztbva6ngTgpr3+K35TCK7zubx+7cbxSQsUku+Yi3
	T6n8F6CbDN3N8oEQVf+p5Bpd+sLWRRsT5Bi8dxIbru/HQsdANKD1CkRauFWiqksflRtO
	6SWY5J/72Ov3s0dU0/aVpbISVfiubxh+3OmeJ763+npgeUJdehRzOwrMHC3vN+77RFpd
	cywLpF4EZK2iUFpjMdeU9++M/S/yF6iLZeta1TTtwQgukjLAXrHSlZCyN1lTVUvDc1zo
	6tGQ==
X-Gm-Message-State: AKS2vOxTfzlz3x5EBaGQ5bvO2dZTS/RKFUeS9yFjMP4GzktI/5Jr4Ya+
	VvhSZXTRcprEg+wY
X-Received: by 10.107.51.201 with SMTP id z192mr158732ioz.210.1497364533479;
	Tue, 13 Jun 2017 07:35:33 -0700 (PDT)
Received: from [192.168.0.6] (d4-50-42-50.try.wideopenwest.com. [50.4.50.42])
	by smtp.gmail.com with ESMTPSA id
	y93sm1786575ita.9.2017.06.13.07.35.32
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 13 Jun 2017 07:35:32 -0700 (PDT)
Sender: Earnie Boyd <eboyd53sf@gmail.com>
Subject: Re: Why doesn't Autotools makefile update Bash hash cache after
	install?
To: Zack Weinberg <zackw@panix.com>, noloader@gmail.com
Cc: Autoconf <autoconf@gnu.org>
References: <CAH8yC8mmwSKyaSkOf9RgMpaCx3omXFupp=mFrw_FrnJ2b3vq=Q@mail.gmail.com>
	<CAKCAbMgy3x96_z-Q_OogEKu13xWKBuNCf8xbM7BpYXoLb2JaSQ@mail.gmail.com>
	<CAH8yC8mvEKr3hopg_LCiUZQ_Rom8p4wPvAYq1TQgFrr-55cQCw@mail.gmail.com>
	<CAKCAbMhit_ai_k7qr2R+Q2Z_fT+7XQyvx+L3g+i6hdBvuw9cgQ@mail.gmail.com>
From: Earnie <earnie@users.sourceforge.net>
Message-ID: <d9d244fa-f053-7ab4-502e-48740fdb7ca2@users.sourceforge.net>
Date: Tue, 13 Jun 2017 10:35:35 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
	Thunderbird/52.1.1
MIME-Version: 1.0
In-Reply-To: <CAKCAbMhit_ai_k7qr2R+Q2Z_fT+7XQyvx+L3g+i6hdBvuw9cgQ@mail.gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4001:c06::22d
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jun 2017 14:35:44 -0000

On 6/13/2017 9:47 AM, Zack Weinberg wrote:
> On Tue, Jun 13, 2017 at 9:45 AM, Jeffrey Walton <noloader@gmail.com> wrote:
>> On Tue, Jun 13, 2017 at 8:40 AM, Zack Weinberg <zackw@panix.com> wrote:
>>> On Tue, Jun 13, 2017 at 8:29 AM, Jeffrey Walton <noloader@gmail.com> wrote:
>>>>
>>>> Why does Autotools produce a makefile which does _not_ update the
>>>> cache under Bash shells?
>>>
>>> It can't.  The rehash operation has to be done in the shell that is
>>> the parent process of 'make install' (and any other shell processes
>>> that are running at the time); there is no way for 'make install' to
>>> do that.
>>
>> Thanks, makes sense.
>>
>> I understand its a bad interaction. Things should "just work", but
>> they don't. Would you happen to know why Bash does not update on its
>> own after a 'make install'?
> 
> How is Bash to know that some random command changed the contents of
> the directories in PATH?  Nowadays, I suppose it could use
> inotify/dnotify/whatever the current flavor of that is to find out,
> but in the past there was no such mechanism.
> 

And let's not forget that autotools is about portability and cannot use
bashisms as bash may not be the shell.  The fact that you install a new
version of a binary and expect your current environment to use it on
systems that cache what is being used is just misguided expectations.
On any *nix system a deleted file is only deleted to the user interface
but still exists until all open channels close it.  It is the reason you
cannot delete an active file and expect it to relieve a filesystem usage
overrun.  The file is still active and the inodes will not be released
until the processes with open channels to it have closed.  Often a
reboot is the only way to relieve that issue.  On Windows, you cannot
delete an opened file, if you try you will get an error from the system.

-- 
Earnie


From MAILER-DAEMON Thu Jun 15 11:13:59 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dLWT9-0005Wr-5E
	for mharc-autoconf@gnu.org; Thu, 15 Jun 2017 11:13:59 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60567)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pmenzel@molgen.mpg.de>) id 1dLTYJ-00029M-PX
	for autoconf@gnu.org; Thu, 15 Jun 2017 08:07:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pmenzel@molgen.mpg.de>) id 1dLTYG-0006XB-Li
	for autoconf@gnu.org; Thu, 15 Jun 2017 08:07:07 -0400
Received: from mx3.molgen.mpg.de ([141.14.17.11]:55875 helo=mx1.molgen.mpg.de)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <pmenzel@molgen.mpg.de>)
	id 1dLTYG-0006Tb-Er
	for autoconf@gnu.org; Thu, 15 Jun 2017 08:07:04 -0400
Received: from keineahnung.molgen.mpg.de (keineahnung.molgen.mpg.de
	[141.14.17.193])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested) (Authenticated sender: pmenzel)
	by mx.molgen.mpg.de (Postfix) with ESMTPSA id 48AD12012A59C8;
	Thu, 15 Jun 2017 14:06:54 +0200 (CEST)
To: autoconf@gnu.org
Cc: it+autoconf@molgen.mpg.de
From: Paul Menzel <pmenzel@molgen.mpg.de>
Subject: How to deal with test data in ouf of source tree builds?
Message-ID: <e652ded1-96dd-0256-69c6-830bf35cf0ab@molgen.mpg.de>
Date: Thu, 15 Jun 2017 14:06:54 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
	Thunderbird/52.1.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 141.14.17.11
X-Mailman-Approved-At: Thu, 15 Jun 2017 11:13:58 -0400
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jun 2017 12:07:08 -0000

Dear Autoconf folks,


When doing an out of source build of Unbound, the test suite fails with=20
the error below.

```
test signature verify functions
testpkts error: could not open file testdata/test_signatures.1: No such=20
file or directory
Makefile:304: recipe for target 'test' failed
make: *** [test] Error 1
```

In the source directory there is a directory `testdata`, and that gets=20
referenced incorrectly in `testcode/unitverify.c`.

```
void
verify_test(void)
{
         unit_show_feature("signature verify");
#ifdef USE_SHA1
         verifytest_file("testdata/test_signatures.1", "20070818005004");
#endif
#if defined(USE_DSA) && defined(USE_SHA1)
         verifytest_file("testdata/test_signatures.2", "20080414005004");
         verifytest_file("testdata/test_signatures.3", "20080416005004");
[=E2=80=A6]
```

Unfortunately, I couldn=E2=80=99t find any documentation how to deal with=
 test=20
data when building out of the source tree. Should the test data be=20
copied to the build directory, despite it being not changed, should it=20
be linked, or does the code need to reference only absolute paths, and=20
therefore has to be preprocessed(?)?


Kind regards,

Paul


From MAILER-DAEMON Thu Jun 15 11:28:01 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dLWgj-0005MQ-Rr
	for mharc-autoconf@gnu.org; Thu, 15 Jun 2017 11:28:01 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58212)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nbowler@draconx.ca>) id 1dLWgi-0005MI-AX
	for autoconf@gnu.org; Thu, 15 Jun 2017 11:28:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nbowler@draconx.ca>) id 1dLWgh-0000WF-CH
	for autoconf@gnu.org; Thu, 15 Jun 2017 11:28:00 -0400
Received: from mail-ot0-x229.google.com ([2607:f8b0:4003:c0f::229]:36045)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <nbowler@draconx.ca>) id 1dLWgh-0000VG-6p
	for autoconf@gnu.org; Thu, 15 Jun 2017 11:27:59 -0400
Received: by mail-ot0-x229.google.com with SMTP id s7so12132730otb.3
	for <autoconf@gnu.org>; Thu, 15 Jun 2017 08:27:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=draconx-ca.20150623.gappssmtp.com; s=20150623;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-transfer-encoding;
	bh=fRbYUpGGKpb0Ulbh2BOU58GjfosRgkGrIEo5FINuq6o=;
	b=BDZIqATGc1KhmbMvLjpEk6LybULM13faL6if5aFkmtnQIYRvkOi4FQBewc1J22SSkV
	NQQRo0ODuSy7M0TkNgE645IpUiWXu3EoNxDkJVEmqAlaJnKt2hdhLEfXC49BCuG33C4P
	Rd0F+c5b8Ngv142m0gCBnPbi4Q2DzR4j9FlHecTHB2M+e7MgHsJdTh/MHtVEiuSeI/Hp
	xc0rTa99LXOSSr8U9Bt+/CD7eMf7EQ0os0jHByTwRBDNIXHe+9gAMEtnainqItyCJtTp
	7Os6WfUhljQoQyV9lSeGFxFMBlr3xjS733lp2kZRbWvbargGEUZE9/V7czeWUmLAIdlx
	3rCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-transfer-encoding;
	bh=fRbYUpGGKpb0Ulbh2BOU58GjfosRgkGrIEo5FINuq6o=;
	b=r5VXX8gfjyjjh57QMLfSWusJc/tZydaDrGks6uyo3u1zKF5PhVAEQYLnU9LwAGpA2Z
	7knXA/U99faVDqW57R49D5axb6xOsYMNMu34w83vgTDWoeO0Nk4F5JGNaxt7DsXlamZu
	yT6iyvEr/RduIUk9mjxJtVv8GgVwiXmTT/XYwJ66IN05KMkMLU7BBiy9IYvN9gvj3RGI
	yWAy6bNbUgAYy6qXqux+uFBHlw22BBhKy9lNEF2PvjbeWYNw6fWmlD+NAjhWT8TotGoI
	P70pnUTWX++jsZgcePKjyzsdCcIC/vh7F7xqg04bsPuQMONV9WtClqoZQG4j5gL3CPjj
	jKOg==
X-Gm-Message-State: AKS2vOzeZRXQ5o8DUMr7FmiRZs09VU+lFdFMKsr97toedS+WGecUrzbP
	2FZ9+vH9E/t8iATfhTszGTPC3fSgBx0W
X-Received: by 10.157.37.87 with SMTP id j23mr3974246otd.83.1497540476419;
	Thu, 15 Jun 2017 08:27:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.202.241.137 with HTTP; Thu, 15 Jun 2017 08:27:55 -0700 (PDT)
X-Originating-IP: [2604:a880:0:1010::23:4001]
In-Reply-To: <e652ded1-96dd-0256-69c6-830bf35cf0ab@molgen.mpg.de>
References: <e652ded1-96dd-0256-69c6-830bf35cf0ab@molgen.mpg.de>
From: Nick Bowler <nbowler@draconx.ca>
Date: Thu, 15 Jun 2017 11:27:55 -0400
Message-ID: <CADyTPEzMBm9VBzimqE6DkTRaKF4KhUUyOGJmXJw1EGAGHucHew@mail.gmail.com>
Subject: Re: How to deal with test data in ouf of source tree builds?
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: autoconf@gnu.org, it+autoconf@molgen.mpg.de
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:4003:c0f::229
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jun 2017 15:28:01 -0000

Hello Paul,

On 2017-06-15, Paul Menzel <pmenzel@molgen.mpg.de> wrote:
> When doing an out of source build of Unbound, the test suite fails
[...]
> In the source directory there is a directory `testdata`, and that gets
> referenced incorrectly in `testcode/unitverify.c`.
[...]
>          verifytest_file("testdata/test_signatures.1", "20070818005004");
[...]
> Unfortunately, I couldn=E2=80=99t find any documentation how to deal with=
 test
> data when building out of the source tree. Should the test data be
> copied to the build directory, despite it being not changed, should it
> be linked, or does the code need to reference only absolute paths, and
> therefore has to be preprocessed(?)?

There are many possible solutions.  The simplest is probably to cd into
the source directory before running the test programs.  But this may have
other undesired effects.

I suggest eliminating the dependency on the working directory completely.

For example, you can pass the location of necessary data files to the
test programs via environment variable(s) or command-line arguments.  If
all your data files are in one place this might be something simple like:

  UNBOUND_TEST_DATA=3D${srcdir}/testdata ./the_test_program

and the test program can construct filenames based on that environment
variable.

Cheers,
  Nick


From MAILER-DAEMON Thu Jun 15 11:41:57 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dLWuD-0002Pk-Q2
	for mharc-autoconf@gnu.org; Thu, 15 Jun 2017 11:41:57 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34573)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1dLWuB-0002Pd-Ho
	for autoconf@gnu.org; Thu, 15 Jun 2017 11:41:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bfriesen@simple.dallas.tx.us>) id 1dLWu8-0006S6-Ey
	for autoconf@gnu.org; Thu, 15 Jun 2017 11:41:55 -0400
Received: from smtp.simplesystems.org ([65.66.246.90]:57375)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <bfriesen@simple.dallas.tx.us>)
	id 1dLWu8-0006RC-5M
	for autoconf@gnu.org; Thu, 15 Jun 2017 11:41:52 -0400
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
	[65.66.246.73])
	by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	v5FFfhRh013439; Thu, 15 Jun 2017 10:41:43 -0500 (CDT)
Date: Thu, 15 Jun 2017 10:41:43 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@scrappy.simplesystems.org
To: Nick Bowler <nbowler@draconx.ca>
cc: Paul Menzel <pmenzel@molgen.mpg.de>, autoconf@gnu.org,
	it+autoconf@molgen.mpg.de
Subject: Re: How to deal with test data in ouf of source tree builds?
In-Reply-To: <CADyTPEzMBm9VBzimqE6DkTRaKF4KhUUyOGJmXJw1EGAGHucHew@mail.gmail.com>
Message-ID: <alpine.GSO.2.20.1706151038110.22860@scrappy.simplesystems.org>
References: <e652ded1-96dd-0256-69c6-830bf35cf0ab@molgen.mpg.de>
	<CADyTPEzMBm9VBzimqE6DkTRaKF4KhUUyOGJmXJw1EGAGHucHew@mail.gmail.com>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
	(smtp.simplesystems.org [65.66.246.90]);
	Thu, 15 Jun 2017 10:41:44 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) [fuzzy]
X-Received-From: 65.66.246.90
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Jun 2017 15:41:56 -0000

On Thu, 15 Jun 2017, Nick Bowler wrote:
>
> I suggest eliminating the dependency on the working directory completely.
>
> For example, you can pass the location of necessary data files to the
> test programs via environment variable(s) or command-line arguments.  If
> all your data files are in one place this might be something simple like:
>
>  UNBOUND_TEST_DATA=${srcdir}/testdata ./the_test_program
>
> and the test program can construct filenames based on that environment
> variable.

Environment variables are convenient.  Command line arguments to the 
test program are also convenient.  If the test program is also the 
installed program, take care that security or reliability issues are 
not introduced due to responding to environment variables.

Microsoft Windows has very limited command line plus environment space 
(come out of same allocation) so take care not to use so much 
resources that it is not possible to run the tests under Windows (if 
Windows is supported).

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


From MAILER-DAEMON Tue Jun 20 20:35:45 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1dNTcX-0002C2-3h
	for mharc-autoconf@gnu.org; Tue, 20 Jun 2017 20:35:45 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42411)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <trojkan@gmail.com>) id 1dNTcV-0002Bv-4Y
	for autoconf@gnu.org; Tue, 20 Jun 2017 20:35:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <trojkan@gmail.com>) id 1dNTcS-0005r3-2W
	for autoconf@gnu.org; Tue, 20 Jun 2017 20:35:43 -0400
Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:36373)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <trojkan@gmail.com>) id 1dNTcR-0005qJ-Sw
	for autoconf@gnu.org; Tue, 20 Jun 2017 20:35:40 -0400
Received: by mail-pf0-x243.google.com with SMTP id y7so26686970pfd.3
	for <autoconf@gnu.org>; Tue, 20 Jun 2017 17:35:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=subject:to:references:cc:from:message-id:date:user-agent
	:mime-version:in-reply-to:content-transfer-encoding;
	bh=qSJEDhW4UdI6FJyxJLVtVy07XfPa6wcQZXXRSu1DYFk=;
	b=oOJEsCEJEWXaqapkWujCMoY5dZ4i8IOWajEXLKLldOpV3Kr0NnJHozcaV73Cu9MMjx
	4bbLVo/TGzZOjBsm6Ey559x8muiNPqvq6YzKFemOiQPrGlLsryaRHiSEb5OPKSdg59Wh
	AMTYZs4q3PcNu8LIx+Q285mp7JtFdcW0AnJJOdY0Vj7UC9uF91cdrZRPRNcYpEoKdZQf
	2/yXj3n3/jKMsinCLYSSVcL4hK4Gmx3SMLVHDVHQz4Ntf8mmYd6U+r7MgKbZGbbo/kho
	1FWAffWNBUbifh1gMZ/SXondtaKoqPrSxSZ7k30u2kLDPFrzATk4d+GIOe5VEIN8CytI
	k70g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:subject:to:references:cc:from:message-id:date
	:user-agent:mime-version:in-reply-to:content-transfer-encoding;
	bh=qSJEDhW4UdI6FJyxJLVtVy07XfPa6wcQZXXRSu1DYFk=;
	b=pCH2VGNXrncf1Zz6VGmKiR/hfUvOGUGm/nLcZStslVDqo53tS70RNRkgZkPnkph2pr
	rpK/ss9IWaUQpgIClOf0FZ/3egGiDTf9lW4ZGi/jgsx4zUoHG6A5BZBHxf5R1UuPSpSj
	aGu/PhyZl3MqaO0JbaivbQgIOp8CsBZ74ejZLjVcAK+EI2l3vd0+DAJGg0YCKaBqQ9Nk
	QFq36/uEOICyvHFJ4NcSFBGhnb8+zsT4l6AUqUpbiW7U1EskmiJecAdSYM0IfDpeo73m
	hI7VXzlohtODCURrWYT/KhkgqfsAyWOp2hahtZPMrB5/H1oDQUa88lI1l49y22s+Sv39
	WdZw==
X-Gm-Message-State: AKS2vOywbJvazWmdMC8VJx4wj/Hllnk30W+6jfE2dfltHQ+bYg+RifpH
	bph5svxMyeJTfv1eDuw=
X-Received: by 10.99.97.5 with SMTP id v5mr31091718pgb.77.1498005337200;
	Tue, 20 Jun 2017 17:35:37 -0700 (PDT)
Received: from [10.1.1.235] (182-239-205-29.ip.adam.com.au. [182.239.205.29])
	by smtp.gmail.com with ESMTPSA id
	x88sm5870445pff.123.2017.06.20.17.35.35
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 20 Jun 2017 17:35:36 -0700 (PDT)
Subject: Re: How to deal with test data in ouf of source tree builds?
To: Paul Menzel <pmenzel@molgen.mpg.de>
References: <e652ded1-96dd-0256-69c6-830bf35cf0ab@molgen.mpg.de>
Cc: autoconf@gnu.org, it+autoconf@molgen.mpg.de
From: Peter Johansson <trojkan@gmail.com>
Message-ID: <6ee99997-05fe-3ed6-3cf8-c6fa85ea0c34@gmail.com>
Date: Wed, 21 Jun 2017 10:35:33 +1000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
	Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <e652ded1-96dd-0256-69c6-830bf35cf0ab@molgen.mpg.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400e:c00::243
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/autoconf/>
List-Post: <mailto:autoconf@gnu.org>
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Jun 2017 00:35:43 -0000

Hi Paul,


On 6/15/2017 10:06 PM, Paul Menzel wrote:
> Dear Autoconf folks,
>
>
> When doing an out of source build of Unbound, the test suite fails 
> with the error below.
>
> ```
> test signature verify functions
> testpkts error: could not open file testdata/test_signatures.1: No 
> such file or directory
> Makefile:304: recipe for target 'test' failed
> make: *** [test] Error 1
> ```
>
> In the source directory there is a directory `testdata`, and that gets 
> referenced incorrectly in `testcode/unitverify.c`.
>

One solution I've used is to export ${abs_top_srcdir} to config.h and 
then use that value as prefix in filenames.

Another solution is to create a link to directory testdata when $srcdir 
!= $builddir. There is a macro AC_CONFIG_LNKS that might be useful.

Cheers,
Peter


