Re: OpenModelica?

2018-04-07 Thread Michael Parson

On Sat, 7 Apr 2018, Murray Eisenberg wrote:


I’m trying to install the port of OpenModelica. The instructions at 
https://www.openmodelica.org/download/download-mac 
<https://www.openmodelica.org/download/download-mac> give, as first step:

   echo rsync://build-openmodelica.org/macports/ >> 
/opt/local/etc/macports/sources.conf

But even with sudo, I’m getting a "Permission denied" error.

How to fix this?


I know I'm for offering a solution to you for this one case, but it can
be done with 'sudo' with a trick.  The 'sudo' command, by design, does
not allow you to directly redirect output to a file.  It's a (minimal)
security feature, to prevent people from using sudo that is more locked
down to certain commands from being able to use sudo to modify files
they might otherwise not have permission to...

The workaround is to use the 'tee' command:

echo rsync://build-openmodelica.org/macports/ | sudo tee -a 
/opt/local/etc/macports/sources.conf

The 'echo' will be sent to your screen as well as appended to the
designated file via the 'tee'.  The '-a' flag tells it to append, which
is what your '>>' in the original command would have done.

--
Michael Parson
Pflugerville, TX
KF5LGQ


Re: Perl5 wrapper port...usage...?

2017-10-15 Thread Michael Parson

On 2017-10-15 12:16, Carlo Tambuatco wrote:

On Oct 15, 2017, at 11:20 AM, Michael Parson <mpar...@bl.org> wrote:


On 2017-10-15 00:22, Carlo Tambuatco wrote:

So as I understand, the perl_select port is obsolete, right?
I’ve got perl5 wrapper port as well as the perl5.24 variant 
installed.

I’ve also got various other perl versions installed so my perl
installation list looks like:
 perl5 @5.24.2_0+perl5_24 (active)
 perl5.16 @5.16.3_4 (active)
 perl5.18 @5.18.4_3 (active)
 perl5.22 @5.22.4_0 (active)
 perl5.24 @5.24.2_0 (active)
with all the various default perl programs symlinked to perl5.24. If 
I

wanted to switch the default
perl5.x to any of my other perl versions, what is the mechanism for
doing so now that
perl_select no longer recognizes any installed perl?


This should be handled with 'port select'

Try:

port select --show perl5  # show which 'perl5' is currently selected


Error: The 'show' command failed: The specified group 'perl5' does not 
exist.




port select --list perl5  # list which pkgs you can select for ‘perl5'


Warning: Unable to get active selected version: The specified group
'perl5' does not exist.
Error: The 'list' command failed: The specified group 'perl5' does not 
exist.




sudo port select perl5 perl5.16  # use 'perl5.16' as your current 
‘perl5'


Did not bother with this as the above commands failed...


Huh.  I was basing this on having used the 'port select' stuff for gcc & 
python, looks like perl isn't using this feature.


$ port select --summary
Name   Selected  Options
     ===
cython none  cython27 none
gccnone  mp-gcc6 mp-gcc7 none
llvm   none  mp-llvm-4.0 none
nosetests  none  nosetests27 none
python python27  python26-apple python27 python27-apple python36 
none

python2none  python26-apple python27 python27-apple none
python3python36  python36 none

$ port installed | grep perl5
  mosh @1.3.2_0+perl5_24 (active)
  perl5 @5.24.2_0+perl5_24 (active)
  perl5.20 @5.20.3_2 (active)
  perl5.24 @5.24.2_0 (active)

It looks like getting this to work with perl is more complicated and is 
still an open issue:

https://trac.macports.org/ticket/29763



Re: Perl5 wrapper port...usage...?

2017-10-15 Thread Michael Parson


On 2017-10-15 00:22, Carlo Tambuatco wrote:

So as I understand, the perl_select port is obsolete, right?

I’ve got perl5 wrapper port as well as the perl5.24 variant installed.
I’ve also got various other perl versions installed so my perl
installation list looks like:

  perl5 @5.24.2_0+perl5_24 (active)
  perl5.16 @5.16.3_4 (active)
  perl5.18 @5.18.4_3 (active)
  perl5.22 @5.22.4_0 (active)
  perl5.24 @5.24.2_0 (active)

with all the various default perl programs symlinked to perl5.24. If I
wanted to switch the default
perl5.x to any of my other perl versions, what is the mechanism for
doing so now that
perl_select no longer recognizes any installed perl?


This should be handled with 'port select'

Try:

port select --show perl5  # show which 'perl5' is currently selected

port select --list perl5  # list which pkgs you can select for 'perl5'

sudo port select perl5 perl5.16  # use 'perl5.16' as your current 
'perl5'


--
Michael Parson
Pflugerville, TX
KF5LGQ



Re: gegl fails to build

2017-09-15 Thread Michael Parson

On 2017-09-15 11:19, Russell Jones wrote:

