Re: GRASS 7.2 fails to install on Mac OS X Sierra 10.12.2

2017-01-03 Thread P Kishor
Thanks, tried your suggestion, but no success. I get the same error. Here is 
the log:

 2017-01-04 00:59:12 ☆  lucknow in ~
○ → sudo port selfupdate
Password:
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.5 installed,
MacPorts base version 2.3.5 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

 2017-01-04 08:31:18 ☆  lucknow in ~
○ → sudo port clean grass7
--->  Cleaning grass7

 2017-01-04 08:31:46 ☆  lucknow in ~
○ → sudo port install grass7
--->  Fetching archive for zlib
--->  Attempting to fetch zlib-1.2.10_0.darwin_16.x86_64.tbz2 from 
https://packages.macports.org/zlib
--->  Attempting to fetch zlib-1.2.10_0.darwin_16.x86_64.tbz2.rmd160 from 
https://packages.macports.org/zlib
--->  Installing zlib @1.2.10_0
--->  Cleaning zlib
--->  Deactivating zlib @1.2.9_0
--->  Cleaning zlib
--->  Activating zlib @1.2.10_0
--->  Cleaning zlib
--->  Computing dependencies for grass7
--->  Fetching archive for grass7
--->  Attempting to fetch grass7-7.2.0_0.darwin_16.x86_64.tbz2 from 
https://packages.macports.org/grass7
--->  Attempting to fetch grass7-7.2.0_0.darwin_16.x86_64.tbz2 from 
http://nue.de.packages.macports.org/grass7
--->  Attempting to fetch grass7-7.2.0_0.darwin_16.x86_64.tbz2 from 
http://fco.it.packages.macports.org/mirrors/macports-packages/grass7/grass7
--->  Fetching distfiles for grass7
--->  Verifying checksums for grass7
--->  Extracting grass7
Error: org.macports.patch for port grass7 returned: sed: 
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/grass7/files/patch-libraster_gdal_c.diff.tplt:
 No such file or directory
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port grass7 failed

 2017-01-04 08:32:17 ☆  lucknow in ~
○ →


> On Jan 4, 2017, at 1:37 AM, Ryan Schmidt  wrote:
> 
>> On Jan 3, 2017, at 17:00, P Kishor  wrote:
>> 
>> I get the following message: :error:patch org.macports.patch for port grass7 
>> returned: sed: 
>> /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/grass7/files/patch-libraster_gdal_c.diff.tplt:
>>  No such file or directory
>> 
>> The final 50 lines from the log are shown below. Any suggestions appreciated.
> 
> 
>> :debug:main Skipping completed org.macports.archivefetch (grass7)
> 
> This means it was not a clean build attempt.
> 
> Please "sudo port selfupdate" to ensure your ports are up to date, then "sudo 
> port clean grass7" and try your install again.



Re: Migration issue

2017-01-03 Thread Adam Dershowitz
Yes, xar. 
That port actually got fixed quickly, so the specific problem is gone.
But, the situation still has me curious.  Why should just moving myports.txt 
end up with a bunch more universal ports on the new machine?  Is it a 
difference between 10.11 and 10.12?

On January 3, 2017 7:35:00 PM EST, Ryan Schmidt  wrote:
>
>> On Jan 2, 2017, at 14:12, Adam Dershowitz  wrote:
>> 
>> I am trying to get an existing set of ports into a new machine. 
>> I ended up wiping /opt/local on the new machine, so I'm just using
>the migration script and myports.txt. So it is a fresh macports
>install.
>> My problem seems to be that I had Xer installed on the old machine
>(2012 MacBook pro with OS 10.11 ) as a dependant to something else. On
>the new machine it keeps trying to put xer +universal. And that build
>fails. (I create a ticket for the xer +universal build.)
>> But I would like to be able to get other ports working. Can anyone
>suggest why it wants to install this port +universal variant, when the
>old machine was not? 
>> I can install the default variant, which grabs the binary. But, then
>when I try to run the migration script it tries to upgrade to the other
>variant, from source, and fails.
>> I did try removing the xer line from myports.txt but it didn't help
>(the line just had the default variant)
>> 
>
>I don't see a port "xer"; I assume you mean "xar".
>
>I guess you're trying to install a port that depends on xar. llvm-3.9
>depends on xar, and cctools and ld64 depend on llvm-3.9. Maybe you're
>trying to install one of those with the universal variant.


--Adam

Re: Certbot port?

2017-01-03 Thread Bill Christensen

Try:

sudo port install *py-rfc3339*

On 1/2/17 8:13 AM, Ben Greenfield via macports-users wrote:

Hey All, Marius,

