All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
@ 2018-10-31 20:53 Nuno Mota
  2018-11-01 11:04 ` Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Nuno Mota @ 2018-10-31 20:53 UTC (permalink / raw)
  To: buildroot

Hi,
I'm using buildroot for a project and so far so good. I've added a lot of
perl modules, but a new one just failed. I have no clue how to fix this.
I simply cloned this git project to use swupdate
https://github.com/Trellis-Logic/buildroot-external/tree/swupdate

>>> perl-termreadkey 2.37 Building
cd
/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/
&& if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB=
PERL_USE_UNSAFE_INC=1
/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl Build
build; else /usr/bin/make -j1
PERL_INC=/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/perl5/5.26.2/i686-linux/CORE
FIXIN=:  pure_all; fi
"/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
-MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs
blib/arch/auto/Term/ReadKey/ReadKey.bs 644
"/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
"-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm
Creating ReadKey.pm
Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for module
Term::ReadKey: blib/arch/auto/Term/ReadKey/ReadKey.so: wrong ELF class:
ELFCLASS32 at
/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
line 193.
 at
/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
line 95.
DynaLoader::croak("Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for
modul"...) called at
/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
line 193
DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515
Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255
make[1]: ***
[/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built]
Error 2
make: *** [_all] Error 2
make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'

This is now my external config:
BR2_x86_nocona=y
BR2_KERNEL_HEADERS_4_15=y
BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
BR2_PTHREAD_DEBUG=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="gsgateway"
BR2_TARGET_GENERIC_ISSUE="Welcome"
BR2_TARGET_GENERIC_PASSWD_SHA512=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_ROOTFS_USERS_TABLES="../base_external/configs/users.config"
BR2_ROOTFS_OVERLAY="../base_external/rootfs-overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="../base_external/scripts/pre-image.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="../base_external/scripts/post-image.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../base_external/configs/linux_kernel_defconfig"
BR2_LINUX_KERNEL_INSTALL_TARGET=y
BR2_PACKAGE_BUSYBOX_CONFIG="../base_external/configs/busybox.config"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_VLC=y
BR2_PACKAGE_DMIDECODE=y
BR2_PACKAGE_PERL=y
BR2_PACKAGE_PERL_MOJOLICIOUS_PLUGIN_AUTHENTICATION=y
BR2_PACKAGE_EVENTLOG=y
BR2_PACKAGE_LINUX_PAM=y
BR2_PACKAGE_PCRE_UCP=y
BR2_PACKAGE_BWM_NG=y
BR2_PACKAGE_IFTOP=y
BR2_PACKAGE_IFUPDOWN=y
BR2_PACKAGE_IPTABLES=y
BR2_PACKAGE_NGINX=y
BR2_PACKAGE_NGINX_HTTP_CACHE=y
BR2_PACKAGE_NGINX_HTTP_SSL_MODULE=y
BR2_PACKAGE_NGINX_HTTP_V2_MODULE=y
BR2_PACKAGE_OPENSSH=y
BR2_PACKAGE_OPENVPN=y
BR2_PACKAGE_TCPDUMP=y
BR2_PACKAGE_TRACEROUTE=y
BR2_PACKAGE_VSFTPD=y
BR2_PACKAGE_FILE=y
BR2_PACKAGE_LOGROTATE=y
BR2_PACKAGE_SUDO=y
BR2_PACKAGE_HTOP=y
BR2_PACKAGE_SWUPDATE=y
BR2_PACKAGE_SWUPDATE_CONFIG="../base_external/configs/swupdate.config"
# BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE is not set
BR2_PACKAGE_UTIL_LINUX_FSCK=y
BR2_PACKAGE_UTIL_LINUX_KILL=y
BR2_PACKAGE_UTIL_LINUX_LAST=y
BR2_PACKAGE_UTIL_LINUX_LOGGER=y
BR2_PACKAGE_UTIL_LINUX_MORE=y
BR2_PACKAGE_UTIL_LINUX_MOUNT=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_GRUB2=y
BR2_TARGET_GRUB2_BUILTIN_MODULES="boot linux ext2 fat squash4 part_msdos
part_gpt normal biosdisk loadenv search"
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_PERL_SWITCH=y
BR2_PACKAGE_PERL_DATA_VALIDATE_IP=y
BR2_PACKAGE_PERL_AUTHEN_PAM=y
BR2_PACKAGE_PERL_TERMREADKEY=y

Thank you,
NRM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181031/ada8aaf3/attachment.html>

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-10-31 20:53 [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey Nuno Mota
@ 2018-11-01 11:04 ` Thomas Petazzoni
  2018-11-01 17:36   ` François Perrad
  2018-11-05 21:25 ` Christopher McCrory
  2018-11-08 16:43 ` Christopher McCrory
  2 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2018-11-01 11:04 UTC (permalink / raw)
  To: buildroot

Hello Nuno,

I'm adding Fran?ois and Christopher in Cc, since they are the two
developers using/working on Perl support in Buildroot.

On Wed, 31 Oct 2018 20:53:14 +0000, Nuno Mota wrote:
> Hi,
> I'm using buildroot for a project and so far so good. I've added a lot of
> perl modules, but a new one just failed. I have no clue how to fix this.
> I simply cloned this git project to use swupdate
> https://github.com/Trellis-Logic/buildroot-external/tree/swupdate

Could you share your entire Buildroot tree, with the perl-termreadkey
package and its dependencies ?

Thanks!

Thomas

(I'm keeping the full build output below, so that Fran?ois and
Christopher can easily see it).

> 
> >>> perl-termreadkey 2.37 Building  
> cd
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/
> && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB=
> PERL_USE_UNSAFE_INC=1
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl Build
> build; else /usr/bin/make -j1
> PERL_INC=/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/perl5/5.26.2/i686-linux/CORE
> FIXIN=:  pure_all; fi
> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
> -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs
> blib/arch/auto/Term/ReadKey/ReadKey.bs 644
> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
> "-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm
> Creating ReadKey.pm
> Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for module
> Term::ReadKey: blib/arch/auto/Term/ReadKey/ReadKey.so: wrong ELF class:
> ELFCLASS32 at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 193.
>  at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 95.
> DynaLoader::croak("Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for
> modul"...) called at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 193
> DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515
> Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255
> make[1]: ***
> [/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built]
> Error 2
> make: *** [_all] Error 2
> make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'
> 
> This is now my external config:
> BR2_x86_nocona=y
> BR2_KERNEL_HEADERS_4_15=y
> BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
> BR2_PTHREAD_DEBUG=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_TARGET_GENERIC_HOSTNAME="gsgateway"
> BR2_TARGET_GENERIC_ISSUE="Welcome"
> BR2_TARGET_GENERIC_PASSWD_SHA512=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
> BR2_ROOTFS_USERS_TABLES="../base_external/configs/users.config"
> BR2_ROOTFS_OVERLAY="../base_external/rootfs-overlay"
> BR2_ROOTFS_POST_BUILD_SCRIPT="../base_external/scripts/pre-image.sh"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="../base_external/scripts/post-image.sh"
> BR2_LINUX_KERNEL=y
> BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../base_external/configs/linux_kernel_defconfig"
> BR2_LINUX_KERNEL_INSTALL_TARGET=y
> BR2_PACKAGE_BUSYBOX_CONFIG="../base_external/configs/busybox.config"
> BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> BR2_PACKAGE_VLC=y
> BR2_PACKAGE_DMIDECODE=y
> BR2_PACKAGE_PERL=y
> BR2_PACKAGE_PERL_MOJOLICIOUS_PLUGIN_AUTHENTICATION=y
> BR2_PACKAGE_EVENTLOG=y
> BR2_PACKAGE_LINUX_PAM=y
> BR2_PACKAGE_PCRE_UCP=y
> BR2_PACKAGE_BWM_NG=y
> BR2_PACKAGE_IFTOP=y
> BR2_PACKAGE_IFUPDOWN=y
> BR2_PACKAGE_IPTABLES=y
> BR2_PACKAGE_NGINX=y
> BR2_PACKAGE_NGINX_HTTP_CACHE=y
> BR2_PACKAGE_NGINX_HTTP_SSL_MODULE=y
> BR2_PACKAGE_NGINX_HTTP_V2_MODULE=y
> BR2_PACKAGE_OPENSSH=y
> BR2_PACKAGE_OPENVPN=y
> BR2_PACKAGE_TCPDUMP=y
> BR2_PACKAGE_TRACEROUTE=y
> BR2_PACKAGE_VSFTPD=y
> BR2_PACKAGE_FILE=y
> BR2_PACKAGE_LOGROTATE=y
> BR2_PACKAGE_SUDO=y
> BR2_PACKAGE_HTOP=y
> BR2_PACKAGE_SWUPDATE=y
> BR2_PACKAGE_SWUPDATE_CONFIG="../base_external/configs/swupdate.config"
> # BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE is not set
> BR2_PACKAGE_UTIL_LINUX_FSCK=y
> BR2_PACKAGE_UTIL_LINUX_KILL=y
> BR2_PACKAGE_UTIL_LINUX_LAST=y
> BR2_PACKAGE_UTIL_LINUX_LOGGER=y
> BR2_PACKAGE_UTIL_LINUX_MORE=y
> BR2_PACKAGE_UTIL_LINUX_MOUNT=y
> BR2_TARGET_ROOTFS_EXT2=y
> BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
> # BR2_TARGET_ROOTFS_TAR is not set
> BR2_TARGET_GRUB2=y
> BR2_TARGET_GRUB2_BUILTIN_MODULES="boot linux ext2 fat squash4 part_msdos
> part_gpt normal biosdisk loadenv search"
> BR2_PACKAGE_HOST_GENIMAGE=y
> BR2_PACKAGE_PERL_SWITCH=y
> BR2_PACKAGE_PERL_DATA_VALIDATE_IP=y
> BR2_PACKAGE_PERL_AUTHEN_PAM=y
> BR2_PACKAGE_PERL_TERMREADKEY=y
> 
> Thank you,
> NRM



-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-11-01 11:04 ` Thomas Petazzoni
@ 2018-11-01 17:36   ` François Perrad
  2018-11-02 12:27     ` Nuno Mota
  0 siblings, 1 reply; 9+ messages in thread
