Bug 230351 - sysutils/xosview: Update to 1.20
Summary: sysutils/xosview: Update to 1.20
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL: https://github.com/hills/xosview/comm...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-04 14:44 UTC by Nathan
Modified: 2018-12-31 13:08 UTC (History)
3 users (show)

See Also:
otacilio.neto: maintainer-feedback+


Attachments
Update (1.42 KB, patch)
2018-08-04 14:44 UTC, Nathan
no flags Details | Diff
Poudriere Log 10.4-Release (33.03 KB, text/plain)
2018-08-04 14:46 UTC, Nathan
no flags Details
Poudriere Log 11.2-Stable (33.19 KB, text/plain)
2018-08-04 14:49 UTC, Nathan
no flags Details
Update (1.58 KB, patch)
2018-08-06 21:53 UTC, Nathan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Nathan 2018-08-04 14:46:50 UTC
Created attachment 195841 [details]
Poudriere Log 10.4-Release
Comment 2 Nathan 2018-08-04 14:49:42 UTC
Created attachment 195842 [details]
Poudriere Log 11.2-Stable
Comment 3 Otacílio de Araújo Ramos Neto 2018-08-06 13:20:02 UTC
This new version shows this message when I try to run it:

[ota@nostromo /usr/home/ota]$ xosview 
xosview: OpenKDIfNeeded(): /dev/mem: Permission denied: Permission denied
[ota@nostromo /usr/home/ota]$ 

The problem doesn't occur on the old version. Maybe needs a more specific patch?
Comment 4 Dmitri Goutnik freebsd_committer freebsd_triage 2018-08-06 14:05:27 UTC
Hi Nathan,

(1) bin/xosview entry in PLIST_FILES is missing ownership specification "@(,kmem,2555)", hence the permission issues. BTW, why the move to PLIST_FILES? pkg-plist looks fine to me.

(2) If you decide to go with PLIST_FILES, pkg-plist needs to be removed. It's either PLIST_FILES or pkg-plist. `portlint -AC` and `make package` warn about this.

(3) Why the need for LIB_DEPENDS=libkvm.so:misc/compat10x ?
Comment 5 Nathan 2018-08-06 16:37:12 UTC
(In reply to Dmitri Goutnik from comment #4)
> Hi Nathan,
> 
> (1) bin/xosview entry in PLIST_FILES is missing ownership specification
> "@(,kmem,2555)", hence the permission issues. BTW, why the move to
> PLIST_FILES? pkg-plist looks fine to me.
> 
> (2) If you decide to go with PLIST_FILES, pkg-plist needs to be removed.
> It's either PLIST_FILES or pkg-plist. `portlint -AC` and `make package` warn
> about this.
> 
> (3) Why the need for LIB_DEPENDS=libkvm.so:misc/

Used plist bc it’s less than 6 files as portlint complains about that. Working on fixing the permissions. I tested it but ofc poudriere interactive puts shell in to root
Comment 6 Nathan 2018-08-06 21:53:35 UTC
Created attachment 195952 [details]
Update
Comment 7 Otacílio de Araújo Ramos Neto 2018-08-13 12:24:51 UTC
The patch looks OK to me. Another guy must commit it because I don't have commit bit.
Comment 8 Fernando Apesteguía freebsd_committer freebsd_triage 2018-08-13 18:20:26 UTC
Take
Comment 9 Fernando Apesteguía freebsd_committer freebsd_triage 2018-08-14 16:39:25 UTC
This is broken in 12-CURRENT due to changes in sys/vmmeter.h

https://svnweb.freebsd.org/base/head/sys/sys/vmmeter.h?r1=328134&r2=328954
Comment 10 Otacílio de Araújo Ramos Neto 2018-08-14 17:50:43 UTC
The xosview version 1.19 is also broken on FreeBSD 12. Is it necessary to fix the build on FreeBSD 12 to perform the commit? Now is the second time that xosview has broken in FreeBSD 12 because of modifications in source code. I was waiting for the code freeze to address this problem on 12.
Comment 11 Fernando Apesteguía freebsd_committer freebsd_triage 2018-08-14 18:22:33 UTC
(In reply to otacilio.neto from comment #10)

>The xosview version 1.19 is also broken on FreeBSD 12. Is it necessary to 
>fix the build on FreeBSD 12 to perform the commit?

Not strictly necessary but I was surprised it was not marked as BROKEN. It is not surprising though that this happens since xosview peeks into internal data structures.

I had a look at the problem but I don't have the necessary knowledge about how the statistics are calculated to try and find some equivalent values to those that are now missing.

I created a review for this PR:

https://reviews.freebsd.org/D16710
Comment 12 commit-hook freebsd_committer freebsd_triage 2018-08-15 16:43:03 UTC
A commit references this bug:

Author: fernape
Date: Wed Aug 15 16:42:38 UTC 2018
New revision: 477239
URL: https://svnweb.freebsd.org/changeset/ports/477239

Log:
  sysutils/xosview: update to 1.20

  Mark as BROKEN in 12

  PR:	230351
  Submitted by:	ndowens@yahoo.com
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D16710

Changes:
  head/sysutils/xosview/Makefile
  head/sysutils/xosview/distinfo
  head/sysutils/xosview/files/patch-bsd_kernel.cc
  head/sysutils/xosview/pkg-plist
Comment 13 Fernando Apesteguía freebsd_committer freebsd_triage 2018-08-15 16:43:40 UTC
Committed,

Thanks!