From patchwork Sun Jan 28 04:43:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 866800 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zTg630vBxz9t45 for ; Sun, 28 Jan 2018 15:44:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id F3C65888F6; Sun, 28 Jan 2018 04:44:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t1+5TGdJz2It; Sun, 28 Jan 2018 04:44:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BF379887B1; Sun, 28 Jan 2018 04:44:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B11DC1C0AEA for ; Sun, 28 Jan 2018 04:44:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ACBFE887B1 for ; Sun, 28 Jan 2018 04:44:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7xRvp1LZwQ9a for ; Sun, 28 Jan 2018 04:44:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by hemlock.osuosl.org (Postfix) with ESMTPS id C6972884B5 for ; Sun, 28 Jan 2018 04:44:14 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id 0CEBF16CE28C for ; Sun, 28 Jan 2018 02:44:02 -0200 (-02) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id F10FF16CA403 for ; Sun, 28 Jan 2018 02:44:01 -0200 (-02) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id f72AolyYLI-T for ; Sun, 28 Jan 2018 02:44:01 -0200 (-02) Received: from p7-1130br.casantos.org (189.27.169.228.dynamic.adsl.gvt.net.br [189.27.169.228]) by mail.datacom.ind.br (Postfix) with ESMTPSA id B2EC816C2DF7 for ; Sun, 28 Jan 2018 02:44:01 -0200 (-02) From: Carlos Santos To: buildroot@buildroot.org Date: Sun, 28 Jan 2018 02:43:58 -0200 Message-Id: <20180128044358.6696-1-casantos@datacom.ind.br> X-Mailer: git-send-email 2.14.3 Subject: [Buildroot] [PATCH] lshw: use data files provided by hwdata X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" lshw is seldomly released, so its data files become easily outdated. Fortunately it looks for the files in several directories, so let it find the files at /usr/share/hwdata, since the hwdata collection is released on a monthly basis. The manuf.txt and oui.txt files are not used at run time, so it's not necessary to install them. Signed-off-by: Carlos Santos --- ...4-For-Buildroot-do-not-install-data-files.patch | 34 ++++++++++++++++++++++ package/lshw/Config.in | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 package/lshw/0004-For-Buildroot-do-not-install-data-files.patch diff --git a/package/lshw/0004-For-Buildroot-do-not-install-data-files.patch b/package/lshw/0004-For-Buildroot-do-not-install-data-files.patch new file mode 100644 index 0000000000..10abe1e097 --- /dev/null +++ b/package/lshw/0004-For-Buildroot-do-not-install-data-files.patch @@ -0,0 +1,34 @@ +From 68fb28c82238d4d894d56c5b97449e310086bd9e Mon Sep 17 00:00:00 2001 +From: Carlos Santos +Date: Sun, 28 Jan 2018 01:40:27 -0200 +Subject: [PATCH] For Buildroot: do not install data files + +lshw is seldomly released, so its data files become easily outdated. +Fortunately it looks for the files in several directories, so let it +find the files at /usr/share/hwdata, since the hwdata collection is +released on a monthly basis. + +The manuf.txt and oui.txt files are not used at run time, so it's not +necessary to install them. + +Signed-off-by: Carlos Santos +--- + src/Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/src/Makefile b/src/Makefile +index b50586b..1b67174 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -98,8 +98,6 @@ install: all + $(INSTALL) -m 0755 $(PACKAGENAME) $(DESTDIR)/$(SBINDIR) + $(INSTALL) -d -m 0755 $(DESTDIR)/$(MANDIR)/man1 + $(INSTALL) -m 0644 $(PACKAGENAME).1 $(DESTDIR)/$(MANDIR)/man1 +- $(INSTALL) -d -m 0755 $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) +- $(INSTALL) -m 0644 $(DATAFILES) $(DESTDIR)/$(DATADIR)/$(PACKAGENAME) + make -C po install + + install-gui: gui +-- +2.14.3 + diff --git a/package/lshw/Config.in b/package/lshw/Config.in index 3caac66c72..eea4312008 100644 --- a/package/lshw/Config.in +++ b/package/lshw/Config.in @@ -2,6 +2,9 @@ config BR2_PACKAGE_LSHW bool "lshw" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_WCHAR + select BR2_PACKAGE_HWDATA + select BR2_PACKAGE_HWDATA_PCI_IDS + select BR2_PACKAGE_HWDATA_USB_IDS help lshw (Hardware Lister) is a small tool to provide detailed information on the hardware configuration of the