util-linux: remove custom pkgconfig patch
authorRosen Penev <rosenp@gmail.com>
Thu, 28 Jan 2021 05:17:07 +0000 (21:17 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 31 Jan 2021 15:25:08 +0000 (16:25 +0100)
Replace with sed as done elsewhere.

Fixes error with at least btrfs-progs:

Package '@LIBSELINUX@', required by 'mount', not found
Package '@LIBCRYPTSETUP@', required by 'mount', not foun

Signed-off-by: Rosen Penev <rosenp@gmail.com>
package/utils/util-linux/Makefile
package/utils/util-linux/patches/003-fix_pkgconfig_files.patch [deleted file]

index 31a66493e97f2b4acab7606cfeba2a339ec6d799..f4b870cc47cd08a40cfc91b367a0f2b397279184 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=util-linux
 PKG_VERSION:=2.36.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.36
@@ -534,10 +534,20 @@ TARGET_CFLAGS += $(FPIC) -std=gnu99
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/blkid.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/blkid.pc
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/fdisk.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/fdisk.pc
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/mount.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/mount.pc
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/smartcols.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/smartcols.pc
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/uuid.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/uuid.pc
 
        $(INSTALL_DIR) $(1)/usr/include/blkid
        $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
diff --git a/package/utils/util-linux/patches/003-fix_pkgconfig_files.patch b/package/utils/util-linux/patches/003-fix_pkgconfig_files.patch
deleted file mode 100644 (file)
index 4797f7d..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
---- a/libuuid/Makemodule.am
-+++ b/libuuid/Makemodule.am
-@@ -4,7 +4,6 @@ include libuuid/man/Makemodule.am
- include libuuid/src/Makemodule.am
- pkgconfig_DATA += libuuid/uuid.pc
--PATHFILES      += libuuid/uuid.pc
- EXTRA_DIST     += libuuid/COPYING
- endif # BUILD_LIBUUID
---- a/configure.ac
-+++ b/configure.ac
-@@ -2522,18 +2522,23 @@ AC_CONFIG_HEADERS([config.h])
- #
- AC_CONFIG_FILES([
- Makefile
-+libblkid/blkid.pc
- libblkid/docs/Makefile
- libblkid/docs/version.xml
- libblkid/src/blkid.h
-+libfdisk/fdisk.pc
- libfdisk/docs/Makefile
- libfdisk/docs/version.xml
- libfdisk/src/libfdisk.h
-+libmount/mount.pc
- libmount/docs/Makefile
- libmount/docs/version.xml
- libmount/src/libmount.h
-+libsmartcols/smartcols.pc
- libsmartcols/docs/Makefile
- libsmartcols/docs/version.xml
- libsmartcols/src/libsmartcols.h
-+libuuid/uuid.pc
- po/Makefile.in
- ])
---- a/libblkid/Makemodule.am
-+++ b/libblkid/Makemodule.am
-@@ -9,7 +9,6 @@ SUBDIRS += libblkid/docs
- endif
- pkgconfig_DATA += libblkid/blkid.pc
--PATHFILES      += libblkid/blkid.pc
- dist_man_MANS  += libblkid/libblkid.3
- EXTRA_DIST     += libblkid/COPYING
---- a/libmount/Makemodule.am
-+++ b/libmount/Makemodule.am
-@@ -9,7 +9,6 @@ SUBDIRS += libmount/docs
- endif
- pkgconfig_DATA += libmount/mount.pc
--PATHFILES      += libmount/mount.pc
- EXTRA_DIST     += libmount/COPYING
- endif # BUILD_LIBMOUNT
---- a/libsmartcols/Makemodule.am
-+++ b/libsmartcols/Makemodule.am
-@@ -9,7 +9,6 @@ SUBDIRS += libsmartcols/docs
- endif
- pkgconfig_DATA += libsmartcols/smartcols.pc
--PATHFILES      += libsmartcols/smartcols.pc
- EXTRA_DIST     += libsmartcols/COPYING
- endif # BUILD_LIBSMARTCOLS
---- a/libfdisk/Makemodule.am
-+++ b/libfdisk/Makemodule.am
-@@ -9,7 +9,6 @@ SUBDIRS += libfdisk/docs
- endif
- pkgconfig_DATA += libfdisk/fdisk.pc
--PATHFILES      += libfdisk/fdisk.pc
- EXTRA_DIST     += libfdisk/COPYING
- endif # BUILD_LIBFDISK