On 2020-08-17 6:59 p.m., Khem Raj wrote:
did you look at
https://github.com/kraj/meta-openwrt/blob/master/recipes-networking/ipset/ipset_6.38.bb

And do you know about the layer index:
https://layers.openembedded.org/layerindex/branch/master/recipes/?q=ipset

../Randy


On Mon, Aug 17, 2020 at 10:14 AM Rob Prowel <rpro...@comcast.net> wrote:

I'm trying to add the ipset utility to my arm build so that I can group
IP/ports for use in tc and netfilter.  I was able to update the vendor
supplied iptools2 recipe to install tc and iptables, but ipset is a
fresh recipe, not included in another existing layer.

I'm adding the following in its bb file:

# -----------------------------------------------------------------
SRC_URI =  "file://ipset-7.6.tar.bz2"
SRC_URI[md5sum] = "3a6f5952fd1bcf0eefb9c7c087acbfc9"


inherit pkgconfig

S = "${WORKDIR}/ipset-7.6"

RDEPENDS_${PN} += "libmnl"

FILES_${PN} =  ""
# list will be populated once I know what the package wants to install

do_configure(){
          ./configure --prefix=/ --host=arm-linuxeabi
}

do_compile(){
          make DESTDIR=${D}
}

do_install(){
          oe_runmake install DESTDIR=${D}
}

# -----------------------------------------------------------------

problem is that it depends on libmnl (which already exists as a lower
layer recipe), and the ipset configure script barfs on pkg-config with
the following message.

| checking whether ln -s works... yes
| checking for libmnl... no
| configure: error: Package requirements (libmnl >= 1) were not met:
|
| No package 'libmnl' found
|
| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
|
| Alternatively, you may set the environment variables libmnl_CFLAGS
| and libmnl_LIBS to avoid the need to call pkg-config.
| See the pkg-config man page for more details.
| WARNING: exit code 1 from a shell command.


the PKG_CONFIG_PATH variable seems correct under devshell, but there is
no libmnl.pc file in there.  How do I force libmnl to create and stage a
proper pkg-config .pc file where it needs to be?







--
# Randy MacLeod
# Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50304): https://lists.yoctoproject.org/g/yocto/message/50304
Mute This Topic: https://lists.yoctoproject.org/mt/76248388/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to