Created attachment 194085 [details] patch This patch applies a small fix to the freebsdservice.py SaltStack module that caused the upstream bug described here: https://github.com/saltstack/salt/issues/47502, https://github.com/saltstack/salt/issues/48036.
Comment on attachment 194085 [details] patch >diff -ruN sysutils/py-salt/Makefile local/py-salt-2018.3.0_2/Makefile >--- sysutils/py-salt/Makefile 2018-04-25 15:01:46.000000000 -0600 >+++ local/py-salt-2018.3.0_2/Makefile 2018-06-08 19:18:13.852487000 -0600 >@@ -3,8 +3,8 @@ > > PORTNAME= salt > PORTVERSION= 2018.3.0 >-PORTREVISION= 1 >-CATEGORIES= sysutils python >+PORTREVISION= 2 >+CATEGORIES= sysutils python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >diff -ruN sysutils/py-salt/files/patch-salt_modules_freebsdservice.py local/py-salt-2018.3.0_2/files/patch-salt_modules_freebsdservice.py >--- sysutils/py-salt/files/patch-salt_modules_freebsdservice.py 1969-12-31 17:00:00.000000000 -0700 >+++ local/py-salt-2018.3.0_2/files/patch-salt_modules_freebsdservice.py 2018-06-08 19:17:16.687925000 -0600 >@@ -0,0 +1,11 @@ >+--- salt/modules/freebsdservice.py 2018-06-08 19:14:43.986965000 -0600 >++++ salt/modules/freebsdservice.py 2018-06-08 19:15:09.970086000 -0600 >+@@ -225,7 +225,7 @@ >+ if os.path.exists(config): >+ with salt.utils.files.fopen(config, 'r') as ifile: >+ for line in ifile: >+- line = salt.utils.stringutils.to_unicode(line).rstrip('\n') >++ line = salt.utils.stringutils.to_unicode(line) >+ if not line.startswith('{0}='.format(rcvar)): >+ nlines.append(line) >+ continue
Comment on attachment 194085 [details] patch >diff -ruN sysutils/py-salt/Makefile local/py-salt-2018.3.0_2/Makefile >--- sysutils/py-salt/Makefile 2018-04-25 15:01:46.000000000 -0600 >+++ local/py-salt-2018.3.0_2/Makefile 2018-06-08 19:18:13.852487000 -0600 >@@ -3,8 +3,8 @@ > > PORTNAME= salt > PORTVERSION= 2018.3.0 >-PORTREVISION= 1 >-CATEGORIES= local python >+PORTREVISION= 2 >+CATEGORIES= sysutils python > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >diff -ruN sysutils/py-salt/files/patch-salt_modules_freebsdservice.py local/py-salt-2018.3.0_2/files/patch-salt_modules_freebsdservice.py >--- sysutils/py-salt/files/patch-salt_modules_freebsdservice.py 1969-12-31 17:00:00.000000000 -0700 >+++ local/py-salt-2018.3.0_2/files/patch-salt_modules_freebsdservice.py 2018-06-08 19:17:16.687925000 -0600 >@@ -0,0 +1,11 @@ >+--- salt/modules/freebsdservice.py 2018-06-08 19:14:43.986965000 -0600 >++++ salt/modules/freebsdservice.py 2018-06-08 19:15:09.970086000 -0600 >+@@ -225,7 +225,7 @@ >+ if os.path.exists(config): >+ with salt.utils.files.fopen(config, 'r') as ifile: >+ for line in ifile: >+- line = salt.utils.stringutils.to_unicode(line).rstrip('\n') >++ line = salt.utils.stringutils.to_unicode(line) >+ if not line.startswith('{0}='.format(rcvar)): >+ nlines.append(line) >+ continue
Comment on attachment 194085 [details] patch >diff -ruN sysutils/py-salt/Makefile local/py-salt-2018.3.0_2/Makefile >--- sysutils/py-salt/Makefile 2018-04-25 15:01:46.000000000 -0600 >+++ local/py-salt-2018.3.0_2/Makefile 2018-06-08 19:18:13.852487000 -0600 >@@ -3,8 +3,8 @@ > > PORTNAME= salt > PORTVERSION= 2018.3.0 >-PORTREVISION= 1 >+PORTREVISION= 2 > MASTER_SITES= CHEESESHOP > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >diff -ruN sysutils/py-salt/files/patch-salt_modules_freebsdservice.py local/py-salt-2018.3.0_2/files/patch-salt_modules_freebsdservice.py >--- sysutils/py-salt/files/patch-salt_modules_freebsdservice.py 1969-12-31 17:00:00.000000000 -0700 >+++ local/py-salt-2018.3.0_2/files/patch-salt_modules_freebsdservice.py 2018-06-08 19:17:16.687925000 -0600 >@@ -0,0 +1,11 @@ >+--- salt/modules/freebsdservice.py 2018-06-08 19:14:43.986965000 -0600 >++++ salt/modules/freebsdservice.py 2018-06-08 19:15:09.970086000 -0600 >+@@ -225,7 +225,7 @@ >+ if os.path.exists(config): >+ with salt.utils.files.fopen(config, 'r') as ifile: >+ for line in ifile: >+- line = salt.utils.stringutils.to_unicode(line).rstrip('\n') >++ line = salt.utils.stringutils.to_unicode(line) >+ if not line.startswith('{0}='.format(rcvar)): >+ nlines.append(line) >+ continue
Resubmitting.