From: François Perrad @ 2018-11-01 17:36 UTC (permalink / raw)
  To: buildroot

Le jeu. 1 nov. 2018 ? 12:04, Thomas Petazzoni <thomas.petazzoni@bootlin.com>
a ?crit :

> Hello Nuno,
>
> I'm adding Fran?ois and Christopher in Cc, since they are the two
> developers using/working on Perl support in Buildroot.
>
>
Christopher works on this package, see
https://patchwork.ozlabs.org/patch/959629/
https://patchwork.ozlabs.org/patch/956600/

This package is not cross-compilation friendly.

Fran?ois


>
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181101/4e70c569/attachment.html>

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-11-01 17:36   ` François Perrad
@ 2018-11-02 12:27     ` Nuno Mota
  2018-11-03 21:18       ` Christopher McCrory
  0 siblings, 1 reply; 9+ messages in thread
From: Nuno Mota @ 2018-11-02 12:27 UTC (permalink / raw)
  To: buildroot

I see this is tricky.
What would be the best way to tackle this?

Regards,
Nuno

Fran?ois Perrad <francois.perrad@gadz.org> escreveu no dia quinta,
1/11/2018 ?(s) 17:36:

>
>
> Le jeu. 1 nov. 2018 ? 12:04, Thomas Petazzoni <
> thomas.petazzoni at bootlin.com> a ?crit :
>
>> Hello Nuno,
>>
>> I'm adding Fran?ois and Christopher in Cc, since they are the two
>> developers using/working on Perl support in Buildroot.
>>
>>
> Christopher works on this package, see
> https://patchwork.ozlabs.org/patch/959629/
> https://patchwork.ozlabs.org/patch/956600/
>
> This package is not cross-compilation friendly.
>
> Fran?ois
>
>
>>
>> --
>> Thomas Petazzoni, CTO, Bootlin
>> Embedded Linux and Kernel engineering
>> https://bootlin.com
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181102/45f22d13/attachment.html>

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-11-02 12:27     ` Nuno Mota
@ 2018-11-03 21:18       ` Christopher McCrory
  0 siblings, 0 replies; 9+ messages in thread
From: Christopher McCrory @ 2018-11-03 21:18 UTC (permalink / raw)
  To: buildroot

I've been working on other stuff lately, I should be able to pop something
out tomorrow.

On Fri, Nov 2, 2018, 5:27 AM Nuno Mota <nrmmota@gmail.com> wrote:

> I see this is tricky.
> What would be the best way to tackle this?
>
> Regards,
> Nuno
>
> Fran?ois Perrad <francois.perrad@gadz.org> escreveu no dia quinta,
> 1/11/2018 ?(s) 17:36:
>
>>
>>
>> Le jeu. 1 nov. 2018 ? 12:04, Thomas Petazzoni <
>> thomas.petazzoni at bootlin.com> a ?crit :
>>
>>> Hello Nuno,
>>>
>>> I'm adding Fran?ois and Christopher in Cc, since they are the two
>>> developers using/working on Perl support in Buildroot.
>>>
>>>
>> Christopher works on this package, see
>> https://patchwork.ozlabs.org/patch/959629/
>> https://patchwork.ozlabs.org/patch/956600/
>>
>> This package is not cross-compilation friendly.
>>
>> Fran?ois
>>
>>
>>>
>>> --
>>> Thomas Petazzoni, CTO, Bootlin
>>> Embedded Linux and Kernel engineering
>>> https://bootlin.com
>>> _______________________________________________
>>> buildroot mailing list
>>> buildroot at busybox.net
>>> http://lists.busybox.net/mailman/listinfo/buildroot
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181103/bafb0207/attachment.html>

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-10-31 20:53 [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey Nuno Mota
  2018-11-01 11:04 ` Thomas Petazzoni