I wanted to look at letsencrypt and found this string and used it a as 
starting point.


I used the Portfiles from:

https://github.com/Schamschula/macports/blob/master/python/py-certbot/Portfile

I then kept adding the other Portfiles to my local repository from his 
python directory until it installed.


Now that it is installed when I run it I appear to be missing some 
dependencies within the python environment.
I would like to add the pyrfc3339 first but I’m not sure how to go 
about it.


Thanks,

Ben



slim% sudo ls -la /opt/local/bin/certbot-2.7
lrwxr-xr-x  1 root  admin  71 Dec 18 15:40 /opt/local/bin/certbot-2.7 
-> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/certbot

slim% sudo /opt/local/bin/certbot-2.7
Traceback (most recent call last):
  File "/opt/local/bin/certbot-2.7", line 6, in 
from pkg_resources import load_entry_point
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 3019, in 

@_call_aside
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 3003, in _call_aside

f(*args, **kwargs)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 3032, in _initialize_master_working_set

working_set = WorkingSet._build_master()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 655, in _build_master

ws.require(__requires__)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 963, in require

needed = self.resolve(parse_requirements(requirements))
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 849, in resolve

raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyrfc3339' distribution was 
not found and is required by certbot

slim%


On Nov 21, 2016, at 7:03 PM, Marius Schamschula 
mailto:li...@schamschula.com>> wrote:


Mike,

I have py-certbot installed locally, using MacPorts for all 
prerequisites as well. I haven’t uploaded it to the macports-ports 
repository, as I no longer have a web server running macOS, so I have 
not tested most current versions.


See 
https://github.com/Schamschula/macports/blob/master/python/py-certbot/Portfile


On Nov 21, 2016, at 5:34 PM, Mike Savory > wrote:



Hi Bill

Looks like the certbot-auto also has some support for Macports
curl -O https://dl.eff.org/certbot-auto

LINE 435:

BootstrapMac() {
  if hash brew 2>/dev/null; then
echo "Using Homebrew to install dependencies..."
pkgman=brew
pkgcmd="brew install"
  elif hash port 2>/dev/null; then
echo "Using MacPorts to install dependencies..."
pkgman=port
pkgcmd="$SUDO port install"
  else
echo "No Homebrew/MacPorts; installing Homebrew..."
ruby -e "$(curl -fsSL 
https://raw.githubusercontent.com/Homebrew/install/master/install)"

pkgman=brew
pkgcmd="brew install"
  fi

Although it looks like it insists on setting up a python virtualenv 
for you. and then pulls in python dependancies with pip, which is 
not the normal macports way.

https://letsencrypt.readthedocs.org/en/latest/contributing.html#prerequisites

I'll set up a VM and try it and let you know (don't want to break my 
main Mac).


Mike

On 22/11/2016, at 10:38 AM, Bill Christensen 
> wrote:


Any chance of a Certbot port? https://certbot.eff.org/

They've got an install with Homebrew, but I'd rather do everything 
with MacPorts.


(yeah, I know, I could learn to build ports myself and become the 
maintainer.  And maybe I will at some point, but not right now)




Marius
--
Marius Schamschula









--
Bill Christensen
http://SustainableSources.com
http://LinkedIn.com/in/billc108



Re: (OT?) Tweaking MySQL57

2017-01-03 Thread Bill Christensen

Thanks Jeff,

That was extremely helpful.

On 12/23/16 9:14 AM, Jeff Singleton wrote:
Here is a script I run against all of my MySQL instances (Both Mac and 
Linux)...it will help with identifying some issues with your database 
server and shows results against known CVE's.


https://github.com/major/MySQLTuner-perl



On Thu, Dec 22, 2016 at 6:37 AM, Ryan Schmidt > wrote:



On Dec 21, 2016, at 20:45, Bill Christensen wrote:

> I recently updated one of my servers to MySQL57. Most of the
sites on the server are WordPress - everything is up to date. Most
of the time it's working fine, but a too large percentage of the
time I'm getting "Error establishing database connection".  A
short time later it'll work fine with no changes.  Traffic is not
extreme.
>
> So apparently some MySQL setting is not correct.  I tried to
find a place to adjust memory or thread count etc in my.cnf, but
there was pretty much nothing in that file.  Perhaps I was looking
in the wrong place?
>
> Any hints will be greatly appreciated.

As I recall, the my.cnf file we ship has only one setting in it,
because that's the only setting that differs from the defaults.
You can add any other settings to the file if you want additional
changes from the defaults. Consult MySQL documentation to learn
what options are available.

http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html






--
Bill Christensen
http://SustainableSources.com
http://LinkedIn.com/in/billc108



