Ticket #20340: 0001-polarssl-Fix-build-failures-due-to-PKG_NAME-dir-name.patch

File 0001-polarssl-Fix-build-failures-due-to-PKG_NAME-dir-name.patch, 1.5 KB (added by openwrt@…, 2 years ago)

[PATCH] Fix polarssl fails to InstallDev due to PKG_NAME != dir name

  • package/libs/polarssl/Makefile

    From 24c8e6f6c91e2e997bdf1d9b71e2391fd9e7d241 Mon Sep 17 00:00:00 2001
    From: Daniel Dickinson <openwrt@daniel.thecshore.com>
    Date: Sun, 2 Aug 2015 07:46:46 -0400
    Subject: [PATCH 1/1] [polarssl] Fix build failures due to PKG_NAME != dir name
    To: openwrt-devel@lists.openwrt.org
    
    Packages that depend on PolarSSL fail to build because polarssl's InstallDev
    section never actually gets executed because (prior to this patch) the package
    name does not match the subdir the package is in (presumably due to upstream
    name change).  As a workaround I have changed the package name back to 
    polarssl and used a new variable SRC_PKG_NAME for the purposes of downloading
    the upstream tarball and creating PKG_BUILD_DIR.
    
    Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
    ---
     package/libs/polarssl/Makefile | 7 +++++--
     1 file changed, 5 insertions(+), 2 deletions(-)
    
    diff --git a/package/libs/polarssl/Makefile b/package/libs/polarssl/Makefile
    index c7e6036..5d5e857 100644
    a b  
    77 
    88include $(TOPDIR)/rules.mk 
    99 
    10 PKG_NAME:=mbedtls 
     10PKG_NAME:=polarssl 
     11SRC_PKG_NAME:=mbedtls 
    1112PKG_VERSION:=1.3.11 
    1213PKG_RELEASE:=2 
    1314PKG_USE_MIPS16:=0 
    1415 
    15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-gpl.tgz 
     16PKG_SOURCE:=$(SRC_PKG_NAME)-$(PKG_VERSION)-gpl.tgz 
    1617PKG_SOURCE_URL:=https://polarssl.org/download/ 
    1718PKG_MD5SUM:=c02ce2e54862d678604794ee484fb59e 
    1819 
     20PKG_BUILD_DIR:=$(BUILD_DIR)/$(SRC_PKG_NAME)-$(PKG_VERSION) 
     21 
    1922PKG_BUILD_PARALLEL:=1 
    2023PKG_LICENSE:=GPL-2.0+ 
    2124