@ 2018-11-05 21:25 ` Christopher McCrory
  2018-11-05 21:36   ` Nuno Mota
  2018-11-08 16:43 ` Christopher McCrory
  2 siblings, 1 reply; 9+ messages in thread
From: Christopher McCrory @ 2018-11-05 21:25 UTC (permalink / raw)
  To: buildroot

Hello

On phone so sorry for top posting. I was able to get an error, but I don't
know why yet (worked fine last time I tried it). Will look at it again
tomorrow.

On Wed, Oct 31, 2018, 1:53 PM Nuno Mota <nrmmota@gmail.com> wrote:

> Hi,
> I'm using buildroot for a project and so far so good. I've added a lot of
> perl modules, but a new one just failed. I have no clue how to fix this.
> I simply cloned this git project to use swupdate
> https://github.com/Trellis-Logic/buildroot-external/tree/swupdate
>
> >>> perl-termreadkey 2.37 Building
> cd
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/
> && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB=
> PERL_USE_UNSAFE_INC=1
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl Build
> build; else /usr/bin/make -j1
> PERL_INC=/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/perl5/5.26.2/i686-linux/CORE
> FIXIN=:  pure_all; fi
> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
> -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs
> blib/arch/auto/Term/ReadKey/ReadKey.bs 644
> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
> "-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm
> Creating ReadKey.pm
> Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for module
> Term::ReadKey: blib/arch/auto/Term/ReadKey/ReadKey.so: wrong ELF class:
> ELFCLASS32 at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 193.
>  at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 95.
> DynaLoader::croak("Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for
> modul"...) called at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 193
> DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515
> Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255
> make[1]: ***
> [/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built]
> Error 2
> make: *** [_all] Error 2
> make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'
>
> This is now my external config:
> BR2_x86_nocona=y
> BR2_KERNEL_HEADERS_4_15=y
> BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
> BR2_PTHREAD_DEBUG=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_TARGET_GENERIC_HOSTNAME="gsgateway"
> BR2_TARGET_GENERIC_ISSUE="Welcome"
> BR2_TARGET_GENERIC_PASSWD_SHA512=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
> BR2_ROOTFS_USERS_TABLES="../base_external/configs/users.config"
> BR2_ROOTFS_OVERLAY="../base_external/rootfs-overlay"
> BR2_ROOTFS_POST_BUILD_SCRIPT="../base_external/scripts/pre-image.sh"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="../base_external/scripts/post-image.sh"
> BR2_LINUX_KERNEL=y
> BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
>
> BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../base_external/configs/linux_kernel_defconfig"
> BR2_LINUX_KERNEL_INSTALL_TARGET=y
> BR2_PACKAGE_BUSYBOX_CONFIG="../base_external/configs/busybox.config"
> BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> BR2_PACKAGE_VLC=y
> BR2_PACKAGE_DMIDECODE=y
> BR2_PACKAGE_PERL=y
> BR2_PACKAGE_PERL_MOJOLICIOUS_PLUGIN_AUTHENTICATION=y
> BR2_PACKAGE_EVENTLOG=y
> BR2_PACKAGE_LINUX_PAM=y
> BR2_PACKAGE_PCRE_UCP=y
> BR2_PACKAGE_BWM_NG=y
> BR2_PACKAGE_IFTOP=y
> BR2_PACKAGE_IFUPDOWN=y
> BR2_PACKAGE_IPTABLES=y
> BR2_PACKAGE_NGINX=y
> BR2_PACKAGE_NGINX_HTTP_CACHE=y
> BR2_PACKAGE_NGINX_HTTP_SSL_MODULE=y
> BR2_PACKAGE_NGINX_HTTP_V2_MODULE=y
> BR2_PACKAGE_OPENSSH=y
> BR2_PACKAGE_OPENVPN=y
> BR2_PACKAGE_TCPDUMP=y
> BR2_PACKAGE_TRACEROUTE=y
> BR2_PACKAGE_VSFTPD=y
> BR2_PACKAGE_FILE=y
> BR2_PACKAGE_LOGROTATE=y
> BR2_PACKAGE_SUDO=y
> BR2_PACKAGE_HTOP=y
> BR2_PACKAGE_SWUPDATE=y
> BR2_PACKAGE_SWUPDATE_CONFIG="../base_external/configs/swupdate.config"
> # BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE is not set
> BR2_PACKAGE_UTIL_LINUX_FSCK=y
> BR2_PACKAGE_UTIL_LINUX_KILL=y
> BR2_PACKAGE_UTIL_LINUX_LAST=y
> BR2_PACKAGE_UTIL_LINUX_LOGGER=y
> BR2_PACKAGE_UTIL_LINUX_MORE=y
> BR2_PACKAGE_UTIL_LINUX_MOUNT=y
> BR2_TARGET_ROOTFS_EXT2=y
> BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
> # BR2_TARGET_ROOTFS_TAR is not set
> BR2_TARGET_GRUB2=y
> BR2_TARGET_GRUB2_BUILTIN_MODULES="boot linux ext2 fat squash4 part_msdos
> part_gpt normal biosdisk loadenv search"
> BR2_PACKAGE_HOST_GENIMAGE=y
> BR2_PACKAGE_PERL_SWITCH=y
> BR2_PACKAGE_PERL_DATA_VALIDATE_IP=y
> BR2_PACKAGE_PERL_AUTHEN_PAM=y
> BR2_PACKAGE_PERL_TERMREADKEY=y
>
> Thank you,
> NRM
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181105/88461a09/attachment.html>

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-11-05 21:25 ` Christopher McCrory
@ 2018-11-05 21:36   ` Nuno Mota
  0 siblings, 0 replies; 9+ messages in thread
From: Nuno Mota @ 2018-11-05 21:36 UTC (permalink / raw)
  To: buildroot

Ok. Thanks for the update.

Regards,
Nuno

On Mon, Nov 5, 2018, 21:25 Christopher McCrory <chrismcc@gmail.com wrote:

> Hello
>
> On phone so sorry for top posting. I was able to get an error, but I don't
> know why yet (worked fine last time I tried it). Will look at it again
> tomorrow.
>
> On Wed, Oct 31, 2018, 1:53 PM Nuno Mota <nrmmota@gmail.com> wrote:
>
>> Hi,
>> I'm using buildroot for a project and so far so good. I've added a lot of
>> perl modules, but a new one just failed. I have no clue how to fix this.
>> I simply cloned this git project to use swupdate
>> https://github.com/Trellis-Logic/buildroot-external/tree/swupdate
>>
>> >>> perl-termreadkey 2.37 Building
>> cd
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/
>> && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB=
>> PERL_USE_UNSAFE_INC=1
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl Build
>> build; else /usr/bin/make -j1
>> PERL_INC=/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/perl5/5.26.2/i686-linux/CORE
>> FIXIN=:  pure_all; fi
>> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
>> -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs
>> blib/arch/auto/Term/ReadKey/ReadKey.bs 644
>> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
>> "-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm
>> Creating ReadKey.pm
>> Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for module
>> Term::ReadKey: blib/arch/auto/Term/ReadKey/ReadKey.so: wrong ELF class:
>> ELFCLASS32 at
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
>> line 193.
>>  at
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
>> line 95.
>> DynaLoader::croak("Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so'
>> for modul"...) called at
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
>> line 193
>> DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515
>> Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255
>> make[1]: ***
>> [/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built]
>> Error 2
>> make: *** [_all] Error 2
>> make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'
>>
>> This is now my external config:
>> BR2_x86_nocona=y
>> BR2_KERNEL_HEADERS_4_15=y
>> BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
>> BR2_PTHREAD_DEBUG=y
>> BR2_TOOLCHAIN_BUILDROOT_CXX=y
>> BR2_TARGET_GENERIC_HOSTNAME="gsgateway"
>> BR2_TARGET_GENERIC_ISSUE="Welcome"
>> BR2_TARGET_GENERIC_PASSWD_SHA512=y
>> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
>> # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
>> BR2_ROOTFS_USERS_TABLES="../base_external/configs/users.config"
>> BR2_ROOTFS_OVERLAY="../base_external/rootfs-overlay"
>> BR2_ROOTFS_POST_BUILD_SCRIPT="../base_external/scripts/pre-image.sh"
>> BR2_ROOTFS_POST_IMAGE_SCRIPT="../base_external/scripts/post-image.sh"
>> BR2_LINUX_KERNEL=y
>> BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
>>
>> BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../base_external/configs/linux_kernel_defconfig"
>> BR2_LINUX_KERNEL_INSTALL_TARGET=y
>> BR2_PACKAGE_BUSYBOX_CONFIG="../base_external/configs/busybox.config"
>> BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
>> BR2_PACKAGE_VLC=y
>> BR2_PACKAGE_DMIDECODE=y
>> BR2_PACKAGE_PERL=y
>> BR2_PACKAGE_PERL_MOJOLICIOUS_PLUGIN_AUTHENTICATION=y
>> BR2_PACKAGE_EVENTLOG=y
>> BR2_PACKAGE_LINUX_PAM=y
>> BR2_PACKAGE_PCRE_UCP=y
>> BR2_PACKAGE_BWM_NG=y
>> BR2_PACKAGE_IFTOP=y
>> BR2_PACKAGE_IFUPDOWN=y
>> BR2_PACKAGE_IPTABLES=y
>> BR2_PACKAGE_NGINX=y
>> BR2_PACKAGE_NGINX_HTTP_CACHE=y
>> BR2_PACKAGE_NGINX_HTTP_SSL_MODULE=y
>> BR2_PACKAGE_NGINX_HTTP_V2_MODULE=y
>> BR2_PACKAGE_OPENSSH=y
>> BR2_PACKAGE_OPENVPN=y
>> BR2_PACKAGE_TCPDUMP=y
>> BR2_PACKAGE_TRACEROUTE=y
>> BR2_PACKAGE_VSFTPD=y
>> BR2_PACKAGE_FILE=y
>> BR2_PACKAGE_LOGROTATE=y
>> BR2_PACKAGE_SUDO=y
>> BR2_PACKAGE_HTOP=y
>> BR2_PACKAGE_SWUPDATE=y
>> BR2_PACKAGE_SWUPDATE_CONFIG="../base_external/configs/swupdate.config"
>> # BR2_PACKAGE_SWUPDATE_INSTALL_WEBSITE is not set
>> BR2_PACKAGE_UTIL_LINUX_FSCK=y
>> BR2_PACKAGE_UTIL_LINUX_KILL=y
>> BR2_PACKAGE_UTIL_LINUX_LAST=y
>> BR2_PACKAGE_UTIL_LINUX_LOGGER=y
>> BR2_PACKAGE_UTIL_LINUX_MORE=y
>> BR2_PACKAGE_UTIL_LINUX_MOUNT=y
>> BR2_TARGET_ROOTFS_EXT2=y
>> BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
>> # BR2_TARGET_ROOTFS_TAR is not set
>> BR2_TARGET_GRUB2=y
>> BR2_TARGET_GRUB2_BUILTIN_MODULES="boot linux ext2 fat squash4 part_msdos
>> part_gpt normal biosdisk loadenv search"
>> BR2_PACKAGE_HOST_GENIMAGE=y
>> BR2_PACKAGE_PERL_SWITCH=y
>> BR2_PACKAGE_PERL_DATA_VALIDATE_IP=y
>> BR2_PACKAGE_PERL_AUTHEN_PAM=y
>> BR2_PACKAGE_PERL_TERMREADKEY=y
>>
>> Thank you,
>> NRM
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181105/0308021a/attachment.html>

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-10-31 20:53 [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey Nuno Mota
  2018-11-01 11:04 ` Thomas Petazzoni
  2018-11-05 21:25 ` Christopher McCrory
@ 2018-11-08 16:43 ` Christopher McCrory
  2018-11-09 18:07   ` Nuno Mota
  2 siblings, 1 reply; 9+ messages in thread
From: Christopher McCrory @ 2018-11-08 16:43 UTC (permalink / raw)
  To: buildroot

On Wed, Oct 31, 2018 at 1:53 PM Nuno Mota <nrmmota@gmail.com> wrote:

> Hi,
> I'm using buildroot for a project and so far so good. I've added a lot of
> perl modules, but a new one just failed. I have no clue how to fix this.
> I simply cloned this git project to use swupdate
> https://github.com/Trellis-Logic/buildroot-external/tree/swupdate
>
> >>> perl-termreadkey 2.37 Building
> cd
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/
> && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB=
> PERL_USE_UNSAFE_INC=1
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl Build
> build; else /usr/bin/make -j1
> PERL_INC=/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/perl5/5.26.2/i686-linux/CORE
> FIXIN=:  pure_all; fi
> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
> -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs
> blib/arch/auto/Term/ReadKey/ReadKey.bs 644
> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
> "-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm
> Creating ReadKey.pm
> Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for module
> Term::ReadKey: blib/arch/auto/Term/ReadKey/ReadKey.so: wrong ELF class:
> ELFCLASS32 at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 193.
>  at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 95.
> DynaLoader::croak("Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for
> modul"...) called at
> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
> line 193
> DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515
> Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255
> make[1]: ***
> [/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built]
> Error 2
> make: *** [_all] Error 2
> make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'
>
>
Try this (I used toolchain-external-linaro-armeb-2018.05 to test)


 cat Config.in
config BR2_PACKAGE_PERL_TERMREADKEY
    bool "perl-termreadkey"
    depends on !BR2_STATIC_LIBS
    help
      Change terminal modes, and perform non-blocking reads.

      https://metacpan.org/release/TermReadKey

comment "perl-termreadkey needs a toolchain w/ dynamic library"
    depends on BR2_STATIC_LIBS

cat perl-termreadkey.mk
################################################################################
#
# perl-termreadkey
#
################################################################################

PERL_TERMREADKEY_VERSION = 2.37
PERL_TERMREADKEY_SOURCE = TermReadKey-$(PERL_TERMREADKEY_VERSION).tar.gz
PERL_TERMREADKEY_SITE = $(BR2_CPAN_MIRROR)/authors/id/J/JS/JSTOWE
#
# The License for this package is, (air quotes) complicated
# https://github.com/jonathanstowe/TermReadKey/issues/11
#
# Fedora lists it as
# (Copyright only) and (Artistic or GPL+)
#
https://src.fedoraproject.org/rpms/perl-TermReadKey/blob/master/f/perl-TermReadKey.spec
#
# Debian lists it as
# License: Artistic or GPL-1+
#
https://sources.debian.org/src/libterm-readkey-perl/2.37-1/debian/copyright/
#
# OpenEmbedded lists it as
# License     Artistic-1.0 | GPLv1+
# https://layers.openembedded.org/layerindex/recipe/67518/
#`
PERL_TERMREADKEY_LICENSE = Artistic or GPL-1.0+ ?
PERL_TERMREADKEY_LICENSE_FILES = README

