Following an email exchange with Conrad Sand, one of the maintainers of the project, I learned that version 9.900.2 has been moved to https://sourceforge.net/projects/arma/files/retired/. This patch fixes the package download error, waiting for a subsequent patch that will restore the previous URL to bump to a more recent version. Adding the .RETIRED suffix to the downloaded tarball generated the following error: armadillo-9.900.2.tar.xz.RETIRED: OK (sha256: d78658c9442addf7f718eb05881150ee3ec25604d06dd3af4942422b3ce26d05) >>> armadillo 9.900.2 Extracting buildroot/dl/armadillo/armadillo-9.900.2.tar.xz.RETIRED | buildroot/output/host/bin/tar --strip-components=1 -C buildroot/output/build/armadillo-9.900.2 -xf - /bin/bash: line 1: buildroot/dl/armadillo/armadillo-9.900.2.tar.xz.RETIRED: Permission denied buildroot/output/host/bin/tar: This does not look like a tar archive buildroot/output/host/bin/tar: Exiting with failure status due to previous errors make[1]: *** [package/pkg-generic.mk:213: buildroot/output/build/armadillo-9.900.2/.stamp_extracted] Error 2 which required the addition of ARMADILLO_EXTRACT_CMDS to be fixed. Finally, it was also necessary to modify the tarball's hash. Fixes: - http://autobuild.buildroot.org/results/d4e9e7b453960a4f62a199344b30b729a4f235bc Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit f69fe48404edaf83514920beecc46b2ab83927f1) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# armadillo
|
|
#
|
|
################################################################################
|
|
|
|
ARMADILLO_VERSION = 9.900.2
|
|
ARMADILLO_SOURCE = armadillo-$(ARMADILLO_VERSION).tar.xz.RETIRED
|
|
ARMADILLO_SITE = https://sourceforge.net/projects/arma/files/retired
|
|
ARMADILLO_INSTALL_STAGING = YES
|
|
ARMADILLO_LICENSE = Apache-2.0
|
|
ARMADILLO_LICENSE_FILES = LICENSE.txt
|
|
|
|
ARMADILLO_CONF_OPTS = -DDETECT_HDF5=false
|
|
|
|
# blas support may be provided by lapack (libblas.a) or openblas (libopenblas.a)
|
|
ARMADILLO_CONF_OPTS += -DBLAS_FOUND=ON
|
|
ifeq ($(BR2_PACKAGE_ARMADILLO_OPENBLAS),y)
|
|
ARMADILLO_CONF_OPTS += -DBLAS_LIBRARIES=-lopenblas
|
|
ARMADILLO_DEPENDENCIES += openblas
|
|
else
|
|
# Since BR2_PACKAGE_LAPACK is selected in this case, the dependency on it is
|
|
# added below.
|
|
ARMADILLO_CONF_OPTS += -DBLAS_LIBRARIES=-lblas
|
|
endif
|
|
|
|
# lapack support is optional and can only be provided by lapack, not openblas
|
|
ifeq ($(BR2_PACKAGE_LAPACK),y)
|
|
ARMADILLO_CONF_OPTS += -DLAPACK_FOUND=ON
|
|
ARMADILLO_DEPENDENCIES += lapack
|
|
endif
|
|
|
|
define ARMADILLO_EXTRACT_CMDS
|
|
$(TAR) --strip-components=1 -C $(@D) $(TAR_OPTIONS) $($(PKG)_DL_DIR)/$(ARMADILLO_SOURCE)
|
|
endef
|
|
|
|
$(eval $(cmake-package))
|