ports/170761: [PATCH] textproc/augeas: fix for sysctl.aug
Dave Duchscher
daved at tamu.edu
Sun Aug 19 01:30:10 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list