Bug 234357

Summary: sysutils/htop: Fix bogus memory sizes on FreeBSD/powerpc
Product: Ports & Packages Reporter: Tobias Kortkamp <tobik>
Component: Individual Port(s)Assignee: Tobias Kortkamp <tobik>
Status: Closed FIXED    
Severity: Affects Only Me CC: gaod
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (gaod)
Hardware: Any   
OS: Any   
URL: https://github.com/hishamhm/htop/pull/871
Attachments:
Description Flags
htop.diff tobik: maintainer-approval? (gaod)

Description Tobias Kortkamp freebsd_committer freebsd_triage 2018-12-24 13:18:43 UTC
Created attachment 200455 [details]
htop.diff

On FreeBSD/powerpc htop reports bogus memory sizes.  Add the patch
to the port I just submitted upstream to fix it.

Before patching: https://people.freebsd.org/~tobik/htop-powerpc-bug/before.png
After patching: https://people.freebsd.org/~tobik/htop-powerpc-bug/after.png
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-01-08 15:30:50 UTC
A commit references this bug:

Author: tobik
Date: Tue Jan  8 15:30:14 UTC 2019
New revision: 489709
URL: https://svnweb.freebsd.org/changeset/ports/489709

Log:
  sysutils/htop: Fix memory display in the header

  On amd64 it works correctly, but it breaks on powerpc, due to using
  types with the wrong size when requesting various sysctls.

  PR:		234357
  Submitted by:	tobik
  Approved by:	Hung-Yi Chen <gaod@hychen.org> (maintainer timeout, 2 weeks)

Changes:
  head/sysutils/htop/Makefile
  head/sysutils/htop/files/
  head/sysutils/htop/files/patch-freebsd_FreeBSDProcessList.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-01-11 06:01:13 UTC
A commit references this bug:

Author: tobik
Date: Fri Jan 11 06:00:27 UTC 2019
New revision: 489943
URL: https://svnweb.freebsd.org/changeset/ports/489943

Log:
  MFH: r489709

  sysutils/htop: Fix memory display in the header

  On amd64 it works correctly, but it breaks on powerpc, due to using
  types with the wrong size when requesting various sysctls.

  PR:		234357
  Submitted by:	tobik
  Approved by:	Hung-Yi Chen <gaod@hychen.org> (maintainer timeout, 2 weeks)

  Approved by:	ports-secteam runtime fix blanket

Changes:
_U  branches/2019Q1/
  branches/2019Q1/sysutils/htop/Makefile
  branches/2019Q1/sysutils/htop/files/