On 15/09/17 16:50, Michael Parson wrote:





KeyError: u'nick'





https://github.com/GNOME/glib/commit/dbf0a566703586db9777c3d56e01aa40c02ab9ac

https://bugzilla.gnome.org/show_bug.cgi?id=779332

Possibly?


Looks like that patch was already applied (though the line numbers don't 
match up):


202 if options is not None:
203 options = parse_trigraph(options)
204 if 'skip' not in options:
205 entries.append((name, value, options['nick']))
206 else:
207 entries.append((name, value))

--
Michael Parson
Pflugerville, TX
KF5LGQ



gegl fails to build

2017-09-15 Thread Michael Parson
Yesterday, I finally updated my iMac to Sierra and started the process 
for updating MacPorts 2.4.1 for the new OS.


While attempting to (re)install the gimp2 +quartz port, it fails out on 
building gegl.


Tail end of the log:

:info:build mv -f .deps/gegl-dot-visitor.Tpo .deps/gegl-dot-visitor.Plo
:info:build glib-mkenums \
:info:build --fhead "/* This is a generated file, do not 
edit directly */\n\n#include \"config.h\"\n#include 
\n#include \"gegl-enums.h\"" \
:info:build --fprod "\n/* enumerations from \"@filename@\" 
*/" \
:info:build --vhead "GType\n@enum_name@_get_type (void)\n{\n 
 static GType etype = 0;\n  if (etype == 0) {\nstatic const 
G@Type@Value values[] = {" \
:info:build --vprod "  { @VALUENAME@, \"@valuenick@\", 
\"@valuenick@\" }," \
:info:build --vtail "  { 0, NULL, NULL }\n};\n
etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  
return etype;\n}\n\n" \

:info:build ./gegl-enums.h > xgen-tec \
:info:build && cp xgen-tec gegl-enums.c \
:info:build && rm -f xgen-tec
:info:build Traceback (most recent call last):
:info:build   File "/opt/local/bin/glib-mkenums", line 688, in 
:info:build process_file(fname)
:info:build   File "/opt/local/bin/glib-mkenums", line 484, in 
process_file

:info:build parse_entries(curfile, curfilename)
:info:build   File "/opt/local/bin/glib-mkenums", line 205, in 
parse_entries

:info:build entries.append((name, value, options['nick']))
:info:build KeyError: u'nick'
:info:build make[3]: *** [gegl-enums.c] Error 1
:info:build make[3]: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gegl/gegl/work/gegl-0.2.0/gegl'

:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gegl/gegl/work/gegl-0.2.0/gegl'

:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gegl/gegl/work/gegl-0.2.0'

:info:build make: *** [all] Error 2
:info:build make: Leaving directory 
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gegl/gegl/work/gegl-0.2.0'
:info:build Command failed:  cd 
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gegl/gegl/work/gegl-0.2.0" 
&& /usr/bin/make -w all CC="/usr/bin/clang -arch x86_64"

:info:build Exit code: 2
:error:build Failed to build gegl: command execution failed
:debug:build Error code: CHILDSTATUS 64472 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:debug:build could not read "/opt/local/share/w3m/w3mhelp.html": no such 
file or directory

:debug:build while executing
:debug:build "::file type $file"
:error:build See 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_gegl/gegl/main.log 
for details.



Full log file attached.


--
Michael Parson
Pflugerville, TX
KF5LGQ


gegl-main.log.gz
Description: GNU Zip compressed data


Re: path to sources.conf?

2017-04-03 Thread Michael Parson

On Wed, 1 Mar 2017, Dave Horsfall wrote:


On Tue, 28 Feb 2017, Ryan Williamson via macports-users wrote:


Try "sudo find / -name sources.conf"


Or better still, use the "locate" command (and run locate.updatedb every
so often).


Or better still, since we're on Macs and have Spotlight indexing things,
use 'mdfind -name sources.conf'.

--
Michael Parson
Pflugerville, TX
KF5LGQ


Re: Rescuing a Macports file from Time Machine

2017-02-23 Thread Michael Parson

On Fri, 24 Feb 2017, Dave Horsfall wrote:

On Thu, 23 Feb 2017, Chris Jones wrote:

[...]


If not, then go to in terminal

/opt

assuming that is your macports prefix.

Run 'open .' which will start finder in that area, and then activate TM.


Sir, you are a genius :-)  Gimme your address, and I'll send you a
lollipop.

Regretfully to say, it never occured to me to "cd" to the wanted
directory...


For those allergic to command-lines, or afraid of terminals, you can
use 'Shift-CMD-G' (or Menu Bar->Go->Go to Folder) and put '/opt' in the
dialog box that opens.

Also useful for getting into '~/Library' as well as any other folder
Apple has decided to not show you by default via Finder.

--
Michael Parson
Pflugerville, TX
KF5LGQ