Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] nmon: Don't hardcode X86 platform
@ 2020-09-07 19:59 daniel-eys
  2020-09-23  9:35 ` [PR PATCH] [Merged]: " Piraty
  0 siblings, 1 reply; 2+ messages in thread
From: daniel-eys @ 2020-09-07 19:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

There is a new pull request by daniel-eys against master on the void-packages repository

https://github.com/daniel-eys/void-packages nmon
https://github.com/void-linux/void-packages/pull/24741

nmon: Don't hardcode X86 platform
Also remove JFS GETUSER LARGEMEM which have been removed upstream.

A patch file from https://github.com/void-linux/void-packages/pull/24741.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nmon-24741.patch --]
[-- Type: text/x-diff, Size: 1151 bytes --]

From fa366d1192c65a2873bee28b1d7cf772dd9de79c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ey=C3=9Fer?= <daniel.eysser@gmail.com>
Date: Mon, 7 Sep 2020 20:28:16 +0200
Subject: [PATCH] nmon: Don't hardcode X86 platform

Also remove JFS GETUSER LARGEMEM which have been removed upstream.
---
 srcpkgs/nmon/template | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/nmon/template b/srcpkgs/nmon/template
index 7651f9402a3..76f09917ade 100644
--- a/srcpkgs/nmon/template
+++ b/srcpkgs/nmon/template
@@ -1,7 +1,7 @@
 # Template file for 'nmon'
 pkgname=nmon
 version=16m
-revision=1
+revision=2
 build_style=fetch
 makedepends="ncurses-devel"
 depends="ncurses"
@@ -13,7 +13,12 @@ distfiles="${SOURCEFORGE_SITE}/nmon/files/lmon${version}.c"
 checksum=2bed4d45fdfdf1d1387ec91e139c04975d5f838e3e0d53c0fe2d803a707e5fc1
 
 do_build() {
-	$CC ${CFLAGS} ${LDFLAGS} -D JFS -D GETUSER -D LARGEMEM -D X86 \
+	case "$XBPS_TARGET_MACHINE" in
+		ppc*) _ARCH="POWER" ;;
+		arm*|aarch64*) _ARCH="ARM" ;;
+		i686*|x86_64*) _ARCH="X86" ;;
+	esac
+	$CC ${CFLAGS} ${LDFLAGS} -D $_ARCH \
 		lmon${version}.c -lncurses -lm -o nmon
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: nmon: Don't hardcode X86 platform
  2020-09-07 19:59 [PR PATCH] nmon: Don't hardcode X86 platform daniel-eys
@ 2020-09-23  9:35 ` Piraty
  0 siblings, 0 replies; 2+ messages in thread
From: Piraty @ 2020-09-23  9:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

There's a merged pull request on the void-packages repository

nmon: Don't hardcode X86 platform
https://github.com/void-linux/void-packages/pull/24741

Description:
Also remove JFS GETUSER LARGEMEM which have been removed upstream.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-23  9:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-07 19:59 [PR PATCH] nmon: Don't hardcode X86 platform daniel-eys
2020-09-23  9:35 ` [PR PATCH] [Merged]: " Piraty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).