Skip to contentSkip to conversation

libnl-xfrm: add symbolic link to link netlink to libnl3/netlink

PATCH In review Hongmei Gou 2 participants 3 messages Mar 2, 2016 – Mar 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libnl-xfrm: add symbolic link to link netlink to libnl3/netlink

---
 meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb +4 -0
index 74733f0..526ad0a 100644
@@ -14,6 +14,8 @@ BRANCH="hawking_dev"
 SRCREV = "2a5ee7c4f41398c07c593e81af7b71c7720e6de8"
 SRC_URI = "git://arago-project.org/git/projects/libnl-xfrm.git;protocol=git;branch=${BRANCH}"
 
+PR = "r1"
+
 S = "${WORKDIR}/git"
 
 LIBNL_XFRM_LIB = "lib/libnl-xfrm.a"
@@ -34,6 +36,8 @@ do_install_append() {
 	install -c -m 755 ${S}/${LIBNL_XFRM_LIB} ${D}${libdir}/
 	install -c -m 755 ${S}/include/netlink/xfrm/*.h ${D}${includedir}/libnl3/netlink/xfrm/
 	install -c -m 755 ${S}/lib/libnl-xfrm.so ${D}${libdir}/libnl-xfrm.so.1.0.0
+	cd ${D}${includedir}/
+	ln -s libnl3/netlink netlink
 	cd ${D}${libdir}/
 	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so.1
 	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so
Signature · 1 line
1.9.1
#1 lore raw

"add symbolic link to link netlink to libnl3/netlink" - please re-phrase the subject.

Moreover, why is it required?

Quoted 34 lines · Hongmei Gou
---
 meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb +4 -0
index 74733f0..526ad0a 100644
@@ -14,6 +14,8 @@ BRANCH="hawking_dev"
 SRCREV = "2a5ee7c4f41398c07c593e81af7b71c7720e6de8"
 SRC_URI = "git://arago-project.org/git/projects/libnl-xfrm.git;protocol=git;branch=${BRANCH}"
 
+PR = "r1"
+
 S = "${WORKDIR}/git"
 
 LIBNL_XFRM_LIB = "lib/libnl-xfrm.a"
@@ -34,6 +36,8 @@ do_install_append() {
 	install -c -m 755 ${S}/${LIBNL_XFRM_LIB} ${D}${libdir}/
 	install -c -m 755 ${S}/include/netlink/xfrm/*.h ${D}${includedir}/libnl3/netlink/xfrm/
 	install -c -m 755 ${S}/lib/libnl-xfrm.so ${D}${libdir}/libnl-xfrm.so.1.0.0
+	cd ${D}${includedir}/
+	ln -s libnl3/netlink netlink
 	cd ${D}${libdir}/
 	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so.1
 	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so
Signature · 6 lines
1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw

Hi Denys,

This is for resolving IR SDOCM00119615: netlink symbolic link is missing under linux devkit

From IR Detailed Description:
"netlink symbol link is missing under usr/include. netlink was linked to libnl3/netlink folder. The header files are needed for netfp proxy build. "

Also in ipsecmgr source code, the header files are referenced as under the netlink folder, e.g,
http://arago-project.org/git/projects/ipsecmgr.git?p=projects/ipsecmgr.git;a=blob;f=src/snoop/ipsecmgr_snoop_msg.h;h=388677ff5dad3174be87f1fb33b3ff8f99383210;hb=c385c146846a60f5f68cb12670dee6d7c5edb028
./src/snoop/ipsecmgr_snoop_msg.h:39:#include <netlink/addr.h> ./src/snoop/ipsecmgr_snoop_msg.h:40:#include <netlink/xfrm/ae.h> ./src/snoop/ipsecmgr_snoop_msg.h:41:#include <netlink/xfrm/sa.h> ./src/snoop/ipsecmgr_snoop_msg.h:42:#include <netlink/xfrm/sp.h> ./src/snoop/ipsecmgr_snoop_msg.h:43:#include <netlink/xfrm/selector.h> ./src/snoop/ipsecmgr_snoop_msg.h:44:#include <netlink/xfrm/lifetime.h>

I will modify the subject and resubmit the patch.

Thanks,
Hongmei

Quoted 55 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, March 02, 2016 10:07 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] libnl-xfrm: add symbolic link to link netlink to libnl3/netlink

"add symbolic link to link netlink to libnl3/netlink" - please re-phrase the subject.

Moreover, why is it required?

Quoted 13 lines · Hongmei Gou
---
 meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb | 4
++++
 1 file changed, 4 insertions(+)

diff --git a/meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb b/meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb index 74733f0..526ad0a 100644

meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb BRANCH="hawking_dev" · line 15

Quoted 2 lines
meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb +0 -0
@@ -14,6 +14,8 @@ BRANCH="hawking_dev"
 SRCREV = "2a5ee7c4f41398c07c593e81af7b71c7720e6de8"
 SRC_URI = "git://arago-project.org/git/projects/libnl-

xfrm.git;protocol=git;branch=${BRANCH}"

meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb do_install_append() { · line 37

Quoted 9 lines
meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb +2 -0
+PR = "r1"
+
 S = "${WORKDIR}/git"
 
 LIBNL_XFRM_LIB = "lib/libnl-xfrm.a"
@@ -34,6 +36,8 @@ do_install_append() {
 	install -c -m 755 ${S}/${LIBNL_XFRM_LIB} ${D}${libdir}/
 	install -c -m 755 ${S}/include/netlink/xfrm/*.h

${D}${includedir}/libnl3/netlink/xfrm/

Quoted 14 lines
meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb +0 -0
 	install -c -m 755 ${S}/lib/libnl-xfrm.so

${D}${libdir}/libnl-xfrm.so.1.0.0

meta-arago-extras/recipes-support/libnl-xfrm/libnl-xfrm_git.bb +2 -1
+	cd ${D}${includedir}/
+	ln -s libnl3/netlink netlink
 	cd ${D}${libdir}/
 	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so.1
 	ln -s libnl-xfrm.so.1.0.0 libnl-xfrm.so
--

1.9.1

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago