From cbedb5de75440b336072ee32bf97a81fac529a6a Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 27 Jan 2021 21:17:07 -0800 Subject: util-linux: remove custom pkgconfig patch 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 --- package/utils/util-linux/Makefile | 12 +++- .../patches/003-fix_pkgconfig_files.patch | 76 ---------------------- 2 files changed, 11 insertions(+), 77 deletions(-) delete mode 100644 package/utils/util-linux/patches/003-fix_pkgconfig_files.patch (limited to 'package') diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile index 31a66493e9..f4b870cc47 100644 --- a/package/utils/util-linux/Makefile +++ b/package/utils/util-linux/Makefile @@ -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 index 4797f7d159..0000000000 --- a/package/utils/util-linux/patches/003-fix_pkgconfig_files.patch +++ /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/bl
/*
 *  nextpnr -- Next Generation Place and Route
 *
 *  Copyright (C) 2018  Claire Xenia Wolf <claire@yosyshq.com>
 *  Copyright (C) 2018  gatecat <gatecat@ds0.me>
 *
 *  Permission to use, copy, modify, and/or distribute this software for any
 *  purpose with or without fee is hereby granted, provided that the above
 *  copyright notice and this permission notice appear in all copies.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 *  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 *  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 *  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 *  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 *  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 *  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 */

#ifndef PCF_H
#define PCF_H

#include <iostream>
#include "nextpnr.h"

NEXTPNR_NAMESPACE_BEGIN

// Apply PCF constraints to a pre-packing design
bool apply_pcf(Context *ctx, std::string filename, std::istream &in);

NEXTPNR_NAMESPACE_END

#endif // ROUTE_H