Skip to contentSkip to conversation

openjade-native: do not create shared libraries

PATCH Superseded Joe Slater 2 participants 2 messages Aug 6, 2013 – Aug 9, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH 1/1 openjade-native: do not create shared libraries

CQID: 429576

openjade is the only one that uses the shared libraries and sometimes it cannot find them!

[Yocto #2972]

---
 .../openjade/openjade-native_1.3.2.bb              |   29 ++++++++++++++-----
 1 files changed, 21 insertions(+), 8 deletions(-)
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +21 -8
index 8af0b52..ffdb3fc 100644
@@ -7,7 +7,7 @@ SECTION = "base"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045"
 
-PR = "r5"
+PR = "r6"
 
 DEPENDS = "opensp-native sgml-common-native"
 RDEPENDS_${PN} = "sgml-common-native"
@@ -24,8 +24,13 @@ SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7
 
 inherit autotools native
 
+# Per bugzilla.yoctoproject.org/show_bug.cgi?id=2972 we do
+# not create shared libraries.  Note that openjade still links
+# to shared libraries from other packages.
+#
 EXTRA_OECONF = "--enable-spincludedir=${STAGING_INCDIR}/OpenSP \
-                --enable-splibdir=${STAGING_LIBDIR}"
+                --enable-splibdir=${STAGING_LIBDIR} \
+                --disable-shared"
 
 # We need to set datadir explicitly, but adding it to EXTRA_OECONF
 # results in it being specified twice when configure is run.
@@ -55,13 +60,21 @@ do_compile_prepend () {
 do_install() {
 	# Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/openjade.html
 	# for details.
-	install -d ${D}${bindir}	
-	install -m 0755 ${S}/jade/.libs/openjade ${D}${bindir}/openjade
-	ln -sf openjade ${D}${bindir}/jade
+	install -d ${D}${bindir}
 
-	oe_libinstall -a -so -C style libostyle ${D}${libdir}
-	oe_libinstall -a -so -C spgrove libospgrove ${D}${libdir}
-	oe_libinstall -a -so -C grove libogrove ${D}${libdir}
+	# install shared library version if it exists
+	#
+	if [ -f ${S}/jade/.libs/openjade ]
+	then
+	 install -m 0755 ${S}/jade/.libs/openjade ${D}${bindir}/openjade
+	 oe_libinstall -a -so -C style libostyle ${D}${libdir}
+	 oe_libinstall -a -so -C spgrove libospgrove ${D}${libdir}
+	 oe_libinstall -a -so -C grove libogrove ${D}${libdir}
+	else
+	 install -m 0755 ${S}/jade/openjade ${D}${bindir}/openjade
+	fi
+
+	ln -sf openjade ${D}${bindir}/jade
 
 	install -d ${D}${datadir}/sgml/openjade-${PV}
 	install -m 644 dsssl/catalog ${D}${datadir}/sgml/openjade-${PV}
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 17 lines · Joe Slater

CQID: 429576

openjade is the only one that uses the shared libraries and sometimes it cannot find them!

[Yocto #2972]

---
  .../openjade/openjade-native_1.3.2.bb              |   29 ++++++++++++++-----
  1 files changed, 21 insertions(+), 8 deletions(-)
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +0 -0
index 8af0b52..ffdb3fc 100644

meta/recipes-devtools/openjade/openjade-native_1.3.2.bb SECTION = "base" · line 11

Quoted 6 lines
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +1 -1
@@ -7,7 +7,7 @@ SECTION = "base"
  LICENSE = "BSD"
  LIC_FILES_CHKSUM = "file://COPYING;md5=641ff1e4511f0a87044ad42f87cb1045"
 
-PR = "r5"
+PR = "r6"
 

No need to add PR Bump here anymore.

Quoted 33 lines
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +11 -7
  DEPENDS = "opensp-native sgml-common-native"
  RDEPENDS_${PN} = "sgml-common-native"
@@ -24,8 +24,13 @@ SRC_URI[sha256sum] = "1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7
 
  inherit autotools native
 
+# Per bugzilla.yoctoproject.org/show_bug.cgi?id=2972 we do
+# not create shared libraries.  Note that openjade still links
+# to shared libraries from other packages.
+#
  EXTRA_OECONF = "--enable-spincludedir=${STAGING_INCDIR}/OpenSP \
-                --enable-splibdir=${STAGING_LIBDIR}"
+                --enable-splibdir=${STAGING_LIBDIR} \
+                --disable-shared"
 
  # We need to set datadir explicitly, but adding it to EXTRA_OECONF
  # results in it being specified twice when configure is run.
@@ -55,13 +60,21 @@ do_compile_prepend () {
  do_install() {
  	# Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/openjade.html
  	# for details.
-	install -d ${D}${bindir}	
-	install -m 0755 ${S}/jade/.libs/openjade ${D}${bindir}/openjade
-	ln -sf openjade ${D}${bindir}/jade
+	install -d ${D}${bindir}
 
-	oe_libinstall -a -so -C style libostyle ${D}${libdir}
-	oe_libinstall -a -so -C spgrove libospgrove ${D}${libdir}
-	oe_libinstall -a -so -C grove libogrove ${D}${libdir}
+	# install shared library version if it exists
+	#
+	if [ -f ${S}/jade/.libs/openjade ]
+	then

meta/recipes-devtools/openjade/openjade-native_1.3.2.bb do_compile_prepend () { · line 78

Quoted 10 lines
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +9 -0
+	 install -m 0755 ${S}/jade/.libs/openjade ${D}${bindir}/openjade
+	 oe_libinstall -a -so -C style libostyle ${D}${libdir}
+	 oe_libinstall -a -so -C spgrove libospgrove ${D}${libdir}
+	 oe_libinstall -a -so -C grove libogrove ${D}${libdir}
+	else
+	 install -m 0755 ${S}/jade/openjade ${D}${bindir}/openjade
+	fi
+
+	ln -sf openjade ${D}${bindir}/jade
 

Convention is to use tabs for indentation in oe-core Shell code and 4-spaces for python code.

Thanks

Sau!

Quoted 3 lines
meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +0 -0
  	install -d ${D}${datadir}/sgml/openjade-${PV}
  	install -m 644 dsssl/catalog ${D}${datadir}/sgml/openjade-${PV}