All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] kmod: add host-automake dependency
@ 2014-10-10  8:40 Vicente Olivert Riera
  2014-10-10  9:06 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Vicente Olivert Riera @ 2014-10-10  8:40 UTC (permalink / raw)
  To: buildroot

kmod can fail to build in systems which have old automake versions like
CentOS 6.5, for instance. It will cause an error like this one:

/buildroot/output/build/kmod-18/build-aux/missing: line 81:
aclocal-1.14: command not found

Adding host-automake as a dependency fixes the problem.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com>
---
 package/kmod/kmod.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
index 1f170dd..c0212bb 100644
--- a/package/kmod/kmod.mk
+++ b/package/kmod/kmod.mk
@@ -8,8 +8,8 @@ KMOD_VERSION = 18
 KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
 KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod
 KMOD_INSTALL_STAGING = YES
-KMOD_DEPENDENCIES = host-pkgconf
-HOST_KMOD_DEPENDENCIES = host-pkgconf
+KMOD_DEPENDENCIES = host-automake host-pkgconf
+HOST_KMOD_DEPENDENCIES = host-automake host-pkgconf
 
 # license info for libkmod only, conditionally add more below
 KMOD_LICENSE = LGPLv2.1+
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] kmod: add host-automake dependency
  2014-10-10  8:40 [Buildroot] [PATCH] kmod: add host-automake dependency Vicente Olivert Riera
@ 2014-10-10  9:06 ` Thomas Petazzoni
  2014-10-10  9:15   ` Vicente Olivert Riera
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2014-10-10  9:06 UTC (permalink / raw)
  To: buildroot

Dear Vicente Olivert Riera,

On Fri, 10 Oct 2014 09:40:55 +0100, Vicente Olivert Riera wrote:
> kmod can fail to build in systems which have old automake versions like
> CentOS 6.5, for instance. It will cause an error like this one:
> 
> /buildroot/output/build/kmod-18/build-aux/missing: line 81:
> aclocal-1.14: command not found
> 
> Adding host-automake as a dependency fixes the problem.
> 
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com>
> ---
>  package/kmod/kmod.mk |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
> index 1f170dd..c0212bb 100644
> --- a/package/kmod/kmod.mk
> +++ b/package/kmod/kmod.mk
> @@ -8,8 +8,8 @@ KMOD_VERSION = 18
>  KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
>  KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod
>  KMOD_INSTALL_STAGING = YES
> -KMOD_DEPENDENCIES = host-pkgconf
> -HOST_KMOD_DEPENDENCIES = host-pkgconf
> +KMOD_DEPENDENCIES = host-automake host-pkgconf
> +HOST_KMOD_DEPENDENCIES = host-automake host-pkgconf
>  
>  # license info for libkmod only, conditionally add more below
>  KMOD_LICENSE = LGPLv2.1+

This seems wrong. Why not use KMOD_AUTORECONF = YES instead?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] kmod: add host-automake dependency
  2014-10-10  9:06 ` Thomas Petazzoni
@ 2014-10-10  9:15   ` Vicente Olivert Riera
  2014-10-10  9:37     ` Vicente Olivert Riera
  2014-10-10  9:42     ` Thomas De Schampheleire
  0 siblings, 2 replies; 5+ messages in thread
From: Vicente Olivert Riera @ 2014-10-10  9:15 UTC (permalink / raw)
  To: buildroot

Dear Thomas Petazzoni,

On 10/10/2014 10:06 AM, Thomas Petazzoni wrote:
> Dear Vicente Olivert Riera,
>
> On Fri, 10 Oct 2014 09:40:55 +0100, Vicente Olivert Riera wrote:
>> kmod can fail to build in systems which have old automake versions like
>> CentOS 6.5, for instance. It will cause an error like this one:
>>
>> /buildroot/output/build/kmod-18/build-aux/missing: line 81:
>> aclocal-1.14: command not found
>>
>> Adding host-automake as a dependency fixes the problem.
>>
>> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
>> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com>
>> ---
>>   package/kmod/kmod.mk |    4 ++--
>>   1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
>> index 1f170dd..c0212bb 100644
>> --- a/package/kmod/kmod.mk
>> +++ b/package/kmod/kmod.mk
>> @@ -8,8 +8,8 @@ KMOD_VERSION = 18
>>   KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
>>   KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod
>>   KMOD_INSTALL_STAGING = YES
>> -KMOD_DEPENDENCIES = host-pkgconf
>> -HOST_KMOD_DEPENDENCIES = host-pkgconf
>> +KMOD_DEPENDENCIES = host-automake host-pkgconf
>> +HOST_KMOD_DEPENDENCIES = host-automake host-pkgconf
>>
>>   # license info for libkmod only, conditionally add more below
>>   KMOD_LICENSE = LGPLv2.1+
>
> This seems wrong. Why not use KMOD_AUTORECONF = YES instead?

I have tried it and it fails:

 >>> kmod 18 Autoreconfiguring
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libkmod/docs/gtk-doc.make:270: error: HAVE_GTK_DOC does not appear in 
AM_CONDITIONAL
libkmod/docs/Makefile.am:33:   'libkmod/docs/gtk-doc.make' included from 
here

And also, if the kmod-0002-add-backup-implementation-of-be32toh.patch 
modifies the configure.ac file, and there is no KMOD_AUTORECONF = YES in 
the kmod.mk file, why don't we clean that patch by removing the 
configure.ac bit?

Regards,

-- 
Vicente Olivert Riera
Graduate Software Engineer, MIPS Processor IP
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] kmod: add host-automake dependency
  2014-10-10  9:15   ` Vicente Olivert Riera
@ 2014-10-10  9:37     ` Vicente Olivert Riera
  2014-10-10  9:42     ` Thomas De Schampheleire
  1 sibling, 0 replies; 5+ messages in thread
From: Vicente Olivert Riera @ 2014-10-10  9:37 UTC (permalink / raw)
  To: buildroot

Dear Thomas Petazzoni,

On 10/10/2014 10:15 AM, Vicente Olivert Riera wrote:
> Dear Thomas Petazzoni,
>
> On 10/10/2014 10:06 AM, Thomas Petazzoni wrote:
>> Dear Vicente Olivert Riera,
>>
>> On Fri, 10 Oct 2014 09:40:55 +0100, Vicente Olivert Riera wrote:
>>> kmod can fail to build in systems which have old automake versions like
>>> CentOS 6.5, for instance. It will cause an error like this one:
>>>
>>> /buildroot/output/build/kmod-18/build-aux/missing: line 81:
>>> aclocal-1.14: command not found
>>>
>>> Adding host-automake as a dependency fixes the problem.
>>>
>>> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
>>> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com>
>>> ---
>>>   package/kmod/kmod.mk |    4 ++--
>>>   1 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
>>> index 1f170dd..c0212bb 100644
>>> --- a/package/kmod/kmod.mk
>>> +++ b/package/kmod/kmod.mk
>>> @@ -8,8 +8,8 @@ KMOD_VERSION = 18
>>>   KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
>>>   KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod
>>>   KMOD_INSTALL_STAGING = YES
>>> -KMOD_DEPENDENCIES = host-pkgconf
>>> -HOST_KMOD_DEPENDENCIES = host-pkgconf
>>> +KMOD_DEPENDENCIES = host-automake host-pkgconf
>>> +HOST_KMOD_DEPENDENCIES = host-automake host-pkgconf
>>>
>>>   # license info for libkmod only, conditionally add more below
>>>   KMOD_LICENSE = LGPLv2.1+
>>
>> This seems wrong. Why not use KMOD_AUTORECONF = YES instead?
>
> I have tried it and it fails:
>
>  >>> kmod 18 Autoreconfiguring
> libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
> libtoolize: copying file `build-aux/ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
> libtoolize: copying file `m4/libtool.m4'
> libtoolize: copying file `m4/ltoptions.m4'
> libtoolize: copying file `m4/ltsugar.m4'
> libtoolize: copying file `m4/ltversion.m4'
> libtoolize: copying file `m4/lt~obsolete.m4'
> libkmod/docs/gtk-doc.make:270: error: HAVE_GTK_DOC does not appear in
> AM_CONDITIONAL
> libkmod/docs/Makefile.am:33:   'libkmod/docs/gtk-doc.make' included from
> here
>
> And also, if the kmod-0002-add-backup-implementation-of-be32toh.patch
> modifies the configure.ac file, and there is no KMOD_AUTORECONF = YES in
> the kmod.mk file, why don't we clean that patch by removing the
> configure.ac bit?
>
> Regards,
>

this patch also fixes the problem, and it doesn't have host-autoreconf 
the the dependencies. Do you think it's better?

===== BEGIN PATCH =====
 From 2ccaa31b38ce1da075e5fb59d4addbd9bb1db10b Mon Sep 17 00:00:00 2001
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Date: Fri, 10 Oct 2014 10:32:59 +0100
Subject: [PATCH] kmod: Disable documentation

And also add AUTORECONF = YES since the configure.ac script is modified.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
  package/kmod/kmod-0003-disable-documentation.patch |   22 
++++++++++++++++++++
  package/kmod/kmod.mk                               |    1 +
  2 files changed, 23 insertions(+), 0 deletions(-)
  create mode 100644 package/kmod/kmod-0003-disable-documentation.patch

diff --git a/package/kmod/kmod-0003-disable-documentation.patch 
b/package/kmod/kmod-0003-disable-documentation.patch
new file mode 100644
index 0000000..edbd131
--- /dev/null
+++ b/package/kmod/kmod-0003-disable-documentation.patch
@@ -0,0 +1,22 @@
+diff -rup a/configure.ac b/configure.ac
+--- a/configure.ac	2014-10-10 10:26:16.441334151 +0100
++++ b/configure.ac	2014-10-10 10:27:12.757298124 +0100
+@@ -220,9 +220,6 @@ AC_SUBST([GCLDFLAGS], $with_ldflags)
+ AC_CONFIG_HEADERS(config.h)
+ AC_CONFIG_FILES([
+ 	Makefile
+-	man/Makefile
+-	libkmod/docs/Makefile
+-	libkmod/docs/version.xml
+ ])
+
+
+diff -rup a/Makefile.am b/Makefile.am
+--- a/Makefile.am	2014-06-14 16:32:32.546850173 +0100
++++ b/Makefile.am	2014-10-10 10:29:32.405688866 +0100
+@@ -1,4 +1,4 @@
+-SUBDIRS = . libkmod/docs
++SUBDIRS = .
+
+ if BUILD_MANPAGES
+ SUBDIRS += man
diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
index 1f170dd..fda7843 100644
--- a/package/kmod/kmod.mk
+++ b/package/kmod/kmod.mk
@@ -8,6 +8,7 @@ KMOD_VERSION = 18
  KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
  KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod
  KMOD_INSTALL_STAGING = YES
+KMOD_AUTORECONF = YES
  KMOD_DEPENDENCIES = host-pkgconf
  HOST_KMOD_DEPENDENCIES = host-pkgconf

-- 
1.7.1

===== END PATCH =====

-- 
Vicente Olivert Riera
Graduate Software Engineer, MIPS Processor IP
Imagination Technologies Limited
t: +44 (0)113 2429814
www.imgtec.com

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] kmod: add host-automake dependency
  2014-10-10  9:15   ` Vicente Olivert Riera
  2014-10-10  9:37     ` Vicente Olivert Riera
@ 2014-10-10  9:42     ` Thomas De Schampheleire
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas De Schampheleire @ 2014-10-10  9:42 UTC (permalink / raw)
  To: buildroot

Hi Vicente, Thomas, all,

On Fri, Oct 10, 2014 at 11:15 AM, Vicente Olivert Riera
<Vincent.Riera@imgtec.com> wrote:
> Dear Thomas Petazzoni,
>
>
> On 10/10/2014 10:06 AM, Thomas Petazzoni wrote:
>>
>> Dear Vicente Olivert Riera,
>>
>> On Fri, 10 Oct 2014 09:40:55 +0100, Vicente Olivert Riera wrote:
>>>
>>> kmod can fail to build in systems which have old automake versions like
>>> CentOS 6.5, for instance. It will cause an error like this one:
>>>
>>> /buildroot/output/build/kmod-18/build-aux/missing: line 81:
>>> aclocal-1.14: command not found
>>>
>>> Adding host-automake as a dependency fixes the problem.
>>>
>>> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
>>> Reviewed-by: Markos Chandras <Markos.Chandras@imgtec.com>
>>> ---
>>>   package/kmod/kmod.mk |    4 ++--
>>>   1 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
>>> index 1f170dd..c0212bb 100644
>>> --- a/package/kmod/kmod.mk
>>> +++ b/package/kmod/kmod.mk
>>> @@ -8,8 +8,8 @@ KMOD_VERSION = 18
>>>   KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
>>>   KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod
>>>   KMOD_INSTALL_STAGING = YES
>>> -KMOD_DEPENDENCIES = host-pkgconf
>>> -HOST_KMOD_DEPENDENCIES = host-pkgconf
>>> +KMOD_DEPENDENCIES = host-automake host-pkgconf
>>> +HOST_KMOD_DEPENDENCIES = host-automake host-pkgconf
>>>
>>>   # license info for libkmod only, conditionally add more below
>>>   KMOD_LICENSE = LGPLv2.1+
>>
>>
>> This seems wrong. Why not use KMOD_AUTORECONF = YES instead?
>
>
> I have tried it and it fails:
>
>>>> kmod 18 Autoreconfiguring
> libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
> libtoolize: copying file `build-aux/ltmain.sh'
> libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
> libtoolize: copying file `m4/libtool.m4'
> libtoolize: copying file `m4/ltoptions.m4'
> libtoolize: copying file `m4/ltsugar.m4'
> libtoolize: copying file `m4/ltversion.m4'
> libtoolize: copying file `m4/lt~obsolete.m4'
> libkmod/docs/gtk-doc.make:270: error: HAVE_GTK_DOC does not appear in
> AM_CONDITIONAL
> libkmod/docs/Makefile.am:33:   'libkmod/docs/gtk-doc.make' included from
> here
>
> And also, if the kmod-0002-add-backup-implementation-of-be32toh.patch
> modifies the configure.ac file, and there is no KMOD_AUTORECONF = YES in the
> kmod.mk file, why don't we clean that patch by removing the configure.ac
> bit?

Both problems were mentioned yesterday by Gustavo.
Apparently, KMOD_AUTORECONF is broken due to something with gtk-doc.
This should be fixed.

At the same time, my recent new patch to kmod did not correctly add
AUTORECONF (broken, but anyway) and thus does not yet take effect. If
AUTORECONF cannot be fixed, then the patch should be adapted to change
configure directly instead of configure.ac.

I did not yet have the time to look into this second thing.

Best regards,
Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-10  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-10  8:40 [Buildroot] [PATCH] kmod: add host-automake dependency Vicente Olivert Riera
2014-10-10  9:06 ` Thomas Petazzoni
2014-10-10  9:15   ` Vicente Olivert Riera
2014-10-10  9:37     ` Vicente Olivert Riera
2014-10-10  9:42     ` Thomas De Schampheleire

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.