Skip to contentSkip to conversation

classes-recipe/setuptools3-base: clean up FILES assignments

PATCH New Ross Burton 1 participant 2 messages Apr 3, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 classes-recipe/setuptools3-base: clean up FILES assignments

Simply inheriting setuptools3-base should put everything in $libdir in PN, and there's no need to replicate the pkgconfig packaging rules as those are the defaults.

---
 meta/classes-recipe/setuptools3-base.bbclass | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)
meta/classes-recipe/setuptools3-base.bbclass +3 -10
index 21b688ced07..d1c1fa095fc 100644
@@ -23,15 +23,8 @@ export CCSHARED  = "-fPIC -DPIC"
 # the python executable
 export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
 
-FILES:${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*"
+FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
+FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
+FILES:${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"
 
-FILES:${PN}-staticdev += "\
-  ${PYTHON_SITEPACKAGES_DIR}/*.a \
-"
-FILES:${PN}-dev += "\
-  ${datadir}/pkgconfig \
-  ${libdir}/pkgconfig \
-  ${PYTHON_SITEPACKAGES_DIR}/*.la \
-"
 inherit python3native python3targetconfig
-
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 bind: don't package non-existant .la files into -staticdev

If these files exist they should be packaged into PN-dev, and are with the default FILES:${PN}-dev.

---
 meta/recipes-connectivity/bind/bind_9.18.12.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-connectivity/bind/bind_9.18.12.bb +0 -1
index abce1c0f459..68dad77cdc8 100644
@@ -109,6 +109,5 @@ PACKAGE_BEFORE_PN += "${PN}-libs"
 # https://github.com/isc-projects/bind9/commit/0e25af628cd776f98c04fc4cc59048f5448f6c88
 FILES_SOLIBSDEV = "${libdir}/*[!0-9].so ${libdir}/libbind9.so"
 FILES:${PN}-libs = "${libdir}/named/*.so* ${libdir}/*-${PV}.so"
-FILES:${PN}-staticdev += "${libdir}/*.la"
 
 DEV_PKG_DEPENDENCY = ""
Signature · 1 line
2.34.1