All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marie Maurer <marie.maurer@pixida.de>
To: buildroot@busybox.net
Subject: [Buildroot] Problem adding a new package tpm2-tss-engine
Date: Mon, 24 Aug 2020 16:21:30 +0000	[thread overview]
Message-ID: <VI1PR03MB4528F54C1492D171A1B7B37B98560@VI1PR03MB4528.eurprd03.prod.outlook.com> (raw)
In-Reply-To: <20200824160337.GB2246@scaer>

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>

  reply	other threads:[~2020-08-24 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=VI1PR03MB4528F54C1492D171A1B7B37B98560@VI1PR03MB4528.eurprd03.prod.outlook.com \
    --to=marie.maurer@pixida.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

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

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is 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.