libgpg-error: install gpg-error-config again
authorRosen Penev <rosenp@gmail.com>
Sat, 5 Nov 2022 21:52:08 +0000 (14:52 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 6 Nov 2022 01:00:30 +0000 (18:00 -0700)
Upstream deprecated it while not fixing libgcrypt not to use it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libgpg-error/Makefile

index 559077e1de57a44c939c87dc2bcfd61b660be299..0f02663202d62e09165d20b928f963d962193c03 100644 (file)
@@ -45,6 +45,7 @@ endef
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
+       --enable-install-gpg-error-config \
        --disable-doc \
        --disable-languages \
        --disable-rpath \
@@ -52,13 +53,21 @@ CONFIGURE_ARGS += \
 
 define Build/InstallDev
        $(INSTALL_DIR) $(2)/bin $(1)/usr/bin
+       $(INSTALL_BIN) \
+               $(PKG_INSTALL_DIR)/usr/bin/gpg-error-config \
+               $(2)/bin/
+       $(SED) \
+               's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
+               $(2)/bin/gpg-error-config
+       $(LN) $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
+
        $(INSTALL_BIN) \
                $(PKG_INSTALL_DIR)/usr/bin/gpgrt-config \
                $(2)/bin/
        $(SED) \
                's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
                $(2)/bin/gpgrt-config
-       ln -sf $(STAGING_DIR)/host/bin/gpgrt-config $(1)/usr/bin/gpgrt-config
+       $(LN) $(STAGING_DIR)/host/bin/gpgrt-config $(1)/usr/bin/gpgrt-config
 
        $(INSTALL_DIR) $(1)/usr/include
        $(INSTALL_DATA) \