Hi,

for example apr-utils and e2fsprogs depend on util-linux proving libuuid, but util-linux does not install them into staging_dir/target.../. For libuuid, the following patch fixes this and makes apr-util build again. Patch rev 2: also exports uuid.h header and all other libraries included in util-linux.

diff --git a/package/util-linux/Makefile b/package/util-linux/Makefile
index aa45dd0..0626002 100644
--- a/package/util-linux/Makefile
+++ b/package/util-linux/Makefile
@@ -372,6 +372,18 @@ define Package/wipefs/description
  libblkid.
 endef

+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/lib*/src/.libs/lib* $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/include
+       $(INSTALL_DIR) $(1)/usr/include/blkid
+ $(CP) $(PKG_BUILD_DIR)/libblkid/src/blkid.h $(1)/usr/include/blkid
+       $(INSTALL_DIR) $(1)/usr/include/libmount
+ $(CP) $(PKG_BUILD_DIR)/libmount/src/libmount.h $(1)/usr/include/libmount
+       $(INSTALL_DIR) $(1)/usr/include/uuid
+       $(CP) $(PKG_BUILD_DIR)/libuuid/src/uuid.h $(1)/usr/include/uuid
+endef
+
 define Package/libblkid/install
         $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libblkid/src/.libs/libblkid.so.* $(1)/usr/lib/

Regards,
 M. Braun

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to