Skip to contentSkip to conversation

package/cryptsetup: fix build failure with libgcrypt

PATCH Applied Moritz Bitsch via buildroot 3 participants 5 messages Feb 17, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/cryptsetup: fix build failure with libgcrypt

From: Moritz Bitsch <[email protected]>

The patch 0001-Add-check-program-for-symver-attribute.patch touches a autoconf relevant file which causes a configure --recheck in the make step without proper CONF_ENV. Running autoreconf prevents this.

---
 package/cryptsetup/cryptsetup.mk | 1 +
 1 file changed, 1 insertion(+)
package/cryptsetup/cryptsetup.mk +1 -0
index 2e06047c56..8373f0ab74 100644
@@ -19,6 +19,7 @@ CRYPTSETUP_CPE_ID_VENDOR = cryptsetup_project
 CRYPTSETUP_INSTALL_STAGING = YES
 CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)"
 CRYPTSETUP_CONF_OPTS += --enable-blkid --enable-libargon2
+CRYPTSETUP_AUTORECONF = YES
 
 # cryptsetup uses libgcrypt by default, but can be configured to use OpenSSL
 # or kernel crypto modules instead
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi Moritz,

Quoted 7 lines

Il giorno 17 feb 2022, alle ore 08:55, Moritz Bitsch via buildroot <[email protected]> ha scritto:

From: Moritz Bitsch <[email protected]>

The patch 0001-Add-check-program-for-symver-attribute.patch touches a autoconf relevant file which causes a configure --recheck in the make step without proper CONF_ENV. Running autoreconf prevents this.

Thank you for the contribution, but Fabrice already sent a patch for that:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

I suggest you to always check patchwork before working on a patch. (Yes, it happened to me too some time :-)).

Best regards
Giulio

Quoted 16 lines

---
package/cryptsetup/cryptsetup.mk | 1 +

1 file changed, 1 insertion(+)
package/cryptsetup/cryptsetup.mk +0 -0
index 2e06047c56..8373f0ab74 100644
@@ -19,6 +19,7 @@ CRYPTSETUP_CPE_ID_VENDOR = cryptsetup_project

CRYPTSETUP_INSTALL_STAGING = YES
CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)" CRYPTSETUP_CONF_OPTS += --enable-blkid --enable-libargon2 +CRYPTSETUP_AUTORECONF = YES

Quoted 9 lines
# cryptsetup uses libgcrypt by default, but can be configured to use OpenSSL
# or kernel crypto modules instead
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Giulio, All,

On 2022-02-17 14:29 +0100, Giulio Benetti spake thusly:

Quoted 6 lines
Quoted 4 lines

Il giorno 17 feb 2022, alle ore 08:55, Moritz Bitsch via buildroot <[email protected]> ha scritto:
The patch 0001-Add-check-program-for-symver-attribute.patch touches
a autoconf relevant file which causes a configure --recheck in the
make step without proper CONF_ENV. Running autoreconf prevents this.

Thank you for the contribution, but Fabrice already sent a patch for that:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Yep, but in this case, I applied Moritz' patch, because Fabrice has waaaayyyy too many commits in his name already! ;-]

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hi Yann, Moritz,

Quoted 6 lines

Il giorno 17 feb 2022, alle ore 21:44, Yann E. MORIN <[email protected]> ha scritto:

Giulio, All,

On 2022-02-17 14:29 +0100, Giulio Benetti spake thusly:

Quoted 1 line
Quoted 1 line
Quoted 1 line

Il giorno 17 feb 2022, alle ore 08:55, Moritz Bitsch via buildroot <[email protected]> ha scritto:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

The patch 0001-Add-check-program-for-symver-attribute.patch touches a autoconf relevant file which causes a configure --recheck in the make step without proper CONF_ENV. Running autoreconf prevents this.

Thank you for the contribution, but Fabrice already sent a patch for that:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Yep, but in this case, I applied Moritz' patch, because Fabrice has waaaayyyy too many commits in his name already! ;-]

Yes, Moritz, feel free to send patches for other build failures you can find here in autobuilder:
http://autobuild.buildroot.net/

They are more than welcome!

Kind regards
Giulio

Quoted 15 lines

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Moritz Bitsch via buildroot

Moritz, All,

On 2022-02-17 08:43 +0100, Moritz Bitsch via buildroot spake thusly:

Quoted 5 lines

From: Moritz Bitsch <[email protected]>

The patch 0001-Add-check-program-for-symver-attribute.patch touches a autoconf relevant file which causes a configure --recheck in the make step without proper CONF_ENV. Running autoreconf prevents this.

I've added a reference to the commit sha1 that introduced the issue, as the patch by Fabrice did (as pointed out by Giulio).

Quoted 10 lines
---
 package/cryptsetup/cryptsetup.mk | 1 +
 1 file changed, 1 insertion(+)
package/cryptsetup/cryptsetup.mk +0 -0
index 2e06047c56..8373f0ab74 100644

package/cryptsetup/cryptsetup.mk CRYPTSETUP_CPE_ID_VENDOR = cryptsetup_project · line 22

Quoted 4 lines
package/cryptsetup/cryptsetup.mk +1 -0
@@ -19,6 +19,7 @@ CRYPTSETUP_CPE_ID_VENDOR = cryptsetup_project
 CRYPTSETUP_INSTALL_STAGING = YES
 CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)"
 CRYPTSETUP_CONF_OPTS += --enable-blkid --enable-libargon2
+CRYPTSETUP_AUTORECONF = YES

We also like to add a small comment to explain why autoreconf is needed, in this case just the name of the patch is suficient.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 9 lines
package/cryptsetup/cryptsetup.mk +0 -0
 # cryptsetup uses libgcrypt by default, but can be configured to use OpenSSL
 # or kernel crypto modules instead
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot