package/squid: fix automake breakage
PATCH 1/1 package/squid: fix automake breakage
Much like e27ccbabc1, the recent bump in automake causes a build error. If the host automake is not the same version as the one used to generate the squid package, the build fails while building the copy of libltdl included in the package.
This happens regardless of the Buildroot automake version since the included library is not reconfigured properly. The previous fix set the ACLOCAL and AUTOMAKE variables to the Buildroot generated aclocal and automake thereby ensuring that the subpackage would build correctly. What is needed is to make sure that both the squid configure script and the libltdl configure script are reconfigured following a change to either configure.ac files.
This commit adds an option passed to autoreconf which ensures both configure scripts are regenerated with Buildroot's autotools.
Fixes:
http://autobuild.buildroot.net/results/83d/83d8fb0fc25205d6fb8c96a9877e5901275c6766
http://autobuild.buildroot.net/results/948/948737590ba648f7dbade1661c0e2e8d9db6522b
--- package/squid/squid.mk | 1 + 1 file changed, 1 insertion(+)
package/squid/squid.mk +1 -0
@@ -12,6 +12,7 @@ SQUID_LICENSE = GPL-2.0+ SQUID_LICENSE_FILES = COPYING # For 0001-assume-get-certificate-ok.patch SQUID_AUTORECONF = YES +SQUID_AUTORECONF_OPTS = -fi configure.ac libltdl/configure.ac SQUID_DEPENDENCIES = libcap host-libcap host-pkgconf \ $(if $(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),libnetfilter_conntrack) SQUID_CONF_ENV = \
Signature · 1 line
2.18.0
PATCH 1/1 package/squid: fix automake breakage
Quoted 13 lines · Jean-Fran?ois T?tu
Much like
e27ccbabc1, the recent bump in automake causes a build error. If the host automake is not the same version as the one used to generate the squid package, the build fails while building the copy of libltdl included in the package.This happens regardless of the Buildroot automake version since the included library is not reconfigured properly. The previous fix set the ACLOCAL and AUTOMAKE variables to the Buildroot generated aclocal and automake thereby ensuring that the subpackage would build correctly. What is needed is to make sure that both the squid configure script and the libltdl configure script are reconfigured following a change to either configure.ac files.
Quoted 2 lines
This commit adds an option passed to autoreconf which ensures both configure scripts are regenerated with Buildroot's autotools.
Nicely found!
However, have you also looked into the option of using Buildroot's libtool
instead of the bundled libltdl? If that doesn't work for some reason, I'd like to add it in the commit log so a future developer who wants to give it go can see what has been tried already.
Regards,
Arnout
Quoted 24 lines
Fixes:
http://autobuild.buildroot.net/results/83d/83d8fb0fc25205d6fb8c96a9877e5901275c6766
http://autobuild.buildroot.net/results/948/948737590ba648f7dbade1661c0e2e8d9db6522bCC Gustavo Zacarias <[email protected]>Signed-off-by Jean-Fran?ois T?tu <[email protected]>--- package/squid/squid.mk | 1 + 1 file changed, 1 insertion(+)package/squid/squid.mk +1
-0@@ -12,6 +12,7 @@ SQUID_LICENSE = GPL-2.0+ SQUID_LICENSE_FILES = COPYING # For 0001-assume-get-certificate-ok.patch SQUID_AUTORECONF = YES +SQUID_AUTORECONF_OPTS = -fi configure.ac libltdl/configure.ac SQUID_DEPENDENCIES = libcap host-libcap host-pkgconf \ $(if $(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),libnetfilter_conntrack) SQUID_CONF_ENV = \
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 package/squid: fix automake breakage
Hello!
Quoted 14 lines · Arnout Vandecappelle
Quoted 13 lines · Jean-Fran?ois T?tu
Much like
e27ccbabc1, the recent bump in automake causes a build error. If the host automake is not the same version as the one used to generate the squid package, the build fails while building the copy of libltdl included in the package.This happens regardless of the Buildroot automake version since the included library is not reconfigured properly. The previous fix set the ACLOCAL and AUTOMAKE variables to the Buildroot generated aclocal and automake thereby ensuring that the subpackage would build correctly. What is needed is to make sure that both the squid configure script and the libltdl configure script are reconfigured following a change to either configure.ac files.
Quoted 5 lines
Quoted 2 lines
This commit adds an option passed to autoreconf which ensures both configure scripts are regenerated with Buildroot's autotools.
Nicely found!
Thanks :)
Quoted 5 lines
However, have you also looked into the option of using Buildroot's libtool instead of the bundled libltdl? If that doesn't work for some reason, I'd like to add it in the commit log so a future developer who wants to give it go can see what has been tried already.
I can look into how we could pull in Buildroot's libltdl because currently, Squid relies on its bootstrap script to pull in libtldl from the machine that is generating the package. Maybe this could be done with the autotools instead of the bootstrap?
Quoted 29 lines
Regards,
ArnoutQuoted 17 lines
Fixes:
http://autobuild.buildroot.net/results/83d/83d8fb0fc25205d6fb8c96a9877e5901275c6766
http://autobuild.buildroot.net/results/948/948737590ba648f7dbade1661c0e2e8d9db6522bCC Gustavo Zacarias <[email protected]>Signed-off-by Jean-Fran?ois T?tu <[email protected]>--- package/squid/squid.mk | 1 + 1 file changed, 1 insertion(+)package/squid/squid.mk +0
-0package/squid/squid.mk SQUID_LICENSE = GPL-2.0+ · line 18
Quoted 7 lines
package/squid/squid.mk +1
-0@@ -12,6 +12,7 @@ SQUID_LICENSE = GPL-2.0+ SQUID_LICENSE_FILES = COPYING # For 0001-assume-get-certificate-ok.patch SQUID_AUTORECONF = YES +SQUID_AUTORECONF_OPTS = -fi configure.ac libltdl/configure.ac SQUID_DEPENDENCIES = libcap host-libcap host-pkgconf \ $(if $(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),libnetfilter_conntrack) SQUID_CONF_ENV = \--
Quoted 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Regards,
--
Jean-Fran?ois T?tu
PATCH 1/1 package/squid: fix automake breakage
Hello Arnout,
Quoted 31 lines · Jean-Fran?ois T?tu
Hello!
Quoted 14 lines · Arnout Vandecappelle
Quoted 13 lines · Jean-Fran?ois T?tu
Much like
e27ccbabc1, the recent bump in automake causes a build error. If the host automake is not the same version as the one used to generate the squid package, the build fails while building the copy of libltdl included in the package.This happens regardless of the Buildroot automake version since the included library is not reconfigured properly. The previous fix set the ACLOCAL and AUTOMAKE variables to the Buildroot generated aclocal and automake thereby ensuring that the subpackage would build correctly. What is needed is to make sure that both the squid configure script and the libltdl configure script are reconfigured following a change to either configure.ac files.
Quoted 5 lines
Quoted 2 lines
This commit adds an option passed to autoreconf which ensures both configure scripts are regenerated with Buildroot's autotools.
Nicely found!
Thanks :)
Quoted 5 lines
However, have you also looked into the option of using Buildroot's libtool instead of the bundled libltdl? If that doesn't work for some reason, I'd like to add it in the commit log so a future developer who wants to give it go can see what has been tried already.
Quoted 5 lines
I can look into how we could pull in Buildroot's libltdl because currently, Squid relies on its bootstrap script to pull in libtldl from the machine that is generating the package. Maybe this could be done with the autotools instead of the bootstrap?
From what I understand, the packaged libltdl in Squid comes from its bootstrap. This pulls in libltdl from the host's libtool during the libtoolize step. Currently, the latest version of libtool is 2.4.6. This version was itself created using automake 1.15. Ultimately, this means that the included libltdl in Squid is made to be built with automake 1.15. Unless its forcibly reconf'd with automake 1.16.1.
To fix this issue would require a version of libtool made with automake 1.16.1. This version currently does not exist as the latest version of libtool dates back from 2015-02-15, just after the release of automake 1.15 on 2015-01-05.
In order to build Squid in a sustainable manner, the autoreconf flags are needed, at least until libtool is bumped.
Would you like me to add a note reflecting this in the commitmsg?
Regards,
--
Jean-Fran?ois T?tu
PATCH 1/1 package/squid: fix automake breakage
Quoted 34 lines · Jean-Fran?ois T?tu
Hello Arnout,
Quoted 31 lines · Jean-Fran?ois T?tu
Hello!
Quoted 14 lines · Arnout Vandecappelle
Quoted 13 lines · Jean-Fran?ois T?tu
Much like
e27ccbabc1, the recent bump in automake causes a build error. If the host automake is not the same version as the one used to generate the squid package, the build fails while building the copy of libltdl included in the package.This happens regardless of the Buildroot automake version since the included library is not reconfigured properly. The previous fix set the ACLOCAL and AUTOMAKE variables to the Buildroot generated aclocal and automake thereby ensuring that the subpackage would build correctly. What is needed is to make sure that both the squid configure script and the libltdl configure script are reconfigured following a change to either configure.ac files.
Quoted 5 lines
Quoted 2 lines
This commit adds an option passed to autoreconf which ensures both configure scripts are regenerated with Buildroot's autotools.
Nicely found!
Thanks :)
Quoted 5 lines
However, have you also looked into the option of using Buildroot's libtool instead of the bundled libltdl? If that doesn't work for some reason, I'd like to add it in the commit log so a future developer who wants to give it go can see what has been tried already.
Quoted 8 lines
Quoted 5 lines
I can look into how we could pull in Buildroot's libltdl because currently, Squid relies on its bootstrap script to pull in libtldl from the machine that is generating the package. Maybe this could be done with the autotools instead of the bootstrap?
From what I understand, the packaged libltdl in Squid comes from its bootstrap.
We probably don't want to use the bootstrap script :-)
What I meant was: make squid depend on libtool (target libtool, not host
libtool), and remove libltdl from SUBDIRS in Makefile.am. Probably something goes wrong somewhere on the way, so that would have to be fixed as well.
Regards,
Arnout
Quoted 21 lines
This pulls in libltdl from the host's libtool during the libtoolize step. Currently, the latest version of libtool is 2.4.6. This version was itself created using automake 1.15. Ultimately, this means that the included libltdl in Squid is made to be built with automake 1.15. Unless its forcibly reconf'd with automake 1.16.1.
To fix this issue would require a version of libtool made with automake 1.16.1. This version currently does not exist as the latest version of libtool dates back from 2015-02-15, just after the release of automake 1.15 on 2015-01-05.
In order to build Squid in a sustainable manner, the autoreconf flags are needed, at least until libtool is bumped.
Would you like me to add a note reflecting this in the commitmsg?
Regards,
--
Jean-Fran?ois T?tu
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 package/squid: fix automake breakage
Hello
Quoted 11 lines · Arnout Vandecappelle
Quoted 10 lines · Jean-Fran?ois T?tu
Hello Arnout,
Quoted 7 lines · Arnout Vandecappelle
Quoted 6 lines
However, have you also looked into the option of using Buildroot's libtool instead of the bundled libltdl? If that doesn't work for some reason, I'd like to add it in the commit log so a future developer who wants to give it go can see what has been tried already.
Quoted 9 lines
Quoted 2 lines
From what I understand, the packaged libltdl in Squid comes from its bootstrap.
We probably don't want to use the bootstrap script :-)
What I meant was: make squid depend on libtool (target libtool, not host libtool), and remove libltdl from SUBDIRS in Makefile.am. Probably something goes wrong somewhere on the way, so that would have to be fixed as well.
Yes, I see what you mean. I'll look into this and fix what breaks.
Quoted 3 lines
Regards,
Arnout
--
Jean-Fran?ois T?tu
PATCH 1/1 package/squid: fix automake breakage
Quoted 18 lines · Jean-Fran?ois T?tu
Hello
Quoted 14 lines · Arnout Vandecappelle
Quoted 12 lines · Jean-Fran?ois T?tu
Hello Arnout,
Quoted 7 lines · Arnout Vandecappelle
Quoted 6 lines
However, have you also looked into the option of using Buildroot's libtool instead of the bundled libltdl? If that doesn't work for some reason, I'd like to add it in the commit log so a future developer who wants to give it go can see what has been tried already.
From what I understand, the packaged libltdl in Squid comes from its bootstrap.
Quoted 8 lines
Quoted 6 lines
We probably don't want to use the bootstrap script :-)
What I meant was: make squid depend on libtool (target libtool, not host libtool), and remove libltdl from SUBDIRS in Makefile.am. Probably something goes wrong somewhere on the way, so that would have to be fixed as well.
Yes, I see what you mean. I'll look into this and fix what breaks.
Great!
Note that in the meantime, Thomas has reverted the automake bump as a quick way
to fix the issue. So when you repost, please also include the automake bump in the series (the squid update should be the first patch, the automake bump the second one).
Thanks!
Regards,
Arnout
Quoted 8 lines
Quoted 4 lines
Regards,
Arnout--
Jean-Fran?ois T?tu
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF