All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problem adding a new package tpm2-tss-engine
@ 2020-08-24 14:06 Marie Maurer
  2020-08-24 16:03 ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Marie Maurer @ 2020-08-24 14:06 UTC (permalink / raw)
  To: buildroot

Hello,

I am just trying to add a package tpm2-tss-engine.

I found build instruction here:

https://github.com/tpm2-software/tpm2-tss-engine/blob/master/INSTALL.md

I can build locally. Now I wanted to add this as buildroot package.

What I have done so far:

Config.in

config BR2_PACKAGE_TPM2_TSS_ENGINE
             bool "tpm2-tss-engine"
             depends on !BR2_STATIC_LIBS # tpm2-tss
             depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM # glibc < 2.20
             select BR2_PACKAGE_LIBQRENCODE
             select BR2_PACKAGE_TPM2_TSS
             help
               The tpm2-tss-engine project implements a cryptographic engine
               for OpenSSL for Trusted Platform Module (TPM 2.0) using the
               tpm2-tss software stack that follows the Trusted Computing
               Groups (TCG) TPM Software Stack (TSS 2.0). It uses the
               Enhanced System API (ESAPI) interface of the TSS 2.0 for
               downwards communication.
               It supports RSA decryption and signatures as well as
               ECDSA signatures.

               https://github.com/tpm2-software/tpm2-tss-engine

comment "tpm2-tss-engine needs a toolchain w/ dynamic library"
             depends on BR2_STATIC_LIBS
             depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM

tpm2-tss-engine.hash

# Locally computed:
sha256 2c92205c9d8c8f98bb6d4c68e810552fe0a8b4df3a08991bb5dac7087df004a2  tpm2-tss-engine-1.1.0-rc1.tar.gz
sha256 67bc21a0bff2b0890307cfaa883bd3f5337f461eb6d8a612a015cea6d704e9ed  LICENSE

tpm2-tss-engine.mk

################################################################################
#
# tpm2-tss-engine
#
################################################################################

TPM2_TSS_ENGINE_VERSION = 1.1.0-rc1
TPM2_TSS_ENGINE_SITE = $(call github,tpm2-software,tpm2-tss-engine,v$(TPM2_TSS_ENGINE_VERSION))
TPM2_TSS_ENGINE_LICENSE = BSD-3-Clause
TPM2_TSS_ENGINE_LICENSE_FILES = LICENSE
TPM2_TSS_ENGINE_DEPENDENCIES = libqrencode tpm2-tss host-pkgconf
TPM2_TSS_AUTORECONF = YES
TPM2_TSS_ENGINE_CONF_OPTS = \
             --disable-defaultflags \
             --disable-doxygen-doc \
             --disable-plymouth \
             --without-initramfstoolsdir \
             --without-mkinitcpiodir

define TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
    cd $(@D)/ && ./bootstrap

endef

TPM2_TSS_ENGINE_PRE_CONFIGURE_HOOKS += TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP

# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used
TPM2_TSS_ENGINE_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"

# do not build man pages
TPM2_TSS_ENGINE_CONF_ENV += ac_cv_path_PANDOC=''

$(eval $(autotools-package))

So far so good. It is downloading the package, calls bootstrap, which is part of the downloaded package.
Inside file bootstrap there is a call to autoreconf. The command autoreconfig is not found.

marie@2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ make
>>> tpm2-tss-engine 1.1.0-rc1 Configuring
cd /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1/ && ./bootstrap
./bootstrap: line 5: autoreconf: command not found
make: *** [package/pkg-generic.mk:239: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1/.stamp_configured] Error 127
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$<mailto:marie@2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$>

How do I solve this? Do I need some dependency that I want to used autoreconf?

Searching for autoreconf I find the following:

marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ find . | grep autoreconf
./output/build/host-autoconf-2.69/bin/autoreconf
./output/build/host-autoconf-2.69/bin/autoreconf.in
./output/build/host-autoconf-2.69/man/autoreconf.1
./output/build/host-autoconf-2.69/man/autoreconf.x
./output/build/host-autoconf-2.69/tests/autoreconf
./output/host/bin/autoreconf
./output/host/share/man/man1/autoreconf.1
./package/dc3dd/0002-fix-autoreconf.patch
./package/libcdaudio/0001-libcdaudio-enable-autoreconf.patch
./package/libstrophe/0001-make-autoreconfable.patch
./package/libtheora/0002-fix-autoreconf.patch
./package/popt/0002-fix-autoreconf.patch
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$<mailto:marie@2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$>

BTW: I am using raspberrypi3_defconfig for testing my changes.

Many thanks!

Best regards,

Marie








Pixida GmbH
Ungererstr. 129
80805 M?nchen

Amtsgericht M?nchen - HRB 173520
Gesch?ftsf?hrer Johann Neubauer, Panagiota Dimou



www.pixida.de<http://www.pixida.de/>

[PIXIDA]



Unsere Datenschutzgrunds?tze<http://www.pixida.com/grundsaetze.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200824/c82242ae/attachment.html>

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

* [Buildroot] Problem adding a new package tpm2-tss-engine
  2020-08-24 14:06 [Buildroot] Problem adding a new package tpm2-tss-engine Marie Maurer
@ 2020-08-24 16:03 ` Yann E. MORIN
  2020-08-24 16:21   ` Marie Maurer
  0 siblings, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2020-08-24 16:03 UTC (permalink / raw)
  To: buildroot

Marie, All,

On 2020-08-24 14:06 +0000, Marie Maurer spake thusly:
> Hello,
[--SNIP--]
> TPM2_TSS_AUTORECONF = YES

Typo in the name of that variable; it should be TPM2_TSS_ENGINE_AUTORECONF.

Run 'make check-package' which should hint at such typoes.

> define TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
>     cd $(@D)/ && ./bootstrap
> endef
> TPM2_TSS_ENGINE_PRE_CONFIGURE_HOOKS += TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP

No need for this hook, since you have _AUTORECONF, above.

Also, such hooks are usually bad, because such bootstrap scripts usually
do not have the proper variables and options that are needed to properly
autoreconf in the Buildroot context.

So I guess your issue stems from the typo in the _AUTORECONF variable.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] Problem adding a new package tpm2-tss-engine
  2020-08-24 16:03 ` Yann E. MORIN
@ 2020-08-24 16:21   ` Marie Maurer
  2020-08-24 16:38     ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Marie Maurer @ 2020-08-24 16:21 UTC (permalink / raw)
  To: buildroot

Hi Yann,

thanks for your answer!

Unfortunately no change, same error. I have already seen/found the type after I sent the email.
Thanks for the make check-package (it needs "python", I need to add a link to python3 to get it working).
It found 2 things, which I fixed, but still same error.

It outputs:

marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ make check-package
find /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1 -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' \) \
        -exec ./utils/check-package {} +
43352 lines processed
0 warnings generated
35180 lines processed
0 warnings generated
34083 lines processed
0 warnings generated
20158 lines processed
0 warnings generated
package/tpm2-tss-engine/tpm2-tss-engine.mk:11: line contains trailing whitespace
package/tpm2-tss-engine/tpm2-tss-engine.mk:21: expected indent with tabs
29560 lines processed
2 warnings generated
22558 lines processed
0 warnings generated
make: *** [Makefile:1212: check-package] Error 1
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ vi package/tpm2-tss-engine/tpm2-tss-engine.mk
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ make check-package
find /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1 -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' \) \
        -exec ./utils/check-package {} +
43352 lines processed
0 warnings generated
35180 lines processed
0 warnings generated
34083 lines processed
0 warnings generated
20158 lines processed
0 warnings generated
29560 lines processed
0 warnings generated
22558 lines processed
0 warnings generated
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ cat package/tpm2-tss-engine/tpm2-tss-engine.mk
################################################################################
#
# tpm2-tss-engine
#
################################################################################

TPM2_TSS_ENGINE_VERSION = 1.1.0-rc1
TPM2_TSS_ENGINE_SITE = $(call github,tpm2-software,tpm2-tss-engine,v$(TPM2_TSS_ENGINE_VERSION))
TPM2_TSS_ENGINE_LICENSE = BSD-3-Clause
TPM2_TSS_ENGINE_LICENSE_FILES = LICENSE
TPM2_TSS_ENGINE_DEPENDENCIES = libqrencode tpm2-tss host-pkgconf
TPM2_TSS_ENGINE_AUTORECONF = YES
TPM2_TSS_ENGINE_CONF_OPTS = \
        --disable-defaultflags \
        --disable-doxygen-doc \
        --disable-plymouth \
        --without-initramfstoolsdir \
        --without-mkinitcpiodir

define TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
        cd $(@D)/ && ./bootstrap

endef

TPM2_TSS_ENGINE_PRE_CONFIGURE_HOOKS += TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP

# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used
TPM2_TSS_ENGINE_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"

# do not build man pages
TPM2_TSS_ENGINE_CONF_ENV += ac_cv_path_PANDOC=''

$(eval $(autotools-package))
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ make
>>> tpm2-tss-engine 1.1.0-rc1 Configuring
cd /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1/ && ./bootstrap
./bootstrap: line 5: autoreconf: command not found
make: *** [package/pkg-generic.mk:239: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1/.stamp_configured] Error 127
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$

Best regards,

Marie

-----Urspr?ngliche Nachricht-----
Von: Yann E. MORIN <yann.morin.1998@free.fr>
Gesendet: Montag, 24. August 2020 18:04
An: Marie Maurer <marie.maurer@pixida.de>
Cc: buildroot at busybox.net
Betreff: Re: [Buildroot] Problem adding a new package tpm2-tss-engine

Marie, All,

On 2020-08-24 14:06 +0000, Marie Maurer spake thusly:
> Hello,
[--SNIP--]
> TPM2_TSS_AUTORECONF = YES

Typo in the name of that variable; it should be TPM2_TSS_ENGINE_AUTORECONF.

Run 'make check-package' which should hint at such typoes.

> define TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
>     cd $(@D)/ && ./bootstrap
> endef
> TPM2_TSS_ENGINE_PRE_CONFIGURE_HOOKS +=
> TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP

No need for this hook, since you have _AUTORECONF, above.

Also, such hooks are usually bad, because such bootstrap scripts usually do not have the proper variables and options that are needed to properly autoreconf in the Buildroot context.

So I guess your issue stems from the typo in the _AUTORECONF variable.

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
| conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


Pixida GmbH
Ungererstr. 129
80805 M?nchen

Amtsgericht M?nchen - HRB 173520
Gesch?ftsf?hrer Johann Neubauer, Panagiota Dimou



www.pixida.de<http://www.pixida.de/>

[PIXIDA]



Unsere Datenschutzgrunds?tze<http://www.pixida.com/grundsaetze.html>

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

* [Buildroot] Problem adding a new package tpm2-tss-engine
  2020-08-24 16:21   ` Marie Maurer
@ 2020-08-24 16:38     ` Yann E. MORIN
  2020-08-25  7:33       ` Marie Maurer
  0 siblings, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2020-08-24 16:38 UTC (permalink / raw)
  To: buildroot

Marie, All,

On 2020-08-24 16:21 +0000, Marie Maurer spake thusly:
> define TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
>         cd $(@D)/ && ./bootstrap
> endef
> TPM2_TSS_ENGINE_PRE_CONFIGURE_HOOKS += TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP

In case I was not clear in my previous reply: do _not_ use the bootstrap
script, it is not needed.  So, drop your TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
macro altogether.

Setting _AUTORECONF = YES should be enough to trigger the
autoreconfiguring of the package.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] Problem adding a new package tpm2-tss-engine
  2020-08-24 16:38     ` Yann E. MORIN
@ 2020-08-25  7:33       ` Marie Maurer
  2020-08-27  7:59         ` Marie Maurer
  0 siblings, 1 reply; 7+ messages in thread
From: Marie Maurer @ 2020-08-25  7:33 UTC (permalink / raw)
  To: buildroot

Hallo Yann,

you were right, I have overseen, that I must remove also remove TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP.

It makes progress:

marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ make
>>> tpm2-tss-engine 1.1.0-rc1 Configuring
>>> tpm2-tss-engine 1.1.0-rc1 Autoreconfiguring
aclocal: installing 'm4/libtool.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/libtool.m4'
aclocal: installing 'm4/ltoptions.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/ltoptions.m4'
aclocal: installing 'm4/ltsugar.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/ltsugar.m4'
aclocal: installing 'm4/ltversion.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/ltversion.m4'
aclocal: installing 'm4/lt~obsolete.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/lt~obsolete.m4'
aclocal: installing 'm4/pkg.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/pkg.m4'
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_DIRS, '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'
configure.ac:51: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:76: error: possibly undefined macro: AS_IF
configure.ac:121: error: possibly undefined macro: AC_MSG_WARN
configure.ac:173: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/bin/autoconf failed with exit status: 1
make: *** [package/pkg-generic.mk:239: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1/.stamp_configured] Error 1
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$

I must look how to deal with these new errors.

Best regards,

Marie

-----Urspr?ngliche Nachricht-----
Von: Yann E. MORIN <yann.morin.1998@free.fr>
Gesendet: Montag, 24. August 2020 18:38
An: Marie Maurer <marie.maurer@pixida.de>
Cc: buildroot at busybox.net
Betreff: Re: [Buildroot] Problem adding a new package tpm2-tss-engine

Marie, All,

On 2020-08-24 16:21 +0000, Marie Maurer spake thusly:
> define TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
>         cd $(@D)/ && ./bootstrap
> endef
> TPM2_TSS_ENGINE_PRE_CONFIGURE_HOOKS +=
> TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP

In case I was not clear in my previous reply: do _not_ use the bootstrap script, it is not needed.  So, drop your TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
macro altogether.

Setting _AUTORECONF = YES should be enough to trigger the autoreconfiguring of the package.

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
| conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


Pixida GmbH
Ungererstr. 129
80805 M?nchen

Amtsgericht M?nchen - HRB 173520
Gesch?ftsf?hrer Johann Neubauer, Panagiota Dimou



www.pixida.de<http://www.pixida.de/>

[PIXIDA]



Unsere Datenschutzgrunds?tze<http://www.pixida.com/grundsaetze.html>

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

* [Buildroot] Problem adding a new package tpm2-tss-engine
  2020-08-25  7:33       ` Marie Maurer
@ 2020-08-27  7:59         ` Marie Maurer
  2020-11-30 13:29           ` Piotr Łobacz
  0 siblings, 1 reply; 7+ messages in thread
From: Marie Maurer @ 2020-08-27  7:59 UTC (permalink / raw)
  To: buildroot

Hello,

unfortunately I was not yet able to solve the compilation problem.
Can someone give a hint how to deal with the following errors:

>>> tpm2-tss-engine 1.1.0-rc1 Extracting
gzip -d -c /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/dl/tpm2-tss-engine/tpm2-tss-engine-1.1.0-rc1.tar.gz | /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/bin/tar --strip-components=1 -C /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1   -xf -
>>> tpm2-tss-engine 1.1.0-rc1 Patching
>>> tpm2-tss-engine 1.1.0-rc1 Updating config.sub and config.guess
for file in config.guess config.sub; do for i in $(find /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1 -name $file); do cp support/gnuconfig/$file $i; done; done
>>> tpm2-tss-engine 1.1.0-rc1 Configuring
>>> tpm2-tss-engine 1.1.0-rc1 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_DIRS, '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'
configure.ac:51: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:76: error: possibly undefined macro: AS_IF
configure.ac:121: error: possibly undefined macro: AC_MSG_WARN
configure.ac:173: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/bin/autoconf failed with exit status: 1
make: *** [package/pkg-generic.mk:239: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1/.stamp_configured] Error 1
marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$

Best regards,
Marie

-----Urspr?ngliche Nachricht-----
Von: Marie Maurer
Gesendet: Dienstag, 25. August 2020 09:34
An: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: buildroot at busybox.net
Betreff: AW: [Buildroot] Problem adding a new package tpm2-tss-engine

Hallo Yann,

you were right, I have overseen, that I must remove also remove TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP.

It makes progress:

marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$ make
>>> tpm2-tss-engine 1.1.0-rc1 Configuring tpm2-tss-engine 1.1.0-rc1
>>> Autoreconfiguring
aclocal: installing 'm4/libtool.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/libtool.m4'
aclocal: installing 'm4/ltoptions.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/ltoptions.m4'
aclocal: installing 'm4/ltsugar.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/ltsugar.m4'
aclocal: installing 'm4/ltversion.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/ltversion.m4'
aclocal: installing 'm4/lt~obsolete.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/lt~obsolete.m4'
aclocal: installing 'm4/pkg.m4' from '/home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/share/aclocal/pkg.m4'
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_DIRS, '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'
configure.ac:51: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:76: error: possibly undefined macro: AS_IF
configure.ac:121: error: possibly undefined macro: AC_MSG_WARN
configure.ac:173: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/host/bin/autoconf failed with exit status: 1
make: *** [package/pkg-generic.mk:239: /home/marie/buildroot-2020.08-rc1/buildroot-2020.08-rc1/output/build/tpm2-tss-engine-1.1.0-rc1/.stamp_configured] Error 1 marie at 2020L009:~/buildroot-2020.08-rc1/buildroot-2020.08-rc1$

I must look how to deal with these new errors.

Best regards,

Marie

-----Urspr?ngliche Nachricht-----
Von: Yann E. MORIN <yann.morin.1998@free.fr>
Gesendet: Montag, 24. August 2020 18:38
An: Marie Maurer <marie.maurer@pixida.de>
Cc: buildroot at busybox.net
Betreff: Re: [Buildroot] Problem adding a new package tpm2-tss-engine

Marie, All,

On 2020-08-24 16:21 +0000, Marie Maurer spake thusly:
> define TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
>         cd $(@D)/ && ./bootstrap
> endef
> TPM2_TSS_ENGINE_PRE_CONFIGURE_HOOKS +=
> TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP

In case I was not clear in my previous reply: do _not_ use the bootstrap script, it is not needed.  So, drop your TPM2_TSS_ENGINE_PRE_CONFIGURE_BOOTSTRAP
macro altogether.

Setting _AUTORECONF = YES should be enough to trigger the autoreconfiguring of the package.

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
| conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


Pixida GmbH
Ungererstr. 129
80805 M?nchen

Amtsgericht M?nchen - HRB 173520
Gesch?ftsf?hrer Johann Neubauer, Panagiota Dimou



www.pixida.de<http://www.pixida.de/>

[PIXIDA]



Unsere Datenschutzgrunds?tze<http://www.pixida.com/grundsaetze.html>

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

* [Buildroot] Problem adding a new package tpm2-tss-engine
  2020-08-27  7:59         ` Marie Maurer
@ 2020-11-30 13:29           ` Piotr Łobacz
  0 siblings, 0 replies; 7+ messages in thread
From: Piotr Łobacz @ 2020-11-30 13:29 UTC (permalink / raw)
  To: buildroot

Hi Marie,
i have used your packages files and solved your issue. The problem was that
the tpm2-tss-engine.mk was incomplete. I had to add host-autoconf-archive to
the dependencies and also this line:

 TPM2_TSS_ENGINE_AUTORECONF_OPTS = -I $(HOST_DIR)/share/autoconf-archive 

after TPM2_TSS_ENGINE_AUTORECONF = YES

and all is building correctly.

BR
Piotr



--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/

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

end of thread, other threads:[~2020-11-30 13:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-24 14:06 [Buildroot] Problem adding a new package tpm2-tss-engine Marie Maurer
2020-08-24 16:03 ` Yann E. MORIN
2020-08-24 16:21   ` Marie Maurer
2020-08-24 16:38     ` Yann E. MORIN
2020-08-25  7:33       ` Marie Maurer
2020-08-27  7:59         ` Marie Maurer
2020-11-30 13:29           ` Piotr Łobacz

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.