Bug 170761 - [PATCH] textproc/augeas: fix for sysctl.aug
Summary: [PATCH] textproc/augeas: fix for sysctl.aug
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-19 02:30 UTC by Dave Duchscher
Modified: 2012-08-29 19:30 UTC (History)
1 user (show)

See Also:


Attachments
augeas-0.10.0_4.patch (721 bytes, patch)
2012-08-19 02:30 UTC, Dave Duchscher
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Duchscher 2012-08-19 02:30:09 UTC
The default sysctl.aug puts spaces between the sysctl varible name
and the value that is set. This is not valid syntax and so variables
are not processed.  Attached is a patch that I use to correct the
problem.

Added file(s):
- files/patch-lenses__sysctl.aug

Port maintainer (swills@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-19 02:30:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2012-08-29 19:25:26 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-08-29 19:25:35 UTC
Author: swills
Date: Wed Aug 29 18:25:20 2012
New Revision: 303345
URL: http://svn.freebsd.org/changeset/ports/303345

Log:
  - Fix sysctl lens
  
  PR:		ports/170761
  Submitted by:	Dave Duchscher <daved@tamu.edu>

Added:
  head/textproc/augeas/files/patch-lenses__sysctl.aug   (contents, props changed)
Modified:
  head/textproc/augeas/Makefile   (contents, props changed)

Modified: head/textproc/augeas/Makefile
==============================================================================
--- head/textproc/augeas/Makefile	Wed Aug 29 17:10:15 2012	(r303344)
+++ head/textproc/augeas/Makefile	Wed Aug 29 18:25:20 2012	(r303345)
@@ -8,7 +8,7 @@
 
 PORTNAME=	augeas
 PORTVERSION=	0.10.0
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	textproc
 MASTER_SITES=	http://augeas.net/download/
 

Added: head/textproc/augeas/files/patch-lenses__sysctl.aug
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/augeas/files/patch-lenses__sysctl.aug	Wed Aug 29 18:25:20 2012	(r303345)
@@ -0,0 +1,11 @@
+--- lenses/sysctl.aug.orig	2012-08-19 01:11:41.000000000 +0000
++++ lenses/sysctl.aug	2012-08-19 01:11:57.000000000 +0000
+@@ -6,7 +6,7 @@
+   let eol = Util.eol
+   let indent = Util.indent
+   let key_re = /[A-Za-z0-9_.-]+/
+-  let eq = del /[ \t]*=[ \t]*/ " = "
++  let eq = del /[ \t]*=[ \t]*/ "="
+   let value_re = /[^ \t\n](.*[^ \t\n])?/
+ 
+   let comment = [ indent . label "#comment" . del /[#;][ \t]*/ "# "
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"