PERL_TERMREADKEY_DEPENDENCIES = host-perl-termreadkey

# At compile time, the makefile wants to use the compiled
# ./blib/arch/auto/Term/ReadKey/ReadKey.so , but when cross-compiling this
# fails. So build host variant and use that.  The correct ReadKey.so file is
# still installed in TARGET_DIR.
# Adapted from the OpenEmbeded script at:
#
http://cgit.openembedded.org/meta-openembedded/tree/meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.37.bb
#
define PERL_TERMREADKEY_POST_CONFIGURE_SED
    $(SED)
"s#-I\$$(INST_ARCHLIB)#-I$(HOST_DIR)/lib/perl5/site_perl/$(PERL_VERSION)/$(PERL_ARCHNAME)#"
$(@D)/Makefile
endef

PERL_TERMREADKEY_POST_CONFIGURE_HOOKS += PERL_TERMREADKEY_POST_CONFIGURE_SED

$(eval $(perl-package))
$(eval $(host-perl-package))



-- 
Christopher McCrory
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181108/eeb1b332/attachment.html>

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

* [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey
  2018-11-08 16:43 ` Christopher McCrory
@ 2018-11-09 18:07   ` Nuno Mota
  0 siblings, 0 replies; 9+ messages in thread
From: Nuno Mota @ 2018-11-09 18:07 UTC (permalink / raw)
  To: buildroot

It worked :D.
Thank you very much for your support.

Best regards,
Nuno Mota

Christopher McCrory <chrismcc@gmail.com> escreveu no dia quinta, 8/11/2018
?(s) 16:43:

>
>
> On Wed, Oct 31, 2018 at 1:53 PM Nuno Mota <nrmmota@gmail.com> wrote:
>
>> Hi,
>> I'm using buildroot for a project and so far so good. I've added a lot of
>> perl modules, but a new one just failed. I have no clue how to fix this.
>> I simply cloned this git project to use swupdate
>> https://github.com/Trellis-Logic/buildroot-external/tree/swupdate
>>
>> >>> perl-termreadkey 2.37 Building
>> cd
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/
>> && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB=
>> PERL_USE_UNSAFE_INC=1
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl Build
>> build; else /usr/bin/make -j1
>> PERL_INC=/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/perl5/5.26.2/i686-linux/CORE
>> FIXIN=:  pure_all; fi
>> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
>> -MExtUtils::Command::MM -e 'cp_nonempty' -- ReadKey.bs
>> blib/arch/auto/Term/ReadKey/ReadKey.bs 644
>> "/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/bin/perl"
>> "-Iblib/arch" "-Iblib/lib" ReadKey_pm.PL ReadKey.pm
>> Creating ReadKey.pm
>> Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so' for module
>> Term::ReadKey: blib/arch/auto/Term/ReadKey/ReadKey.so: wrong ELF class:
>> ELFCLASS32 at
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
>> line 193.
>>  at
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
>> line 95.
>> DynaLoader::croak("Can't load 'blib/arch/auto/Term/ReadKey/ReadKey.so'
>> for modul"...) called at
>> /opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/host/lib/perl5/5.26.2/x86_64-linux/DynaLoader.pm
>> line 193
>> DynaLoader::bootstrap("Term::ReadKey") called at ReadKey_pm.PL line 515
>> Bootstrapping the XS for blockoptions: make[2]: *** [ReadKey.pm] Error 255
>> make[1]: ***
>> [/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot/output/build/perl-termreadkey-2.37/.stamp_built]
>> Error 2
>> make: *** [_all] Error 2
>> make: Leaving directory `/opt/home/nrm/ubuntudocker/GS_Gateway/buildroot'
>>
>>
> Try this (I used toolchain-external-linaro-armeb-2018.05 to test)
>
>
>  cat Config.in
> config BR2_PACKAGE_PERL_TERMREADKEY
>     bool "perl-termreadkey"
>     depends on !BR2_STATIC_LIBS
>     help
>       Change terminal modes, and perform non-blocking reads.
>
>       https://metacpan.org/release/TermReadKey
>
> comment "perl-termreadkey needs a toolchain w/ dynamic library"
>     depends on BR2_STATIC_LIBS
>
> cat perl-termreadkey.mk
>
> ################################################################################
> #
> # perl-termreadkey
> #
>
> ################################################################################
>
> PERL_TERMREADKEY_VERSION = 2.37
> PERL_TERMREADKEY_SOURCE = TermReadKey-$(PERL_TERMREADKEY_VERSION).tar.gz
> PERL_TERMREADKEY_SITE = $(BR2_CPAN_MIRROR)/authors/id/J/JS/JSTOWE
> #
> # The License for this package is, (air quotes) complicated
> # https://github.com/jonathanstowe/TermReadKey/issues/11
> #
> # Fedora lists it as
> # (Copyright only) and (Artistic or GPL+)
> #
> https://src.fedoraproject.org/rpms/perl-TermReadKey/blob/master/f/perl-TermReadKey.spec
> #
> # Debian lists it as
> # License: Artistic or GPL-1+
> #
> https://sources.debian.org/src/libterm-readkey-perl/2.37-1/debian/copyright/
> #
> # OpenEmbedded lists it as
> # License     Artistic-1.0 | GPLv1+
> # https://layers.openembedded.org/layerindex/recipe/67518/
> #`
> PERL_TERMREADKEY_LICENSE = Artistic or GPL-1.0+ ?
> PERL_TERMREADKEY_LICENSE_FILES = README
>
> PERL_TERMREADKEY_DEPENDENCIES = host-perl-termreadkey
>
> # At compile time, the makefile wants to use the compiled
> # ./blib/arch/auto/Term/ReadKey/ReadKey.so , but when cross-compiling this
> # fails. So build host variant and use that.  The correct ReadKey.so file
> is
> # still installed in TARGET_DIR.
> # Adapted from the OpenEmbeded script at:
> #
> http://cgit.openembedded.org/meta-openembedded/tree/meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.37.bb
> #
> define PERL_TERMREADKEY_POST_CONFIGURE_SED
>     $(SED)
> "s#-I\$$(INST_ARCHLIB)#-I$(HOST_DIR)/lib/perl5/site_perl/$(PERL_VERSION)/$(PERL_ARCHNAME)#"
> $(@D)/Makefile
> endef
>
> PERL_TERMREADKEY_POST_CONFIGURE_HOOKS +=
> PERL_TERMREADKEY_POST_CONFIGURE_SED
>
> $(eval $(perl-package))
> $(eval $(host-perl-package))
>
>
>
> --
> Christopher McCrory
> To the optimist, the glass is half full.
> To the pessimist, the glass is half empty.
> To the engineer, the glass is twice as big as it needs to be.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181109/88136a4c/attachment.html>

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

end of thread, other threads:[~2018-11-09 18:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31 20:53 [Buildroot] ELFCLASS issue on building Perl module Term::ReadKey Nuno Mota
2018-11-01 11:04 ` Thomas Petazzoni
2018-11-01 17:36   ` François Perrad
2018-11-02 12:27     ` Nuno Mota
2018-11-03 21:18       ` Christopher McCrory
2018-11-05 21:25 ` Christopher McCrory
2018-11-05 21:36   ` Nuno Mota
2018-11-08 16:43 ` Christopher McCrory
2018-11-09 18:07   ` Nuno Mota

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.