Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2012 01:19:00 GMT
From:      Dave Duchscher <daved@tamu.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        swills@FreeBSD.org
Subject:   ports/170761: [PATCH] textproc/augeas: fix for sysctl.aug
Message-ID:  <201208190119.q7J1J0ld072270@irc.net.tamu.edu>
Resent-Message-ID: <201208190130.q7J1U93j040438@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170761
>Category:       ports
>Synopsis:       [PATCH] textproc/augeas: fix for sysctl.aug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 19 01:30:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Dave Duchscher
>Release:        FreeBSD 8.3-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD test.net.tamu.edu 8.3-RELEASE-p2 FreeBSD 8.3-RELEASE-p2 #1: Fri Jun  8 04:07:44 UTC
>Description:

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)
>How-To-Repeat:
>Fix:

--- augeas-0.10.0_4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/augeas/files/patch-lenses__sysctl.aug ./files/patch-lenses__sysctl.aug
--- /usr/ports/textproc/augeas/files/patch-lenses__sysctl.aug	1970-01-01 00:00:00.000000000 +0000
+++ ./files/patch-lenses__sysctl.aug	2012-08-19 01:12:42.000000000 +0000
@@ -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]*/ "# "
--- augeas-0.10.0_4.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208190119.q7J1J0ld072270>