Bug 216450 - sysutils/p5-BSD-Sysctl: Support setting 64-bit sysctl values
Summary: sysutils/p5-BSD-Sysctl: Support setting 64-bit sysctl values
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-24 21:34 UTC by Jonathan T. Looney
Modified: 2017-07-08 13:47 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (david)


Attachments
Cumulative patch-Sysctl.xs file, which adds support for setting 64-bit sysctl values (8.68 KB, patch)
2017-01-24 21:34 UTC, Jonathan T. Looney
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan T. Looney freebsd_committer freebsd_triage 2017-01-24 21:34:22 UTC
Created attachment 179292 [details]
Cumulative patch-Sysctl.xs file, which adds support for setting 64-bit sysctl values

The attached patch supports setting 64-bit sysctl values.

(Note that the patch is a complete patch-Sysctl.xs file, which includes all the changes from the existing patch-Sysctl.xs file.)
Comment 1 david 2017-02-07 13:28:41 UTC
Ideally, it would be nice to have a unit test that fetched a 64-bit counter. (Skipped if the environment doesn't support it).

The looks pretty good to me, unfortunately I don't have (easy) access to a machine to test that it works.
Comment 2 Jonathan T. Looney freebsd_committer freebsd_triage 2017-02-08 13:08:15 UTC
(In reply to david from comment #1)
> Ideally, it would be nice to have a unit test that fetched a 64-bit counter. (Skipped if the environment doesn't support it).

This patch doesn't address support for fetching 64-bit values; rather, it only addresses setting them. In that vein, you can test support for this by setting TEST_BSD_SYSCTL_NAME to a 64-bit sysctl prior to running the tests.

> The looks pretty good to me, unfortunately I don't have (easy) access to a machine to test that it works.

FWIW, we use this in production where I work. (I know it still would be nice to have independent verification.)
Comment 3 commit-hook freebsd_committer freebsd_triage 2017-07-08 13:46:13 UTC
A commit references this bug:

Author: swills
Date: Sat Jul  8 13:45:34 UTC 2017
New revision: 445326
URL: https://svnweb.freebsd.org/changeset/ports/445326

Log:
  sysutils/p5-BSD-Sysctl: Support setting 64-bit sysctl values

  PR:		216450
  Submitted by:	jtl
  Approved by:	david@landgren.net (maintainer timeout, 5 months)

Changes:
  head/sysutils/p5-BSD-Sysctl/Makefile
  head/sysutils/p5-BSD-Sysctl/files/
  head/sysutils/p5-BSD-Sysctl/files/patch-Sysctl.xs
Comment 4 Steve Wills freebsd_committer freebsd_triage 2017-07-08 13:47:45 UTC
Committed, thanks!