From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BFC7E138239 for ; Sun, 29 Mar 2020 11:36:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E6F0E0AC2; Sun, 29 Mar 2020 11:36:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CFD65E0AC2 for ; Sun, 29 Mar 2020 11:36:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B923434FAFF for ; Sun, 29 Mar 2020 11:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD1591AC for ; Sun, 29 Mar 2020 11:35:59 +0000 (UTC) From: "Bernard Cafarelli" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Bernard Cafarelli" Message-ID: <1585481726.56952c803f8f37df9896b9016cf8ced7dc05f2b4.voyageur@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmSMPmon/files/, x11-plugins/wmSMPmon/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-plugins/wmSMPmon/files/wmSMPmon-3.1-fno-common.patch x11-plugins/wmSMPmon/wmSMPmon-3.1-r2.ebuild X-VCS-Directories: x11-plugins/wmSMPmon/ x11-plugins/wmSMPmon/files/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: 56952c803f8f37df9896b9016cf8ced7dc05f2b4 X-VCS-Branch: master Date: Sun, 29 Mar 2020 11:35:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 44416716-c4c6-48e8-9a74-6ef07cae261b X-Archives-Hash: 1a97ee7874b860438ba6b87169e9107e commit: 56952c803f8f37df9896b9016cf8ced7dc05f2b4 Author: Bernard Cafarelli gentoo org> AuthorDate: Sun Mar 29 11:35:13 2020 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Sun Mar 29 11:35:26 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56952c80 x11-plugins/wmSMPmon: fix build with -fno-common Closes: https://bugs.gentoo.org/707812 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Bernard Cafarelli gentoo.org> .../wmSMPmon/files/wmSMPmon-3.1-fno-common.patch | 36 ++++++++++++++++++++++ x11-plugins/wmSMPmon/wmSMPmon-3.1-r2.ebuild | 11 +++++-- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-fno-common.patch b/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-fno-common.patch new file mode 100644 index 00000000000..f1416fcc024 --- /dev/null +++ b/x11-plugins/wmSMPmon/files/wmSMPmon-3.1-fno-common.patch @@ -0,0 +1,36 @@ +diff -Naur wmSMPmon-3.1.orig/wmgeneral/wmgeneral.h wmSMPmon-3.1/wmgeneral/wmgeneral.h +--- wmSMPmon-3.1.orig/wmgeneral/wmgeneral.h 1999-04-25 05:08:22.000000000 +0200 ++++ wmSMPmon-3.1/wmgeneral/wmgeneral.h 2020-03-29 13:32:55.253627166 +0200 +@@ -36,7 +36,7 @@ + /* Global variable */ + /*******************/ + +-Display *display; ++extern Display *display; + + /***********************/ + /* Function Prototypes */ +diff -Naur wmSMPmon-3.1.orig/wmSMPmon/standards.h wmSMPmon-3.1/wmSMPmon/standards.h +--- wmSMPmon-3.1.orig/wmSMPmon/standards.h 2004-11-19 14:57:30.000000000 +0100 ++++ wmSMPmon-3.1/wmSMPmon/standards.h 2020-03-29 13:32:14.666639432 +0200 +@@ -37,7 +37,7 @@ + #define HAUTEUR 31 /* Max. height of CPU Load Bar+Graph */ + + /* Program name used in error messages */ +-char *Myname; ++extern char *Myname; + + /* NumCPUs_DoInit returns the number of CPUs present in the system and + performs any initialization necessary for the sysinfo-XXX module */ +diff -Naur wmSMPmon-3.1.orig/wmSMPmon/wmSMPmon.c wmSMPmon-3.1/wmSMPmon/wmSMPmon.c +--- wmSMPmon-3.1.orig/wmSMPmon/wmSMPmon.c 2005-11-07 01:24:32.000000000 +0100 ++++ wmSMPmon-3.1/wmSMPmon/wmSMPmon.c 2020-03-29 13:33:03.630624637 +0200 +@@ -35,6 +35,8 @@ + /*###### Funcition definitions ##########################################*/ + void usage(int cpus, const char *str); + ++char *Myname; ++Display *display; + + /*###### MAIN PROGRAM ###################################################*/ + int main(int argc, char **argv) diff --git a/x11-plugins/wmSMPmon/wmSMPmon-3.1-r2.ebuild b/x11-plugins/wmSMPmon/wmSMPmon-3.1-r2.ebuild index 9619fe673e8..cc153566aa1 100644 --- a/x11-plugins/wmSMPmon/wmSMPmon-3.1-r2.ebuild +++ b/x11-plugins/wmSMPmon/wmSMPmon-3.1-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -22,10 +22,17 @@ DEPEND="${RDEPEND} DOCS=( ../Changelog ) -S="${WORKDIR}/${P}/${PN}" +S=${WORKDIR}/${P}/${PN} PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) +src_prepare() { + default + + pushd "${WORKDIR}"/${P} || die + eapply "${FILESDIR}"/${P}-fno-common.patch +} + src_compile() { emake CC="$(tc-getCC)" LIBDIR="/usr/$(get_libdir)" }