Re: Is there and "rdist" for Mac?

2018-03-15 Thread Kenneth F. Cunningham

On 2018-03-15, at 9:30 PM, Dave Horsfall wrote:


> Running "locate rdist" on the Mac is less than helpful, so is there a tool 
> similar to BSD's "rdist"?
> 

Wow, that's old. 1998.

Here's what I have so far, which bogs down in the build pretty early due to 20 
year old weirdness, I guess….

Ken






Portfile
--
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; 
c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem  1.0

namerdist
version 6.1.5
categories  sysutils
license GPL-2
platforms   darwin
maintainers nomaintainer

#http://www.magnicomp.com/download/rdist/rdist-6.1.5.tar.gz

description Distribute software

long_description${description}

homepagehttp://www.magnicomp.com
master_siteshttp://www.magnicomp.com/download/rdist/

checksums   rmd160  7344e137ab74192aeb2517fd63b4bbed0f70e039 \
sha256  
2bb0d0f5904eadc9e7fe3d60c15389d6897fcf884211070e289a6c710ff37f96

patch.pre_args  -p1
patchfiles  rdist-darwin.patch

use_configure   no

---

and 


rdist-darwin.patch
---



  Rdist for Darwin 6.x/7.x

   Eric Myers
 Vassar College
 Department of Physics and Astronomy
Poughkeepsie, New York 12604 USA



 6 January 2004

  This file contains the diffs required to get the handy Unix tool rdist
to build on Darwin, aka Mac OS X, including both 10.2 (Darwin 6.x, aka
"Jaguar") and 10.3 (Darwin 7.x, aka "Panther").  The diffs are against
the source code in the file rdist-6.1.5.tar as distributed from
http://www.MagniComp.com/rdist/ , which you will have to obtain separately.

  For security reasons ssh is prefered over rsh for transport, so the
default transport path is set to /usr/bin/ssh on Darwin, not rsh.

  Be warned that the code for detecting an NFS mount (i.e. -ochknfs)
probably won't work (it has not been tested).  If someone fixes this in
the future it would be nice to also be able to detect an AFS mount.

To apply the patches, begin with the source tar file from MagniComp
and this patch file in the same directory.  Unpack the tar file, cd into
the directory it creates , and then run `patch -p1` from that directory,
like so:

  %  tar xf rdist-6.1.5.tar
  %  cd rdist-6.1.5
  %  patch -p1 <../rdist-6.1.5-darwin.patch

Then build rdist as usual (see the README file for details):

  % make
  % make install
  % make install.man

The rdist and rdistd executables are installed in /usr/local/bin, while
the man pages are installed in /usr/local/share/man/man{1,8}.
You can change these destinations by editing config/mf.darwin .



--PATCHES-BEGIN-HERE-

diff -Naurb rdist-6.1.5/ChangeLog rdist-6.1.5-darwin/ChangeLog
--- rdist-6.1.5/ChangeLog   Mon Nov  9 23:26:38 1998
+++ rdist-6.1.5-darwin/ChangeLogTue Jan  6 11:44:21 2004
@@ -1,3 +1,13 @@
+2004-01-06 Eric Myers 
+   
+   * Ported more generally to Darwin 6.x and 7.x, which includes
+ changing to VAR_STDARG
+   
+2003-07-31  Eric Myers 
+
+   * Ported to Darwin 6.6  (Mac OS X 10.2.6)
+
+   
 1998-11-09  Michael A. Cooper  
 
* Version 6.1.5-RELEASE
diff -Naurb rdist-6.1.5/README rdist-6.1.5-darwin/README
--- rdist-6.1.5/README  Fri Jul 19 13:24:09 1996
+++ rdist-6.1.5-darwin/README   Tue Jan  6 10:39:57 2004
@@ -19,9 +19,9 @@
 indirectly provide full backward compatibility.  See COMPATIBILITY
 below for details.
 
-The current official version of rdist is available via anonymous ftp
-on usc.edu under /pub/rdist.  The current version is always
-retrievable as file "/pub/rdist/rdist.tar.gz".
+The official home of RDist has moved to http://www.MagniComp.com as
+of 12-April-98.
+
 
   CHANGES/FEATURES
 
@@ -80,7 +80,7 @@
 INSTALLATION
 
 1) Determine whether the local machine is running a supported OS by
-   running the command "config/os-type".  If the command reports the
+   running the command "build/os-type".  If the command reports the
local OS is "unknown", then you cannot proceed until rdist is
ported to the local system OS.  (See the PORTING section).
 
@@ -158,6 +158,7 @@
 6) Send me your "os-YOUR_OS.h" and "mf.YOUR_OS" files, along with context
diffs to any other files you changed.
 
+
NOTES
 
 rcmd() vs. rsh(1c)
@@ -179,29 +180,31 @@
All of this information on HP/UX is third-hand.  I don't have 
access to any HP/UX machines to test rdist on.
 
-Unlike HPUX version 7, version 8 does not come standard with yacc
-which is now part of the C/ANSI C Development Bundle.  If that bundle
-is on the system, then rdist compiles fine with the changes to the
-Make

Is there and "rdist" for Mac?

2018-03-15 Thread Dave Horsfall
I'm developing software for various platforms, and a need a multi-rdist 
like tool.


Why?  I develop on the Mac (because it's in front of me), ship it to my 
FreeBSD server (because it has real serial ports instead of silly 
USB/serial adaptors that may not work etc), test it there and make any 
changes, pretend it's now the master and ship it back, test it on the 
Penguin box every so often to see what they've broken this time and figure 
out a way around it[*], etc.


I have a simple shell script that does this (cycle through known hosts and 
"rsync" to all except `hostname -s` etc, but I'd like to generalise it for 
all my software, not just this one.


Running "locate rdist" on the Mac is less than helpful, so is there a tool 
similar to BSD's "rdist"?


Thanks.

[*]
Don't ask...

--
Dave Horsfall DTM (VK2KFU)  "Those who don't understand security will suffer."


Re: trying to install ATLAS

2018-03-15 Thread pagani laurent via macports-users
In fact, by using the +gcc5 as Craig suggested, I got the compiled libraries 
straight away without the building.
Perhaps it is not tuned exactly to my machine but for my purpose, it seems to 
be fast enough.

Laurent

> Le 15 mars 2018 à 17:37, David Strubbe  a écrit :
> 
> ATLAS just always takes a long time to build. It stands for "Automatically 
> Tuned Linear Algebra System," so all that time is the automatic tuning. If 
> you want a quicker build, use OpenBLAS or the built-in Accelerate framework.
> 
> David
> 
> On Thu, Mar 15, 2018 at 8:21 AM, Joshua Kordani  > wrote:
> This package will take a long time to build, although don't be surprised if 
> it fails on the first try.  I can never get it to work on the first try with 
> default settings.
> 
> 
> 
> On 3/15/18 9:45 AM, Craig Treleaven wrote:
> On Mar 15, 2018, at 8:29 AM, pagani laurent via macports-users 
>  > wrote:
> 
> I reinstalled gcc5, both gcc5 and 7 are active but the result is the same.
> I desactivate gcc7 but Xcode gcc takes precedence upon Macports/gcc5 even 
> when I deactivate/reactivate the later.
> 
> I’m not familiar with ATLAS but I think you need to choose one of the 
> variants in order to build it with another compiler:
> 
> $ port variants atlas
> atlas has the variants:
> gcc49: build using macports-gcc-4.9
>   * conflicts with gcc5 mpclang37 perf
> gcc5: build using macports-gcc-5
>   * conflicts with gcc49 mpclang37 perf
> mpclang37: use mp-clang-3.7 and gfortran
>   * conflicts with gcc49 gcc5 perf
> nofortran: Forgo use of fortran compiler
> universal: Build for multiple architectures
> 
> Perhaps try
> 
> sudo port install atlas +gcc5
> 
> Also, some packages can take a very long time to build.  Adding the verbose 
> flag can give you more feedback as the build progresses:
> 
> sudo port -v install atlas +gcc5
> 
> Craig
> 
> 

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)



Re: trying to install ATLAS

2018-03-15 Thread David Strubbe
ATLAS just always takes a long time to build. It stands for "Automatically
Tuned Linear Algebra System," so all that time is the automatic tuning. If
you want a quicker build, use OpenBLAS or the built-in Accelerate framework.

David

On Thu, Mar 15, 2018 at 8:21 AM, Joshua Kordani  wrote:

> This package will take a long time to build, although don't be surprised
> if it fails on the first try.  I can never get it to work on the first try
> with default settings.
>
>
>
> On 3/15/18 9:45 AM, Craig Treleaven wrote:
>
>> On Mar 15, 2018, at 8:29 AM, pagani laurent via macports-users <
>>> macports-users@lists.macports.org> wrote:
>>>
>>> I reinstalled gcc5, both gcc5 and 7 are active but the result is the
>>> same.
>>> I desactivate gcc7 but Xcode gcc takes precedence upon Macports/gcc5
>>> even when I deactivate/reactivate the later.
>>>
>>> I’m not familiar with ATLAS but I think you need to choose one of the
>> variants in order to build it with another compiler:
>>
>> $ port variants atlas
>> atlas has the variants:
>> gcc49: build using macports-gcc-4.9
>>   * conflicts with gcc5 mpclang37 perf
>> gcc5: build using macports-gcc-5
>>   * conflicts with gcc49 mpclang37 perf
>> mpclang37: use mp-clang-3.7 and gfortran
>>   * conflicts with gcc49 gcc5 perf
>> nofortran: Forgo use of fortran compiler
>> universal: Build for multiple architectures
>>
>> Perhaps try
>>
>> sudo port install atlas +gcc5
>>
>> Also, some packages can take a very long time to build.  Adding the
>> verbose flag can give you more feedback as the build progresses:
>>
>> sudo port -v install atlas +gcc5
>>
>> Craig
>>
>
>


Re: trying to install ATLAS

2018-03-15 Thread Joshua Kordani
This package will take a long time to build, although don't be surprised 
if it fails on the first try.  I can never get it to work on the first 
try with default settings.



On 3/15/18 9:45 AM, Craig Treleaven wrote:

On Mar 15, 2018, at 8:29 AM, pagani laurent via macports-users 
 wrote:

I reinstalled gcc5, both gcc5 and 7 are active but the result is the same.
I desactivate gcc7 but Xcode gcc takes precedence upon Macports/gcc5 even when 
I deactivate/reactivate the later.


I’m not familiar with ATLAS but I think you need to choose one of the variants 
in order to build it with another compiler:

$ port variants atlas
atlas has the variants:
gcc49: build using macports-gcc-4.9
  * conflicts with gcc5 mpclang37 perf
gcc5: build using macports-gcc-5
  * conflicts with gcc49 mpclang37 perf
mpclang37: use mp-clang-3.7 and gfortran
  * conflicts with gcc49 gcc5 perf
nofortran: Forgo use of fortran compiler
universal: Build for multiple architectures

Perhaps try

sudo port install atlas +gcc5

Also, some packages can take a very long time to build.  Adding the verbose 
flag can give you more feedback as the build progresses:

sudo port -v install atlas +gcc5

Craig




Re: trying to install ATLAS

2018-03-15 Thread Craig Treleaven
> On Mar 15, 2018, at 8:29 AM, pagani laurent via macports-users 
>  wrote:
> 
> I reinstalled gcc5, both gcc5 and 7 are active but the result is the same.
> I desactivate gcc7 but Xcode gcc takes precedence upon Macports/gcc5 even 
> when I deactivate/reactivate the later.
> 

I’m not familiar with ATLAS but I think you need to choose one of the variants 
in order to build it with another compiler:

$ port variants atlas
atlas has the variants:
   gcc49: build using macports-gcc-4.9
 * conflicts with gcc5 mpclang37 perf
   gcc5: build using macports-gcc-5
 * conflicts with gcc49 mpclang37 perf
   mpclang37: use mp-clang-3.7 and gfortran
 * conflicts with gcc49 gcc5 perf
   nofortran: Forgo use of fortran compiler
   universal: Build for multiple architectures

Perhaps try

sudo port install atlas +gcc5

Also, some packages can take a very long time to build.  Adding the verbose 
flag can give you more feedback as the build progresses:

sudo port -v install atlas +gcc5

Craig

trying to install ATLAS

2018-03-15 Thread pagani laurent via macports-users
Hello,

I reinstalled gcc5, both gcc5 and 7 are active but the result is the same.
I desactivate gcc7 but Xcode gcc takes precedence upon Macports/gcc5 even when 
I deactivate/reactivate the later.

Thanks for any help,
Laurent

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)



trying to install ATLAS

2018-03-15 Thread pagani laurent via macports-users
Hello,

Running Mac OS 10.12.6, I try to install ATLAS with macports but 1) it selects 
/usr/bin/clang as a C compiler (why not the /opt/local/bin/gcc one ?), 2) it 
selects gfortran7 which does not exist and 3) it hangs up on the building. 
After more than one hour, still there :

sextractor-master>sudo port clean atlas
--->  Cleaning atlas
sextractor-master>sudo port install atlas
--->  Fetching archive for atlas
--->  Attempting to fetch atlas-3.10.2_2.darwin_16.x86_64.tbz2 from 
https://packages.macports.org/atlas
--->  Attempting to fetch atlas-3.10.2_2.darwin_16.x86_64.tbz2 from 
http://lil.fr.packages.macports.org/atlas
--->  Attempting to fetch atlas-3.10.2_2.darwin_16.x86_64.tbz2 from 
http://mse.uk.packages.macports.org/sites/packages.macports.org/atlas
--->  Fetching distfiles for atlas
--->  Verifying checksums for atlas
--->  Extracting atlas
--->  Applying patches to atlas
--->  Configuring atlas
Selected C compiler: /usr/bin/clang
Selected F77 compiler: gfortran7
Warning: reinplace s|-no-cpp-precomp||g didn't change anything in 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/work/ATLAS/CONFIG/src/atlcomp.txt
--->  Building atlas

still there after > 1hour
The package mentions that it depends on gcc5 but I have gcc7 only (cleaned the 
previous versions). Can this be a problem ?
I found no ticket mentioning similar problem (but Veence requiring a gcc6 
version)

Thanks for any help,
Laurent

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)