Wind River Support Network

HomeDefectsLIN6-8101
Fixed

LIN6-8101 : CLONE - WRL5: iptables is missing dependency on pkg-config

Created: Aug 4, 2014    Updated: Dec 3, 2018
Resolved Date: Aug 6, 2014
Previous ID: LIN5-19178
Found In Version: 6.0
Fix Version: 6.0.0.11
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

The package iptables is missing a dependency.

Workaround

The following patch, fixes the problem:

 meta/recipes-extended/iptables/iptables_1.4.12.2.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/iptables/iptables_1.4.12.2.bb b/meta/recipes-extended/iptables/iptables_1.4.12.2.bb
index 663ddad..b88b4af 100644
--- a/meta/recipes-extended/iptables/iptables_1.4.12.2.bb
+++ b/meta/recipes-extended/iptables/iptables_1.4.12.2.bb
@@ -7,7 +7,7 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263\
                     file://iptables/iptables.c;firstline=13;endline=25;md5=f1028f2401da1c120df27594b2be50ef"
 
-PR = "r0"
+PR = "r1"
 
 RRECOMMENDS_${PN} = "kernel-module-x-tables \
                      kernel-module-ip-tables \
@@ -28,7 +28,7 @@ SRC_URI = "http://netfilter.org/projects/iptables/files/iptables-${PV}.tar.bz2 \
 SRC_URI[md5sum] = "212112389c7f10c72efb31a4ed193a4c"
 SRC_URI[sha256sum] = "09fff7dfe6af95675474fd5d0fc67622fac5a0f3d6e02ee614deae9a2e5dae13"
 
-inherit autotools
+inherit autotools pkgconfig
 
 EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR} \
                 ${@base_contains('DISTRO_FEATURES', 'ipv6', '', '--disable-ipv6', d)}"
-- 1.7.10.4 

Steps to Reproduce

BASE_DIR=$(pwd)/repr.build # This is where build will happen

# All directories are located in base dir
SSTATE_DIR=$BASE_DIR/sstate
CCACHE_DIR=$BASE_DIR/ccache
BUILD_DIR=$BASE_DIR/build

# Start from scratch
! [ -d "$BASE_DIR" ] || rm -rf $BASE_DIR
mkdir -p $SSTATE_DIR $CCACHE_DIR $BUILD_DIR

# Enter builddir and configure windriver linux
cd $BUILD_DIR
<your windriver 5.0.1.9 directory>/wrlinux/wrlinux-5/wrlinux/configure 
--enable-rootfs=glibc-std --enable-board=intel-xeon-core 
--enable-reconfig --enable-ccache=yes --with-ccache-dir=$CCACHE_DIR 
--with-sstate-dir=$SSTATE_DIR

make bbc BBCMD="bitbake iptables"                        # build sstate
make bbc BBCMD="bitbake -ccleanall iptables"        # remove iptables sstate
make bbc BBCMD="rm -rf tmp"                                # clean build
make bbc BBCMD="bitbake iptables"                        # build 
iptables with dependencies from sstate

Other Downloads


Live chat
Online