Re: GRASS 7.2 fails to install on Mac OS X Sierra 10.12.2

2017-01-03 Thread Ryan Schmidt

> On Jan 3, 2017, at 17:00, P Kishor  wrote:
> 
> I get the following message: :error:patch org.macports.patch for port grass7 
> returned: sed: 
> /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/grass7/files/patch-libraster_gdal_c.diff.tplt:
>  No such file or directory
> 
> The final 50 lines from the log are shown below. Any suggestions appreciated.


> :debug:main Skipping completed org.macports.archivefetch (grass7)

This means it was not a clean build attempt.

Please "sudo port selfupdate" to ensure your ports are up to date, then "sudo 
port clean grass7" and try your install again.



Re: Migration issue

2017-01-03 Thread Ryan Schmidt

> On Jan 2, 2017, at 14:12, Adam Dershowitz  wrote:
> 
> I am trying to get an existing set of ports into a new machine. 
> I ended up wiping /opt/local on the new machine, so I'm just using the 
> migration script and myports.txt. So it is a fresh macports install.
> My problem seems to be that I had Xer installed on the old machine (2012 
> MacBook pro with OS 10.11 ) as a dependant to something else. On the new 
> machine it keeps trying to put xer +universal. And that build fails. (I 
> create a ticket for the xer +universal build.)
> But I would like to be able to get other ports working. Can anyone suggest 
> why it wants to install this port +universal variant, when the old machine 
> was not? 
> I can install the default variant, which grabs the binary. But, then when I 
> try to run the migration script it tries to upgrade to the other variant, 
> from source, and fails.
> I did try removing the xer line from myports.txt but it didn't help (the line 
> just had the default variant)
> 

I don't see a port "xer"; I assume you mean "xar".

I guess you're trying to install a port that depends on xar. llvm-3.9 depends 
on xar, and cctools and ld64 depend on llvm-3.9. Maybe you're trying to install 
one of those with the universal variant.





GRASS 7.2 fails to install on Mac OS X Sierra 10.12.2

2017-01-03 Thread P Kishor
I get the following message: :error:patch org.macports.patch for port grass7 
returned: sed: 
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/grass7/files/patch-libraster_gdal_c.diff.tplt:
 No such file or directory

The final 50 lines from the log are shown below. Any suggestions appreciated.

Puneet


○ → tail -50 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/main.log
:debug:main Searching for dependency: gdal
:debug:main Found Dependency: receipt exists for gdal
:debug:main Searching for dependency: geos
:debug:main Found Dependency: receipt exists for geos
:debug:main Searching for dependency: tiff
:debug:main Found Dependency: receipt exists for tiff
:debug:main Searching for dependency: libpng
:debug:main Found Dependency: receipt exists for libpng
:debug:main Searching for dependency: proj
:debug:main Found Dependency: receipt exists for proj
:debug:main Searching for dependency: cairo
:debug:main Found Dependency: receipt exists for cairo
:debug:main Searching for dependency: readline
:debug:main Found Dependency: receipt exists for readline
:debug:main Searching for dependency: python27
:debug:main Found Dependency: receipt exists for python27
:debug:main Searching for dependency: py27-pillow
:debug:main Found Dependency: receipt exists for py27-pillow
:debug:main Searching for dependency: py27-numpy
:debug:main Found Dependency: receipt exists for py27-numpy
:debug:main Searching for dependency: wxPython-3.0
:debug:main Found Dependency: receipt exists for wxPython-3.0
:debug:main Searching for dependency: py27-wxPython-3.0
:debug:main Found Dependency: receipt exists for py27-wxPython-3.0
:msg:main
:debug:main Executing org.macports.main (grass7)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Skipping completed org.macports.archivefetch (grass7)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (grass7)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (grass7)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (grass7)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Tue Jan  3 02:21:25 CET 2017
:debug:patch Executing proc-pre-org.macports.patch-patch-0
:error:patch org.macports.patch for port grass7 returned: sed: 
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/grass7/files/patch-libraster_gdal_c.diff.tplt:
 No such file or directory
:debug:patch Error code: NONE
:debug:patch Backtrace: sed: 
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gis/grass7/files/patch-libraster_gdal_c.diff.tplt:
 No such file or directory
while executing
"proc-pre-org.macports.patch-patch-0 org.macports.patch"
("eval" body line 1)
invoked from within
"eval $pre $targetname"
:info:patch Warning: targets not executed for grass7: org.macports.activate 
org.macports.patch org.macports.configure org.macports.build 
org.macports.destroot org.macports.install
:notice:patch Please see the log file for port grass7 for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_grass7/grass7/main.log