Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2013 23:31:15 GMT
From:      Mike Carlson <mike@bayphoto.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181440: [PATCH] sysutils/py-salt-api : update to 0.8.2
Message-ID:  <201308202331.r7KNVF1u080330@oldred.freebsd.org>
Resent-Message-ID: <201308202340.r7KNe0RV066381@freefall.freebsd.org>

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

>Number:         181440
>Category:       ports
>Synopsis:       [PATCH] sysutils/py-salt-api : update to 0.8.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 20 23:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Mike Carlson
>Release:        9.1-RELEASE
>Organization:
Bay Photo Lab
>Environment:
FreeBSD b-bot.discdrive.bayphoto.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
salt-api is broken, by default it will not even start up:

# salt-api
Traceback (most recent call last):
  File "/usr/local/bin/salt-api", line 11, in <module>
    main()
  File "/usr/local/bin/salt-api", line 7, in main
    sapi = saltapi.cli.SaltAPI()
  File "/usr/local/lib/python2.7/site-packages/salt/utils/parsers.py", line 113, in __init__
    optparse.OptionParser.__init__(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/optparse.py", line 1219, in __init__
    add_help=add_help_option)
  File "/usr/local/lib/python2.7/site-packages/salt/utils/parsers.py", line 178, in _populate_option_list
    mixin_setup_func(self)
  File "/usr/local/lib/python2.7/site-packages/salt/utils/parsers.py", line 308, in _mixin_setup
    self.__class__.__name__
RuntimeError: Please set SaltAPI._default_logging_logfile_

The patch updates it to 0.8.2, which has the logfile fix
>How-To-Repeat:
cd /usr/ports/sysutils/py-salt-api
make install

then run:
/usr/local/bin/salt-api
>Fix:
I've patched the ports, see the included file

Patch attached with submission follows:

Index: sysutils/py-salt-api/Makefile
===================================================================
--- sysutils/py-salt-api/Makefile	(revision 325077)
+++ sysutils/py-salt-api/Makefile	(working copy)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	salt-api
-PORTVERSION=	0.8.1
+PORTVERSION=	0.8.2
 CATEGORIES=	sysutils python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Index: sysutils/py-salt-api/distinfo
===================================================================
--- sysutils/py-salt-api/distinfo	(revision 325077)
+++ sysutils/py-salt-api/distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (salt-api-0.8.1.tar.gz) = d780ad171bbca5a26a41dc9934f5e86e68dcd11595f2133b4b1250c11daa2338
-SIZE (salt-api-0.8.1.tar.gz) = 41541
+SHA256 (salt-api-0.8.2.tar.gz) = f265d6c37f4f73a1a655997cf3a94e03ad8a40d3d9e2af9175079f0dfe3c4ec0
+SIZE (salt-api-0.8.2.tar.gz) = 42544


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



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