From: W. Michael Petullo <m...@flyn.org> The mdnsresponder package created an improper symbolic link from libdns_sd.so into the OpenWrt build tree. This fixes this problem so that libdns_sd.so is a relative link.
Signed-off-by: W. Michael Petullo <m...@flyn.org> --- Index: net/mdnsresponder/Makefile =================================================================== --- net/mdnsresponder/Makefile (revision 37187) +++ net/mdnsresponder/Makefile (working copy) @@ -110,16 +110,22 @@ mkdir -p $(PKG_INSTALL_DIR)/etc/rc.d/rc5.d/ mkdir -p $(PKG_INSTALL_DIR)/etc/rc.d/rc0.d/ mkdir -p $(PKG_INSTALL_DIR)/etc/rc.d/rc6.d/ - # XXX: mDNSResponder's makefile creates absolute link - rm -f $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so - ln -fs libdns_sd.so.1 $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so + + # XXX: mDNSResponder's makefile gets this wrong; for ipkg. + rm -f $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so.1 + $(CP) $(PKG_BUILD_DIR)/mDNSPosix/build/prod/libdns_sd.so $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so.1 + ( cd $(PKG_INSTALL_DIR)/usr/lib/ && ln -fs libdns_sd.so.1 libdns_sd.so ) endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_BUILD_DIR)/mDNSShared/dns_sd.h $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/mDNSPosix/build/prod/*.so* $(1)/usr/lib/ + + # XXX: mDNSResponder's makefile gets this wrong; for building other packages. + rm -f $(1)/usr/lib/libdns_sd.so $(1)/usr/lib/libdns_sd.so.1 + $(CP) $(PKG_BUILD_DIR)/mDNSPosix/build/prod/libdns_sd.so $(1)/usr/lib/libdns_sd.so.1 + ( cd $(1)/usr/lib/ && ln -fs libdns_sd.so.1 libdns_sd.so ) endef define Package/mdns-utils/conffile _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel