build: reorder more BuildPackages lines to deal with ABI_VERSION
authorFelix Fietkau <nbd@nbd.name>
Mon, 15 Feb 2021 23:03:28 +0000 (00:03 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 16 Feb 2021 10:29:38 +0000 (11:29 +0100)
After the ABI version rework, packages need to be declared in the order of
their dependencies, so that dependent packages will use the right ABI version

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/libs/elfutils/Makefile
package/network/utils/bpftools/Makefile
package/network/utils/ipset/Makefile
package/network/utils/iptables/Makefile
package/network/utils/wireless-tools/Makefile
package/system/uci/Makefile
package/utils/e2fsprogs/Makefile

index f2b25d2c36b1fa3be634847429f71cb2f70ff332..aa6743e68818303d3738001a59e8b93bb79467d9 100644 (file)
@@ -95,7 +95,8 @@ define Package/libelf/install
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libelf{-*.so,*.so.*} $(1)/usr/lib/
 endef
 
-$(eval $(call BuildPackage,libasm))
-$(eval $(call BuildPackage,libdw))
+# these lines need to be ordered by dependency because of ABI versioning
 $(eval $(call BuildPackage,libelf))
+$(eval $(call BuildPackage,libdw))
+$(eval $(call BuildPackage,libasm))
 $(eval $(call HostBuild))
index 06a7a7adfda6b9deec4cbd86a90e4de3ccf9f639..7a25b357551bb61cbce66416c7028915041c526d 100644 (file)
@@ -162,6 +162,6 @@ define Package/libbpf/install
        $(CP) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/libbpf.so.* $(1)/usr/lib/
 endef
 
+$(eval $(call BuildPackage,libbpf))
 $(eval $(call BuildPackage,bpftool-full))
 $(eval $(call BuildPackage,bpftool-minimal))
-$(eval $(call BuildPackage,libbpf))
index 2d0c561198a49e55f1dbcdb46c8f116ab0e04b24..bc4945e0f6c6e5981aa06c945f95bd498c36d7a9 100644 (file)
@@ -69,5 +69,5 @@ define Package/libipset/install
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipset*.so.* $(1)/usr/lib/
 endef
 
-$(eval $(call BuildPackage,ipset))
 $(eval $(call BuildPackage,libipset))
+$(eval $(call BuildPackage,ipset))
index 9f033de72f47ad46bd14bd2994d3922dcad46ff6..b1ac0be4e84c231136dc5e63fe08300ee1310b54 100644 (file)
@@ -657,6 +657,10 @@ define BuildPlugin
   $$(eval $$(call BuildPackage,$(1)))
 endef
 
+$(eval $(call BuildPackage,libxtables))
+$(eval $(call BuildPackage,libxtables-nft))
+$(eval $(call BuildPackage,libip4tc))
+$(eval $(call BuildPackage,libip6tc))
 $(eval $(call BuildPackage,iptables))
 $(eval $(call BuildPackage,iptables-nft))
 $(eval $(call BuildPlugin,iptables-mod-conntrack-extra,$(IPT_CONNTRACK_EXTRA-m)))
@@ -685,7 +689,4 @@ $(eval $(call BuildPackage,ip6tables))
 $(eval $(call BuildPackage,ip6tables-nft))
 $(eval $(call BuildPlugin,ip6tables-extra,$(IPT_IPV6_EXTRA-m)))
 $(eval $(call BuildPlugin,ip6tables-mod-nat,$(IPT_NAT6-m)))
-$(eval $(call BuildPackage,libip4tc))
-$(eval $(call BuildPackage,libip6tc))
-$(eval $(call BuildPackage,libxtables))
-$(eval $(call BuildPackage,libxtables-nft))
+
index 485b85ddc75b95b34edd4b2c4caa376da385d7fc..52e246a59c800291abe405ee54cc77454034257a 100644 (file)
@@ -89,5 +89,5 @@ define Package/libiw/install
        $(CP) $(PKG_BUILD_DIR)/libiw.so.* $(1)/usr/lib/
 endef
 
-$(eval $(call BuildPackage,wireless-tools))
 $(eval $(call BuildPackage,libiw))
+$(eval $(call BuildPackage,wireless-tools))
index fca800a5414efb748ea0684bf35da53bad57bf4d..4fd5568bfba65eace5d663293f743677851af3e0 100644 (file)
@@ -84,6 +84,6 @@ define Build/InstallDev
        $(CP) $(PKG_BUILD_DIR)/libucimap.a $(1)/usr/lib
 endef
 
-$(eval $(call BuildPackage,uci))
 $(eval $(call BuildPackage,libuci))
 $(eval $(call BuildPackage,libuci-lua))
+$(eval $(call BuildPackage,uci))
index 43ad42602aa1d4af2f4f4ad2782d5912de499278..3d64fab587db137336042975abcce51f27258530 100644 (file)
@@ -315,10 +315,10 @@ define Package/lsattr/install
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsattr $(1)/usr/bin/
 endef
 
-$(eval $(call BuildPackage,e2fsprogs))
 $(eval $(call BuildPackage,libcomerr))
 $(eval $(call BuildPackage,libss))
 $(eval $(call BuildPackage,libext2fs))
+$(eval $(call BuildPackage,e2fsprogs))
 $(eval $(call BuildPackage,tune2fs))
 $(eval $(call BuildPackage,resize2fs))
 $(eval $(call BuildPackage,badblocks))