Re: All KDE4 applications hangs on startup

2011-05-31 Thread Brandon Allbery
On Tue, May 31, 2011 at 05:07, Erik Martino  wrote:
> I have never been able to start a kde4 application in macports. I have

There's a bug in the way KDE4 is handled currently; I don't know what
the correct fix is, but my current hack involves some launchd actions
that create the necessary directories and symlinks thereto in
~/Library/Preferences/KDE.

ln -s /var/tmp/kdecache-$USER $HOME/Library/Preferences/KDE/cache-$HOST
ln -s $TMPDIR/ksocket-$USER $HOME/Library/Preferences/KDE/socket-$HOST
ln -s $TMPDIR/kde-$USER $HOME/Library/Preferences/KDE/tmp-$HOST
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Postfix (Fetchmail and Dovecote) on OSX 10.6.7 ???

2011-06-16 Thread Brandon Allbery
On Thu, Jun 16, 2011 at 15:06, Randal L. Schwartz  wrote:
>> "William" == William H Magill  writes:
> William> Is anyone working Postfix on OSX? (10.6.7)
>
> Postfix is part of the base install of OSX.  No need for a port any more.

...unless you want SASL to work.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Cannot start KDE apps

2011-06-18 Thread Brandon Allbery
On Sun, Jun 19, 2011 at 00:56, Ian Wadham  wrote:
> After one false start, trying to do it all in one "port" command, I decided
> to go step by step and install the major dependencies one port  command
> at a time (qt-mac, kdelibs4, etc.).  That all succeeded after several hours,
> but now none of the installed apps will start.

There's an issue with KDE 4 stuff:  a number of special directories,
accessed through symlinks in ~/Library/Preferences/KDE/, need to be
precreated before any KDE application will work.  Note also that the
symlink paths will change if the hostname does (important if you're
using a laptop).  Possibly kdeinit4 is supposed to do this
automatically, but it doesn't.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: feature request: show if installed for "port search"

2011-06-24 Thread Brandon Allbery
On Fri, Jun 24, 2011 at 11:56, Roger Pack  wrote:
> Feature request/suggestion
>
> $ port search dvdnav
> libdvdnav @4.1.3 (devel, multimedia) (installed)
>    DVD navigation library

+1 but I'd just have it do a "port installed" in that case so I can
see the variants, currently installed version vs. current one in
ports, etc.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Coreutils will not install with default names

2011-06-24 Thread Brandon Allbery
On Fri, Jun 24, 2011 at 12:19, Nathan Farrar  wrote:
> Hello All,
>
> I'm attempting to set up a new macports environment this AM and coreutils
> will not install with default names.  I'm using the following command, which
> as worked for me in the past:
>
> sudo port install coreutils +with_default_names
>
>
> ... coreutils installed without failure, but with 'g' prefixed to the front
> of all the binaries.  Any idea how I can resolve this?

Get used to it, or build your own symlink tree with your preferred
names.  +with_default_names was removed because it caused too many
problems.

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

(and 
https://trac.macports.org/query?status=closed&order=priority&port=~coreutils&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=milestone
for some of the problems that it caused)

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: MacPorts 2.0.0-beta1 now available for testing

2011-06-25 Thread Brandon Allbery
On Sat, Jun 25, 2011 at 17:07, Bradley Giesbrecht  wrote:
> Is there ever a situation where the "Change Install Location..." button is 
> useful?

The behavior of that button is defined by Apple's Installer framework,
and the only things it can control are the "select volume" dialog and
maybe the install for current/all users (in the rare packages that
support it).  Even if the MacPorts devs chose to support it, it could
not be co-opted to change the install prefix from /opt/local to
something else.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Octave

2011-07-03 Thread Brandon Allbery
On Sun, Jul 3, 2011 at 14:48, mark brethen  wrote:
> I looked at portfiles of various octave packages already created (e.g. 
> octave-plot, octave-statistics, etc.) and am puzzled why there isn't a 
> download URL listed. How does port know where to find them? Do I need to 
> include one for an octave-symbolic portfile I'm creating?

If you look up toward the top of the Portfiles, you'll see the line

PortGroup   octave 1.0

which is a canned recipe for Octave-related ports.  You can find these under

mress:10062 Z$ ls
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group
archcheck-1.0.tcl  octave-1.0.tcl qt4-1.0.tcl
cmake-1.0.tcl  perl5-1.0.tcl  ruby-1.0.tcl
crossbinutils-1.0.tcl  php5extension-1.0.tcl  select-1.0.tcl
gnustep-1.0.tclpure-1.0.tcl   swigbinding-1.0.tcl
haskell-1.0.tclpython24-1.0.tcl   tests/
hocbinding-1.0.tcl python25-1.0.tcl   texlive-1.0.tcl
hunspelldict-1.0.tcl   python26-1.0.tcl   x11font-1.0.tcl
kde4-1.0.tcl   python27-1.0.tcl   xcode-1.0.tcl
kde4-1.1.tcl   python31-1.0.tcl   xcodeversion-1.0.tcl
muniversal-1.0.tcl python32-1.0.tcl   zope-1.0.tcl


-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Octave

2011-07-03 Thread Brandon Allbery
On Sun, Jul 3, 2011 at 16:50, mark brethen  wrote:
> This was on GiNaC 1.5.8, so I should file a port update request ticket for 
> GiNaC. Where is this done?

Use the MacPorts Trac at https://trac.macports.org/wiki/Tickets

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install zim fails: can't install p5-file-basedir?

2011-07-03 Thread Brandon Allbery
On Sun, Jul 3, 2011 at 22:34, Derek Schutt  wrote:
> When I look at the log for the p5-file-basdir, this seems to be where things
> are failing:
>
> :info:configure shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/work/File-BaseDir-0.03"
> && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor " returned error 2
> :error:configure Target org.macports.configure returned: configure failure:
> shell command failed (see log for details)

No, that's just the final error summary; the actual error will be
further back in the log file.  (Which is why it's not telling you
anything useful.)

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install zim fails: can't install p5-file-basedir?

2011-07-03 Thread Brandon Allbery
On Mon, Jul 4, 2011 at 00:35, Derek Schutt  wrote:
> info:configure ld: warning: in /tmp/compilet-1022715042.o, file was built
> for unsupported file format which is not the architecture being linked
> (i386)

This is telling you that it can't understand the ".o" file (more
specifically, that it's not a Mach-O object file); which is an odd
error to get from a compiler temporary file.  Do you have a
cross-compiler for another OS (Linux, Windows, etc.) in your path?
Alternately, look for ENOSPC ("Insufficient disk space") errors
earlier in the log.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install zim fails: can't install p5-file-basedir?

2011-07-04 Thread Brandon Allbery
On Mon, Jul 4, 2011 at 10:31, Derek Schutt  wrote:
> /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor'
> :info:configure This module requires Module::Build to install itself.
> :info:configure   Install Module::Build now from CPAN? [y] y

I don't think this should ever happen in a port; Module::Build should
be a MacPorts dependency instead.  And the chain of events started by
this could well break a lot of stuff by replacing the expected
versions of packages with different and potentially incompatible
versions.

File a bug at http://trac.macports.org/wiki/Tickets.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: MacPorts 2.0.0-beta3 now available for testing

2011-07-07 Thread Brandon Allbery
On Thu, Jul 7, 2011 at 12:42, Joshua Root  wrote:
> Notable changes since beta1 are:
>  * The pkg installer now actually creates the macports user as intended
>   (apparently nobody installed beta1 using the pkg?)

For what it's worth, I saw no errors either during the install or in
using the installed MacPorts beta 1.  Could the user have already
existed, or something?

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: MacPorts 2.0.0-beta3 now available for testing

2011-07-07 Thread Brandon Allbery
On Fri, Jul 8, 2011 at 01:57, Joshua Root  wrote:
> If your macports.conf was created by 1.8.x, it would have macportsuser
> uncommented and set to root. So that would also hide the problem.

Doesn't look like it:

mress:10262 Z$ grep user /opt/local/etc/macports/macports.conf
zsh: exit 1 grep user /opt/local/etc/macports/macports.conf

"Curiouser and curiouser," said Alice

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: MacPorts 2.0.0-beta3 now available for testing

2011-07-08 Thread Brandon Allbery
On Fri, Jul 8, 2011 at 03:00, Scott Webster  wrote:
> And you specifically installed from the pkg and not from source?  I
> gather that is a difference here?

Installed from the package, yes.

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Installed ImageMagick 6.7.1, but it's only 5.5.6

2011-07-11 Thread Brandon Allbery
On Mon, Jul 11, 2011 at 08:09, Walter Ian Kaye
 wrote:
> Hmm... looks like tcsh is confused. The one installed by MacPorts does come
> first:
>
> #10:20pm# /opt/local/var/macports> echo $path
> /opt/local/bin /opt/local/sbin /Users/boo/bin/powerpc-apple-darwin
> /Users/boo/bin /usr/local/bin
> /usr/bin /bin /usr/local/sbin /usr/sbin /sbin /Developer/Tools /sw/bin
>
> I thought I could avoid having to restart Terminal.app by setting the path
> within my session, but I guess it just doesn't register. Thanks! I'm calling
> /opt/local/bin/convert explicitly for now.

Run "rehash" to get tcsh to forget where it had seen them, so it will
pick up the new ones.  ("set path=(...)" will do it automatically, but
"setenv PATH ..." won't.)

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Trickle bandwidth shaper

2011-07-20 Thread Brandon Allbery
On Wed, Jul 20, 2011 at 15:37, Ralph Seichter wrote:

> On 20.07.11 00:51, Arno Hautala wrote:
> > I'd enjoy using trickle as well, but I doubt it's possible without
> > significant rewrites..
>
> Well, perhaps ipfw-based traffic shaping is the proper way to do things
> with OS X. Randal Schwartz has suggested this direction aswell. I think
> I will give it a try, although I'd still prefer an approach which can be
> targeted on single applications instead of a given port or machine.


I don't think OSX's dynamic linking supports runtime overrides the way ELF
with weak symbols does.

Actually, it looks like it does to some extent, but only if the programs
you're linking into use flat namespaces; Leopard and Snow Leopard default to
2-level namespaces.  See the "-flat_namespace" and "-force_flat_namespace"
options to ld(1).  Looks to me like a program has to be linked with the
latter option to support it.  That's going to severely restrict what you can
use it with.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: problem with mp-gcc after upgrading to Lion

2011-07-21 Thread Brandon Allbery
On Thu, Jul 21, 2011 at 11:33, Marcelo Chiapparini <
marcelo.chiappar...@gmail.com> wrote:

> I have been working in a Mac with Snow Leopar, mp-gcc45, and Xcode 3.2.6.
> Now, I've just upgraded to Lion, and when I try to compile with mp-gcc45, I
> get the message:
>
> gfortran: error trying to exec 'as': execvp: No such file or directory
>

Open a terminal and see what "type as" returns.  ("which as" in tcsh.)  That
said, if you upgraded to Lion, don't you also have to upgrade to XCode 4.1?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Can't install from a local Portfile (macports 2.0)

2011-07-22 Thread Brandon Allbery
On Fri, Jul 22, 2011 at 17:00, doug livesey  wrote:

> I was using EMACS, so typed "sudo emacs macports.conf" to open up the file
> as the root user.
>

/sudo:root@localhost:/opt/local/etc/macports/macports.conf ?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: KDE4 apps don't launch

2011-07-28 Thread Brandon Allbery
On Thu, Jul 28, 2011 at 13:19, Doug McComber wrote:

> There's a bug in the way KDE4 is handled currently; I don't know what
> the correct fix is, but my current hack involves some launchd actions
> that create the necessary directories and symlinks thereto in
> ~/Library/Preferences/KDE.
>
> ln -s /var/tmp/kdecache-$USER
> $HOME/Library/Preferences/KDE/cache-$HOST
> ln -s $TMPDIR/ksocket-$USER
> $HOME/Library/Preferences/KDE/socket-$HOST
> ln -s $TMPDIR/kde-$USER $HOME/Library/Preferences/KDE/tmp-$HOST
>
>
> I have the first symlink.  The second and third  (ksocket and kde)
> were there but were linked to non-existent directories.  Using find
> from the terminal I couldn't find a ksocket-* or kde-* directory
> anywhere.
>

That's exactly the problem:  the symlinks point to nonexistent directories,
so kdeinit4 won't start up.  You need to create the target directories:

mkdir $TMPDIR/ksocket-$USER $TMPDIR/kde-$USER

There are apparently some other issues people have run into as well, but the
above was sufficient to fix it for me.


> What part of KDE should I possibly re-build via Macports to fix this?
>

I wish it were that simple

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: KDE4 apps don't launch

2011-07-28 Thread Brandon Allbery
On Thu, Jul 28, 2011 at 20:19, Ian Wadham  wrote:

>  - Getting the links to sockets and temp dirs correct (on a Linux system,
> KDE does
>that automagically),
>

For what it's worth, the problem on OS X is making KDE4 play along with the
paths and temporary file ecosystem in OS X; KDE4 programs need relatively
fixed pathnames for their sockets and caches, which are provided by the
symlinks in ~/Library/Preferences/KDE4, while those symlinks are (or should
be) configured to go where OS X wants them to go.  But because the paths are
built differently (most notably, KDE4 puts hostnames in its temp and cache
pathnames, whereas OS X uses its own mechanism where such things are
symlinked higher up in the path into a host-specific /private tree) the
symlinks need to be rolled anew potentially whenever the network
configuration changes.  (That dependency on the network configuration also
plagues XQuartz; if you are on a dynamic IP connection which changes often,
you may well see things break until re-symlinked,  The /private arrangement
used by OS X avoids this.)


>  - Getting dbus to run (also automagical on Linux),
>

More precisely, it's rolled into the desktop manager.  Since dbus isn't
native to the OS X desktop, it needs to be hooked in after the fact.  This
is actually fairly easy, but MacPorts' service configuration stuff isn't (or
wasn't as of 1.9.2; I haven't poked at 2.0.x yet) set up to handle services
which have both system and session components.  I don't know if this is
likely to change, since I think dbus is the only thing that needs it.


>  - Getting kdeinit4 to run (some KDE apps seem to require it, others not).
>

Again, usually handled by the desktop manager.  But I'm inclined to think
that any KDE4 application that requires kdeinit4 to already be running is
breaking the rules in its startup code somewhere; if you find a reproducible
case, you should file a bug against it upstream.  (Some people do want to
run KDE programs under GNOME, LXDE, etc., where you would have the same
problem of kdeinit4 not necessarily running.)


I also need to find out more about how Mac OS X starts up applications and
> would
> appreciate some pointers, hints or links from this list.  I am new to the
> Mac.  For example,
> where do stdout and stderr go when you do "open x.app" in a Terminal?
>

They are captured by launchd and syslogged; see
/Applications/Utilities/Console.app.

The "giving up" behavior you mentioned with respect to application startup
is much the same as the launch feedback behavior of KDE4, aside from it not
being (directly?) configurable.  When the launch times out; an insensitive
application icon is left in the Dock; if the application were to finish its
initialization, it would still start up.

There really are some excellent apps in KDE, such as KMyMoney, Digikam and
> the KDE Edu suite, not to mention KDE Games ... :-) ... and IMHO it would
> be well
> worth making sure these become easier to get running from Macports.
>

I did go to the trouble of getting KDE4 built on my old iBook in expectation
of my current situation (ensconced in a motel room, limited internet and no
expectation of being able to set up the iMac or the external drive with
XCode on it).  :)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gd2 MacPorts packaging bug

2011-07-28 Thread Brandon Allbery
On Thu, Jul 28, 2011 at 20:17, mark brethen  wrote:

> wxMaxima,  the environment variable doesn't get passed along. But gnuplot
> reads it's init file when ever a job is submitted to it..
>

No *login* shell is involved anywhere along the way (setting environment
variables in e.g. .bashrc is not an especially good idea, because it's
harder to override them when some other program needs them to be
different).  Most Linux desktop environments behave much the same way, and
they generally provide some way to set the environment of the desktop system
itself for cases like this.

For OS X you want to look at ~/.MacOSX/environment.plist.  There are several
preference pane add-ons for it, or you can edit it directly via the XCode
Property List Editor or as XML text.
http://developer.apple.com/library/mac/#qa/qa1067/_index.html

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gd2 MacPorts packaging bug

2011-07-29 Thread Brandon Allbery
Let's say you have a project for which you need a custom font path.
Oops!  Your . Bashrc

On 2011-07-29, mark brethen  wrote:
> I created the environment.plist and entered the GDFONTPATH and
> GNUPLOT_DEFAULT_GDFONT string values. This worked also. So, are you saying I
> shouldn't use .bashrc anymore?
>
> -Mark
>
>
>
> On Jul 28, 2011, at 8:14 PM, Brandon Allbery wrote:
>
>> On Thu, Jul 28, 2011 at 20:17, mark brethen  wrote:
>> wxMaxima,  the environment variable doesn't get passed along. But gnuplot
>> reads it's init file when ever a job is submitted to it..
>>
>> No *login* shell is involved anywhere along the way (setting environment
>> variables in e.g. .bashrc is not an especially good idea, because it's
>> harder to override them when some other program needs them to be
>> different).  Most Linux desktop environments behave much the same way, and
>> they generally provide some way to set the environment of the desktop
>> system itself for cases like this.
>>
>> For OS X you want to look at ~/.MacOSX/environment.plist.  There are
>> several preference pane add-ons for it, or you can edit it directly via
>> the XCode Property List Editor or as XML text.
>> http://developer.apple.com/library/mac/#qa/qa1067/_index.html
>>
>> --
>> brandon s allbery  allber...@gmail.com
>> wandering unix systems administrator (available) (412) 475-9364 vm/sms
>>
>
>


-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gd2 MacPorts packaging bug

2011-07-29 Thread Brandon Allbery
Let's say you have a project that requires a custom font path.  Oops!
Your .bashrc just overwrote it with the default

On 2011-07-29, mark brethen  wrote:
> I created the environment.plist and entered the GDFONTPATH and
> GNUPLOT_DEFAULT_GDFONT string values. This worked also. So, are you saying I
> shouldn't use .bashrc anymore?
>
> -Mark
>
>
>
> On Jul 28, 2011, at 8:14 PM, Brandon Allbery wrote:
>
>> On Thu, Jul 28, 2011 at 20:17, mark brethen  wrote:
>> wxMaxima,  the environment variable doesn't get passed along. But gnuplot
>> reads it's init file when ever a job is submitted to it..
>>
>> No *login* shell is involved anywhere along the way (setting environment
>> variables in e.g. .bashrc is not an especially good idea, because it's
>> harder to override them when some other program needs them to be
>> different).  Most Linux desktop environments behave much the same way, and
>> they generally provide some way to set the environment of the desktop
>> system itself for cases like this.
>>
>> For OS X you want to look at ~/.MacOSX/environment.plist.  There are
>> several preference pane add-ons for it, or you can edit it directly via
>> the XCode Property List Editor or as XML text.
>> http://developer.apple.com/library/mac/#qa/qa1067/_index.html
>>
>> --
>> brandon s allbery  allber...@gmail.com
>> wandering unix systems administrator (available) (412) 475-9364 vm/sms
>>
>
>


-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: build errors help

2011-08-02 Thread Brandon Allbery
On Wed, Aug 3, 2011 at 00:16, Scott Webster  wrote:

> While I don't necessarily disagree with keeping list traffic small (though
> perhaps small is relative these days), I asked for the logs because often
> it's impossible to help without them.  Do or should we have a policy of
> "only post compressed logs" or, never post logs?  Obviously if it's a bug
> then a ticket should be filed, but sometimes people don't know.  Maybe the
> question is, where is the first place to look for help, list or trac?
>
There are plenty of pastebins out there that will let you paste fairly big
logs and then paste the resulting URL into a list message.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: build errors help

2011-08-02 Thread Brandon Allbery
On Wed, Aug 3, 2011 at 00:50, Scott Webster  wrote:

> On Tue, Aug 2, 2011 at 9:45 PM, Brandon Allbery 
> wrote:
> > There are plenty of pastebins out there that will let you paste fairly
> big
> > logs and then paste the resulting URL into a list message.
>
> Good point!  Ok, so, "let it be known" that anyone referring to a log
> should always post it on the web somewhere and give the URL? (rather
> than omitting it, attaching it, or posting inline)


Seems a good idea, yes.  Any time I've needed to put a log up, I've used my
CMU web space (although I think it's going away soon, sadly) rather than
post inline.  And as I'm currently on an unreliable network, mail with huge
attachments (or worse, huge inline logs) is problematic.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gcc 4.6 port for OSX Lion

2011-08-04 Thread Brandon Allbery
On Thu, Aug 4, 2011 at 17:23, ENDERLIN Christophe  wrote:

> I put everything back in /usr as it was before my modifications, and then,
> I tried the
> 'port select' command. Now, I can see that the correct links have actually
> been created in /opt/local/bin
> but the old ones in /usr/bin have not been deleted.
>

This is normal, expected, and necessary; make sure /opt/local/bin is in
$PATH before /usr/bin, do *not* remove or alter the ones in /usr/bin.
 MacPorts doesn't modify them for the same reason you shouldn't:
 non-MacPorts stuff will break.


> So, I get an error message when I try a command like 'gcc --version' which
> seems normal

since I have two links with the same name. (one in /usr/bin and one in
> /opt/local/bin)
>

--version will report the version of the one you ran, independent of any
other version anywhere.  What error message are you getting?


> I had to remove those old links in /usr/bin so that everything works fine.
>

Put them back; let's get this figured out correctly, do NOT break things by
altering /usr/bin.

Ok thanks. Also, I don't know the difference there is between gcc, llvm-gcc
> and X86_64-apple-darwin11-gcc
>

gcc is normal gcc.  llvm-gcc compiles to LLVM bytecode; this is handy for
grid job managers which can relink LLVM executables for other platforms
available in the grid, and for various optimizers that operate on LLVM
bytecode.  (But if you're not familiar with LLVM then you can just ignore
the whole thing.)  The final one is Apple's gcc for Xcode with various
Xcode-specific optimizations and code generators.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: kde installation question

2011-08-04 Thread Brandon Allbery
On Thu, Aug 4, 2011 at 21:32, Ian Wadham  wrote:

> With KDE 4 applications, a Linux system would use $HOME/.kde4
> for these purposes, but Macports does something quite different and
> more in line with OS X usage.
>
> So I wonder if your .kde directory is legit in the Macports world ...
>

As yet, if you go to install "kde" from MacPorts you get KDE3; you need to
install the various KDE4 ports manually, there is no metaport.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gcc 4.6 port for OSX Lion

2011-08-05 Thread Brandon Allbery
On Fri, Aug 5, 2011 at 06:30, ENDERLIN Christophe  wrote:

> I think maybe the mistake I made yesterday is that I forgot to logoff/login
> after using port select.
>

Most shells remember where they've seen commands, and anything that changes
them will render that information obsolete.  With bash (OSX default) and
zsh, "hash -r" will update the seen command information; with tcsh, it's
"rehash". It's a good idea to run that in any open shells after installing
or updating a port or using "port select" or one of the *_select ports.
 Alternately, close the Terminal window and open another one, to get a fresh
shell.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gcc 4.6 port for OSX Lion

2011-08-05 Thread Brandon Allbery
On Fri, Aug 5, 2011 at 06:46, Brandon Allbery  wrote:

> changes them will render that information obsolete.  With bash (OSX
> default) and zsh, "hash -r" will update the seen command information; with
> tcsh, it's "rehash".
>

Just for completeness:  "rehash" is the historical command and should work
in any shell that supports command hashing (it's a built-in alias to "hash
-r" in bash and zsh, and a built-in in tcsh and ksh); and as a last resort
you can just make a dummy update to $PATH to force any command hash to be
discarded:

PATH="$PATH" # in sh-like shells
set path=($path) # in csh-like shells

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gcc 4.6 port for OSX Lion

2011-08-05 Thread Brandon Allbery
On Fri, Aug 5, 2011 at 07:17, ENDERLIN Christophe  wrote:

> I'm currently using zsh and I confirm that rehash works for me. But I don't
> know if zsh is sh-like or csh-like shell ?
>

Both, as it turns out :)  zsh defaults to sh-like when there is a conflict
between them, although you can set CSH_JUNKIE_* variables to make it prefer
various csh-style constructs; see the manpage or the rather voluminous HTML
documentation available via zsh.org.

A quick way to check what kind of shell you are running:

geran:241 Z$ echo $PS1 # sh-style
geran:! Z$
geran:242 Z$ echo $prompt # csh-style
geran:! Z$

(zsh, naturally, passes both.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Python frameworks

2011-08-08 Thread Brandon Allbery
On Mon, Aug 8, 2011 at 12:48, Ryan Schmidt  wrote:

> On Aug 6, 2011, at 11:20, mark brethen wrote:
> >> I'm kind of reluctant to handle this in Spyder's code (of course, if
> it's the only way, we will take action anyway) because there is absolutely
> no reason for MacPorts to differentiate pylint scripts depending on Python
> minor version number: after all, this script is an executable that should
> behaves exactly the same way on any Python version.
>
> I understand the developer's viewpoint, but he is probably not aware of all
> of the complexities involving software packaging.
>
> We have multiple ports for spyder and pylint in MacPorts (for each of
> several versions of Python). These can be installed simultaneously, so they
> cannot install the same files. So none of these can install an executable
> /opt/local/bin/pylint.
>

Strictly speaking, it's not a package manager issue, it's a configuration
manager issue.  This kind of thing comes up most often in managed
environments using configuration managers such as Puppet, bcfg2, Chef,
cfengine, etc., as well as university environments such as depot (CMU),
Athena (MIT), and Nikola (UW); this is somewhat important for research
professors and students working on their Ph.D theses who don't want to risk
having to deal with path or version vagaries across platforms.

The correct answer here is for spyder to use a global config file to get the
default values for these settings, so that $configuration_manager_of_choice
can configure the install in the local support tree to use programs from the
local support tree.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Python frameworks

2011-08-09 Thread Brandon Allbery
On Tue, Aug 9, 2011 at 02:31, Russell Jones
wrote:

> > If so, I would be strongly against that. "port select" is exclusively for
> a user's convenience; no port should change how it installs or functions
> based on what the user may or may not have "port select"ed.
>
> I can kind of see why you wouldn't want this on principle, but could you
> elaborate? Why should a user have to select which version of python they
> want for every package, when in the majority of cases the same version will
> be desired? Having a default doesn't exclude exceptions.
>

When the user uses port select to change the default Python, what should
happen to all of these?  How do you plan to implement it?  What if there
isn't a version of something installed this way for the selected Python
variant?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error: Unable to open port: invalid command name "installs_libs"

2011-08-11 Thread Brandon Allbery
On Thu, Aug 11, 2011 at 15:48, Andrew Todd  wrote:

> Error: Unable to open port: invalid command name "installs_libs"
>
> I've been seeing this error on some (but not all) ports that I try to
> install, upgrade, or clean lately. Renameutils, for instance. Using
> MacPorts 1.9.2, the most recent version. Any ideas? Thanks.
>

The most recent version of MacPorts is 2.0.1 on Lion and 2.0.0 elsewhere.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: How to install a perl packages that is not available in mac port?

2011-08-14 Thread Brandon Allbery
On Sun, Aug 14, 2011 at 11:49, Peng Yu  wrote:

> Also, is there a chance that a cpan package will not work with port?
> If it is always going to work, can we automatically port all cpan
> packages to mac port so that less human intervention is needed?
>

There's always a chance, although CPAN packages are generally getting better
about playing along with package systems  But the real problem with this
idea is that it means something has to monitor CPAN to detect and convert
new packages — and with the size of and amount of sheer cruft on CPAN,
that's incredibly wasteful.  Better to add packages on demand.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: More Lion problems: libthai and kdebase3

2011-08-14 Thread Brandon Allbery
On Sun, Aug 14, 2011 at 01:41, Richard L. Hamilton wrote:

> Couldn't get kdebase3 or libthai to build; the others I couldn't build on
> Lion have already been reported.  My real goal with kdebase3 is the games,
> esp. kshisen, ksame, and katomic.  I don't think I've tried the KDE 4
> equivalent, although I'd more or less expect problems with it too, and since
> it looks like it depends on qt4-mac, I wonder if it's not a non-X11 version,
> about which I'd have mixed feelings.
>

kdegames4 built fine on Lion after the original qt4-mac bugs were fixed.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Dependency or a port on private header files of Tcl

2011-08-19 Thread Brandon Allbery
On Fri, Aug 19, 2011 at 11:14, Daniel J. Luke  wrote:

> IIRC the private includes were installed into a normal search directory and
> some configure script found one or more of them.
>

I think the fact that they're private headers should have been a warning
that putting them in a public directory would cause problems.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Is it possible Fingerprint GUI on OSX?

2011-08-26 Thread Brandon Allbery
On Aug 26, 2011 8:23 AM, "bautzen"  wrote:
> I would like to know if it could be possibile to enable the fingerprint
> scanner under OSX. I know about UPEK Truesuite/protectorSuite for OSX, but
> the driver inside the app is designed ONLY for 2 or 3 last USB stick with
> Thomson CHIP on board. Mine is an old

MacPorts isn't so much about developing software as it is about making
existing software accessible.  I would imagine there are Hackintosh mailing
lists for this kind of thing... but supporting non-Mac hardware can be a
crapshoot.

-- 
...tabula non rasa
(brandon s allbery kf8nh on the padd)
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Why was the macports user implemented

2011-08-31 Thread Brandon Allbery
On Wed, Aug 31, 2011 at 15:26, Rodolfo Aramayo  wrote:

> Great. Good explanation. Thanks, but then that begs the question as to
> why the files in '/opt/local/' are not owned by macports:macports and
> instead by 'root:admin and/or root:wheel'? Am I missing something in
> here??
>

You don't want to allow Portfiles to remove random files owned by you;
likewise, you don't want to allow it to remove random files installed by
other ports (which you have implicitly validated by "port install"ing them
as some user other than the macports user; this is normally root but might
be yourself or some other user if you chose).  The port build environment is
set up to protect not only your files but also the rest of MacPorts.
 Ideally it'd be a sandbox in which only the port's own working files could
be modified by a rogue command, but MacPorts isn't quite there yet.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Errors building gcc44 under MacOsX

2011-09-04 Thread Brandon Allbery
On Sun, Sep 4, 2011 at 10:00, David Epstein wrote:

> :info:build ld: warning: ignoring file /opt/local/lib/libz.dylib, file was
> built for unsupported file format which is not the architecture being
> linked
> (x86_64)
>

This is the key error.  Check the zlib port; is it installed for x86-64?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: How to install doxygen --with-doxywizard?

2011-09-04 Thread Brandon Allbery
On Sun, Sep 4, 2011 at 19:22, Peng Yu  wrote:

> The default installation of doxygen does not have doxywizard. Is there
> anyway to enable doxywizard?


haral:1498 Z$ port variants doxygen
doxygen has the variants:
   docs: Include the doxygen PDF documentation and LaTeX
   tcl: Add EXPERIMENTAL support for Tcl (http://wiki.tcl.tk/27011)
   universal: Build for multiple architectures
   wizard: Include the GUI wizard based on Qt4

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: What is db46 and why is it such a pain?

2011-09-07 Thread Brandon Allbery
On Wed, Sep 7, 2011 at 21:20, Yves S. Garret wrote:

> I tried installing gedit and this is the issue that I encountered:
>
> Error: Checksum (md5) mismatch for patch.4.6.21.1
> Error: Checksum (sha1) mismatch for patch.4.6.21.1
> Error: Checksum (rmd160) mismatch for patch.4.6.21.1
> Error: Checksum (md5) mismatch for patch.4.6.21.2
> Error: Checksum (sha1) mismatch for patch.4.6.21.2
> Error: Checksum (rmd160) mismatch for patch.4.6.21.2
> Error: Checksum (md5) mismatch for patch.4.6.21.3
> Error: Checksum (sha1) mismatch for patch.4.6.21.3
> Error: Checksum (rmd160) mismatch for patch.4.6.21.3
> Error: Checksum (md5) mismatch for patch.4.6.21.4
> Error: Checksum (sha1) mismatch for patch.4.6.21.4
> Error: Checksum (rmd160) mismatch for patch.4.6.21.4
> ***
> The non-matching file appears to be HTML. See this page for possible
> reasons
> for the checksum mismatch:
> 
>

db46 is Sleepycat DB 4.6, which is now owned by Oracle... who apparently
doesn't worry about consistency or release engineering (like that's a
surprise...).  Or maybe they're trying to kill Sleepycat DB off by adding
more and more hoops to jump through.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: What is db46 and why is it such a pain?

2011-09-07 Thread Brandon Allbery
On Wed, Sep 7, 2011 at 21:34, Yves S. Garret wrote:

> Yeah, this isn't the first install that's crashed and burned for me.  How
> do I fix this issue?


I noticed that the snippet I included had something to say about that.  Had
you considered reading it?



> On Wed, Sep 7, 2011 at 9:28 PM, Brandon Allbery wrote:
>
>> On Wed, Sep 7, 2011 at 21:20, Yves S. Garret 
>> wrote:
>>
>>> I tried installing gedit and this is the issue that I encountered:
>>>
>>> Error: Checksum (md5) mismatch for patch.4.6.21.1
>>> Error: Checksum (sha1) mismatch for patch.4.6.21.1
>>> Error: Checksum (rmd160) mismatch for patch.4.6.21.1
>>> Error: Checksum (md5) mismatch for patch.4.6.21.2
>>> Error: Checksum (sha1) mismatch for patch.4.6.21.2
>>> Error: Checksum (rmd160) mismatch for patch.4.6.21.2
>>> Error: Checksum (md5) mismatch for patch.4.6.21.3
>>> Error: Checksum (sha1) mismatch for patch.4.6.21.3
>>> Error: Checksum (rmd160) mismatch for patch.4.6.21.3
>>> Error: Checksum (md5) mismatch for patch.4.6.21.4
>>> Error: Checksum (sha1) mismatch for patch.4.6.21.4
>>> Error: Checksum (rmd160) mismatch for patch.4.6.21.4
>>> ***
>>> The non-matching file appears to be HTML. See this page for possible
>>> reasons
>>> for the checksum mismatch:
>>> <https://trac.macports.org/wiki/MisbehavingServers>
>>>
>>
>> db46 is Sleepycat DB 4.6, which is now owned by Oracle... who apparently
>> doesn't worry about consistency or release engineering (like that's a
>> surprise...).  Or maybe they're trying to kill Sleepycat DB off by adding
>> more and more hoops to jump through.
>>
>> --
>> brandon s allbery
>> allber...@gmail.com
>> wandering unix systems administrator (available) (412) 475-9364vm/sms
>>
>>
>


-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: What is db46 and why is it such a pain?

2011-09-07 Thread Brandon Allbery
On Wed, Sep 7, 2011 at 21:47, Yves S. Garret wrote:

> I tried getting a different DNS (used google's public DNS) and that failed
> to work.  What makes me wonder is, why is this product even remotely related
> to gedit?  Some dependency down the tree of dependencies?


Possibly, but it's not unheard of for text editors to save line number to
byte offset mappings (or to the lines themselves; see nvi for an example
that also uses Sleepycat DB) in simple databases.

In any case, Oracle being who they are, I'd suspect less a 404 than that
they tossed in some license agreement nonsense and it'll be necessary to
manually agree and download the patches (wouldn't be the first time they did
it, even).  Try renaming the downloaded patch files to have a .html
extension and loading them in a browser.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: libpython.dylib sym link ?

2011-09-13 Thread Brandon Allbery
On Tue, Sep 13, 2011 at 07:22, Chris Jones  wrote:

> I guess the root port always uses -lpython without querying the python
>> config. A symlink in this directory should not harm, so it could be added.
>>
>
> I think this is the case. The root build system doesn't allow for a
> versioned python library, only 'libpython'.
>
> I'll try and follow this up with the root devs upstream, but I suspect it
> will take some effort to get this changed, if at all. If it would be easy
> and OK for the python ports to just add this symlink in the Frameworks
> areas, that would be very useful indeed.
>

You might want to point out that the Python developers (not the MacPorts
Python folks, but GvR & co.) are unlikely to have any sympathy for anyone
who doesn't use the correct python*-config command to get the correct
library, especially given that it's still currently necessary in many
environments to have both a Python 2.x and Python 3.x installed.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: installing Postgres

2011-09-13 Thread Brandon Allbery
On Tue, Sep 13, 2011 at 16:59, Puneet Kishor  wrote:

> $sudo su postgres -c '/opt/local/lib/postgresql90/bin/pg_ctl start -D
> /path/to/db/postgresql90/defaultdb -l ~/Logs/postgresql90-server/main.log'
>
> but, I don't know the password for the 'postgres' user
>

Are you using the actual command you quoted?  The "sudo" shifts to root,
which doesn't need a password to "su postgres".

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: installing Postgres

2011-09-13 Thread Brandon Allbery
On Tue, Sep 13, 2011 at 17:07, Brandon Allbery  wrote:

> On Tue, Sep 13, 2011 at 16:59, Puneet Kishor  wrote:
>
>> $sudo su postgres -c '/opt/local/lib/postgresql90/bin/pg_ctl start -D
>> /path/to/db/postgresql90/defaultdb -l ~/Logs/postgresql90-server/main.log'
>>
>> but, I don't know the password for the 'postgres' user
>>
>
> Are you using the actual command you quoted?  The "sudo" shifts to root,
> which doesn't need a password to "su postgres".
>

Oh, the "$" isn't part of the command; if you're typing it, then the shell
is trying to expand a variable called "sudo" that is probably empty, so
you'd get the password prompt.

sudo su postgres -c '/opt/local/lib/postgresql90/bin/pg_ctl start -D
/path/to/db/postgresql90/defaultdb -l ~/Logs/postgresql90-server/main.log'

(all on one line)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error: Status 1 encountered during processing.

2011-09-18 Thread Brandon Allbery
On Sun, Sep 18, 2011 at 13:37, bunk3m  wrote:

> I can manually install any package that has no dependencies using ie.
> sudo port -s install gperf or sudo port -s install expat.  But doing
> sudo port install ffmpeg --nonfree --enable-libx264 --enable-libvpx will
> NOT work.
>

While this *probably* isn't related, you're not specifying variants
correctly.

haral:1737 Z$ port variants ffmpeg
ffmpeg has the variants:
   jack: Enable jack input device support (currently broken)
   no_gpl: disallow use of GPL code, license will be LGPL
   no_mmx: disable all x86 asm optimizations
[+]no_nonfree: disallow use of nonfree code, libraries and binaries will
be
   redistributable under GPL/LGPL
   universal: Build for multiple architectures

--enable-libx264 and --enable-libvpx look like configure options; you can't
use those at all.  The other would be specified as "-no_nonfree" per the
available variants.

:debug:archivefetch couldn't open
"/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex":
no such file or directory
   while executing
"open [file join $dir tclIndex]"

Anything under /System is part of Mac OS X itself.  You may have a damaged
Snow Leopard install.

-- 

brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error: Status 1 encountered during processing.

2011-09-18 Thread Brandon Allbery
I forgot to mention what might be the most important part of this...

On Sun, Sep 18, 2011 at 13:37, bunk3m  wrote:

> --->  Attempting to fetch libiconv-1.14_0.darwin_10.x86_64.tbz2 from
> http://packages.macports.org/libiconv
> --->  Attempting to fetch libiconv-1.14_0.darwin_10.x86_64.tbz2.rmd160
> from http://packages.macports.org/libiconv
> Error: Target org.macports.archivefetch returned: Failed to verify
> signature for archive!
>

It occurs to me to wonder what's in these files.  Could there be a proxy in
the way that's trying to e.g. ask for a password?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Lion/MacPorts2.x migration: Fetchmail looking for Kerberos

2011-10-01 Thread Brandon Allbery
On Sat, Oct 1, 2011 at 16:56, Bill Christensen  wrote:

> I'm doing a test migration of a server from SnowLeopard/MacPorts 1.9.x to
> Lion/MacPorts2.x.   Most of it appears to be going fairly smoothly (though
> uninstalling/reinstalling all the ports is a bit tedious), but i've run into
> a problem installing Fetchmail.  It's looking for Kerberos V... apparently
> found in /usr, but then gives the error "Kerberos 5 DES libraries not found"
> in the log, and quits.
>

That's a Lion compatibility issue... Apple decided to change the whole
Kerberos subsystem in frustrating ways, so on Lion a lot of stuff that could
use system Kerberos now needs to use one from MacPorts, and not all ports
have been updated to reflect this yet.  Install heimdal or kerberos5 from
ports and you should be fine; also file a ticket against the fetchmail port
about the Lion incompatibility.

(Specifically:  they switched from MIT to Heimdal, then left out most of the
API.  As such, the heimdal port might work better with Lion's Kerberos.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Xcode installer says itunes must be closed

2011-10-04 Thread Brandon Allbery
On Tue, Oct 4, 2011 at 14:46, Tim Johnson  wrote:

> "In order to continue installation, please close the
>  following application:"
>
>  And itunes is highlighted in the window.
>

They still haven't fixed that?

Open a Terminal, type

killall iTunesHelper

(It's not the GUI that's open, but a background event handler that gets
launched when you log in.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Xcode installer says itunes must be closed

2011-10-04 Thread Brandon Allbery
On Tue, Oct 4, 2011 at 15:15, Tim Johnson  wrote:

>  In the meantime, should there be anything else to do with Xcode
>  before trying to install macports?


That should be it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Recommend ML/Forum for mac command line

2011-10-04 Thread Brandon Allbery
On Tue, Oct 4, 2011 at 19:17, John Korchok  wrote:

> I have a book recommendation rather than a forum. "A Practical Guide to
> Unix
> for Mac OS X Users" by Prentice Hall has been quite valuable to me.
>

You can also check on http://freebsd.org for book recommendations, since the
userspace of OS X is largely (but not completely) based on FreeBSD.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port upgrade outdated from 2.0.2 to 2.0.3 messed up user database

2011-10-10 Thread Brandon Allbery
On Mon, Oct 10, 2011 at 20:11, David Herron  wrote:

>mainmini:~ david$ sudo port install nodejs npm
>sudo: unknown uid: 501
>mainmini:~ david$ sudo port install nodejs npm
>sudo: unknown uid: 501
>
> Obviously the error is coming from "sudo" and it didn't even get to the
> "port" command.  My /etc/passwd no longer has an entry for "david" ... there
> are a bunch of entries whose name start with _ like _timezone or _cvsmroot
> or _ftp ..etc..
>

OSX hasn't put actual users (as opposed to subsystem accounts) in
/etc/passwd since at least Tiger.  Instead, they go into Directory Services
(NetInfo in Tiger), and it sounds like in this case the Directory Services
daemon crashed or got stuck and you had to wait for launchd to notice and
restart it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Unsupported compiler error when building MacVim

2011-10-13 Thread Brandon Allbery
On Thu, Oct 13, 2011 at 16:28, Tim Johnson  wrote:

> > :info:build === BUILD NATIVE TARGET PSMTabBarControlFramework OF PROJECT
> PSMTabBarControl WITH THE DEFAULT CONFIGURATION (Release) ===
> > :info:build Check dependencies
> > :info:build Unsupported compiler 'GCC 4.2' selected for architecture
> 'x86_64'
>


>  P.S. Xcode 4.2
>

The ghc mailing list has been fighting this for a bit; it seems Xcode 4.2 no
longer ships a non-llvm gcc.  I suspect things are about to get
"interesting" in OSX developer land.

I personally am holding off the Xcode upgrade for a while.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Unsupported compiler error when building MacVim

2011-10-13 Thread Brandon Allbery
On Thu, Oct 13, 2011 at 18:33, Tim Johnson  wrote:

> * Brandon Allbery  [111013 14:24]:
> > The ghc mailing list has been fighting this for a bit; it seems Xcode 4.2
> no
> > longer ships a non-llvm gcc.  I suspect things are about to get
> > "interesting" in OSX developer land.
> >
> > I personally am holding off the Xcode upgrade for a while.
>   Yikes! Are you saying that I should be using Xcode4.1?


It would probably be easier, but I was given another solution on IRC; you
should file a bug against the port.

 geekosaur: indeed, this is why we've been telling everyone to
check for gcc-4.2's existence and depend on apple-gcc42 if needed

so the port is doing the wrong thing, and you should be able to work around
by "sudo port install apple-gcc42".

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: netpbm fails to download using svn

2011-10-16 Thread Brandon Allbery
On Sun, Oct 16, 2011 at 23:18, Ryan Schmidt  wrote:

> On Oct 16, 2011, at 18:08, Frank J. R. Hanstick wrote:
> > How does this error get corrected if the maintainer is unwilling to fix
> an obvious defect?
>
> Are you saying that MacPorts' capability to fetch sources from CVS,
> Subversion, Git, Mercurial, and Bazaar repositories should never be used,
> because sometimes individual projects' servers might be down?


You're reading backwards.  *Someone* thinks so, which is what the OP is
complaining about; see http://trac.macports.org/ticket/29692 .  (In short:
 they aren't fixing svn checkout, because they think svn is evil.  I'm
somewhat boggled by the comment in question; if they don't like svn, why is
the port using it?)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: netpbm fails to download using svn

2011-10-16 Thread Brandon Allbery
On Mon, Oct 17, 2011 at 00:28, Ryan Schmidt  wrote:

> This branch of the software is only distributed from the Subversion
> repository; there are no downloadable tarballs available. The alternative
> would be for the maintainer to package up a tarball and arrange to have it
> uploaded to distfiles.macports.org; that's rather less convenient for the
> maintainer.
>

Those are quite justifiable; what that comment says is the reason, however,
isn't.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Impossible to compile anything

2011-10-17 Thread Brandon Allbery
On Mon, Oct 17, 2011 at 03:26, David Trémouilles wrote:

> I did nothing special (but upgrading port regularly)
> but now any try to install a port lead to the same
> error issued by gcc:
>
> ld: in /usr/lib/libSystem.dylib, malformed trie, node past end
> collect2: ld returned 1 exit status
>
> Any idea what is going on and where I should start to look for ?
>

Sounds like you installed biinutils at some point,  binutils is pretty
broken on OS X, and presumably the most recent update broke it even worse
than usual.  Remove, or at least deactivate, it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: netpbm fails to download using svn

2011-10-17 Thread Brandon Allbery
On Mon, Oct 17, 2011 at 03:20, Joshua Root  wrote:

> On 28164-7-23 05:59 , Brandon Allbery wrote:
> > You're reading backwards.  *Someone* thinks so, which is what the OP is
> > complaining about; see http://trac.macports.org/ticket/29692 .  (In
> short:
> >  they aren't fixing svn checkout, because they think svn is evil.  I'm
> > somewhat boggled by the comment in question; if they don't like svn, why
> is
> > the port using it?)
>
> That's not an entirely accurate summary of the maintainer's position.
> It's more like "svn over HTTP is evil, and svn over HTTPS is
> significantly less evil."
>

As I read it, over https was only slightly less evil; their real complaint
was the lack of any kind of checksum.  (Which I don't actually take that
seriously; if the VCS doesn't validate that it got the actual files it
requested then it's fundamentally broken, and if the version it requested
isn't the same as the one intended then either the VCS is fundamentally
*really* broken or someone has been going behind its back and needs their
fingers broken.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: How to create a package uninstaller

2011-10-18 Thread Brandon Allbery
On Tue, Oct 18, 2011 at 17:54, Michael O'Brien <
michael.t.obr...@notes.aero.org> wrote:

>And there's the rub.  The metapackage installs and works just fine,
> thank you very much, but I've now been asked to come up with a way to
> UN-install it.  Frankly I don't know how to do this.  The info we need is
> buried in the metapackage file, obviously, but if the Apple installer puts a
> log receipt anywhere of what it's done in a format I could use to build
> something to remove all those files, I've not found it yet.


man pkgutil

Note that the Apple installer doesn't necessarily record *everything* needed
to remove packages, nor does it help you with shared paths that might need
to be retained for other packages to work, which is why third party
uninstallers are dicey at best.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: php5-xcache

2011-11-05 Thread Brandon Allbery
On Sat, Nov 5, 2011 at 16:54, Phil Dobbin  wrote:

> On 5/11/11 at 20:43, pixi...@macports.org (Bradley Giesbrecht) wrote:
>
> > Where do you see a php cache extension requirement?
> > I do not see it here:
> > http://aws.amazon.com/articles/4263?_encoding=UTF8&jiveRedirect=1
>
> I’m not migrating from CloudFusion. This is an initial set-up:
>
> 


That isn't saying you need any of those packages; it's just reminding you
that if you *do* want to use one of them, you need to install it first.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install doesn't create symlink

2011-11-05 Thread Brandon Allbery
On Sat, Nov 5, 2011 at 17:12, Jim Anderson  wrote:

> I installed perl5.14 and expected that when I ran "perl -v" I'd see
> something like
>
>This is perl 5, version 14, subversion 1 (v5.14.1) built for
> darwin-multi-2level
>
> But instead I see
>
>-bash: /opt/local/bin/perl: No such file or directory
>

"sudo port install perl5 +perl5_14"

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: port install doesn't create symlink

2011-11-05 Thread Brandon Allbery
On Sat, Nov 5, 2011 at 18:43, Jim Anderson  wrote:

> jim-andersons-macbook-pro:~ jander$ cpan
> -bash: /usr/local/bin/cpan: /usr/local/bin/perl: bad interpreter: No such
> file or directory
>

You appear to have a "cpan" command from a different Perl installation;
MacPorts won't install anything under /usr/local, so /usr/local/bin/cpan
can't be related.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Prompt what package to install when it is missing

2011-11-11 Thread Brandon Allbery
Actually, it's only fairly recently that Linux package managers started
shipping with a master package manifest that could be queried for this kind
of thing, and it's an add-in instead of basic behavior; as such, it's only
"fundamental" in the sense that there's only one such manifest to query on
any given Linux system.

That said, it's still an add-in we don't have the ability to provide as yet.

It strikes me as not very difficult to create an extensible mechanism that
different package providers could opt in to, by the way.  Not that I would
expect e.g. the Mac App Store to do so.  (Also perhaps not a good idea
given the kinds of messes you can get in to if you have development
packages from both e.g. MacPorts and Fink installed.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Prompt what package to install when it is missing

2011-11-11 Thread Brandon Allbery
On Fri, Nov 11, 2011 at 16:05, Scott Webster  wrote:

> On Fri, Nov 11, 2011 at 12:57 PM, Phillip Koebbe
>  wrote:
> >
> > On Nov 11, 2011, at 2:43 PM, Brandon Allbery wrote:
> >> Actually, it's only fairly recently that Linux package managers started
> shipping with a master package manifest that could be queried for this kind
> of thing, and it's an add-in instead of basic behavior; as such, it's only
> "fundamental" in the sense that there's only one such manifest to query on
> any given Linux system.
> >>
> >
> > I guess my memory is worse than I thought. I seem to recall the behavior
> we're discussing when I used Debian regularly 10ish years ago. My mistake.
> >
>
> You could run "auto-apt search " a long time ago, but it
> certainly didn't just pop up a useful comment if you typed an unknown
> command at the prompt...


Or "apt-cache search" etc., but in terms of the history of dpkg and apt
it's a recent development.  RPM-based Linuxes took even longer to get the
capability, even though it was trivial to implement (simply add a complete
package database and provide wrappers that search it instead of the system
one).

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Prompt what package to install when it is missing

2011-11-11 Thread Brandon Allbery
On Fri, Nov 11, 2011 at 16:17, Ryan Schmidt  wrote:

> Other times, we want to know what port provides a certain header or
> library we don't have on our systems that's causing some port to fail to
> build because someone forgot a dependency.
>

This we need anyway, as it's a basis for what's being requested.


> What do Ubuntu or other distributions do, and how do they do them? I
> haven't used them.
>

They define in an /etc/profile.d inclusion a command-not-found trap that
queries a master database (a la "port provides" but against a database of
file locations if someone had every port installed) and suggests installing
(one of the) packages that provides it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Upgrading MacPorts After Installing Lion

2011-11-12 Thread Brandon Allbery
On Sat, Nov 12, 2011 at 20:12, Merton Campbell Crockett <
m.c.crock...@roadrunner.com> wrote:

> Looking back through the Terminal window, I saw several entries
> complaining about gettext being in use.  At this point, would I be better
> off uninstalling all of the ports and then build the ports of applications
> as they are needed?
>

That's what you should have doe in the first place, really.  Or at least
removed and rebuilt.
https://trac.macports.org/wiki/Migration

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Trac and svn are down?

2011-11-17 Thread Brandon Allbery
On Thu, Nov 17, 2011 at 21:46, Ryan Schmidt  wrote:

> I can't seem to get an http response from trac.macports.org or
> svn.macosforge.org at the moment.
>

IRC is reporting that the server is overloaded and is being rebooted.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Binary builds???

2011-11-19 Thread Brandon Allbery
On Sat, Nov 19, 2011 at 05:27, Marko Käning  wrote:

> I wonder whether there will be support for alternative prefixes, if that's
> possible at all…


Sadly, very few of the packages that MacPorts manages come with support for
alternate prefixes at runtime.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Binary builds???

2011-11-19 Thread Brandon Allbery
On Sat, Nov 19, 2011 at 12:26, Marko Käning  wrote:

> On Nov 19, 2011, at 5:33 PM, Brandon Allbery wrote:
> > Sadly, very few of the packages that MacPorts manages come with support
> for alternate prefixes at runtime.
> Ah, ok, that means there are indeed binary packages which could be
> installed with alternate


No, it means there *aren't* any, because the few ports that have that
capability in their source aren't anywhere near enough to bother with the
additional complexity of trying to support it in the buildbot.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Unable to configure any packages when MacPort is active

2011-11-19 Thread Brandon Allbery
On Sat, Nov 19, 2011 at 17:43, Rodolfo Aramayo  wrote:

> People,
>
> So I found the culprit and it is:
>
> coreutils @8.14 (sysutils)
> GNU File, Shell, and Text utilities
>

Remove /opt/local/libexec/gnubin from your $PATH; that's where coreutils is
overriding all the system utilities, usually to the great confusion of
configure (which is generally smart enough to look for g if the system
 isn't good enough).

The whole reason non-prefixed stuff got moved to /opt/local/libexec/gnubin
is that it's a *lovely* way to confuse the heck out of programs.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Reinstall all ports after Xcode 4.1 -> 4.2 upgrade?

2011-11-23 Thread Brandon Allbery
On Wed, Nov 23, 2011 at 08:36, Christoph Deil  wrote:

> I just updated XCode from 4.1 to 4.2 on Lion.
> Do I have to reinstall all ports because the XCode compilers changed?
>

No; the APIs and ABIs are still the same.  It's when Apple changes those
(as with a new OS release) that you need to forcibly rebuild stuff, because
Apple tends to move things around a lot (for example, in Lion a bunch of
stuff apparently moved out of libSystem.dylib to other libraries).

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Lots and lots of system time

2011-11-25 Thread Brandon Allbery
On Fri, Nov 25, 2011 at 15:08, Harald Hanche-Olsen wrote:

> I have no idea what mach_kernel`chud is or does, but it disappears from
> the list when the compilation is stopped. (So do the dtrace functions,
> BTW.) The script runs for ten seconds, so


CHUD is part of the instrumentation, I think (Computer Hardware
Understanding for Developers; if it hasn't been folded into DTrace then it
is at least *used* by DTrace).  You may want to look for "Instruments",
which is part of XCode and makes using DTrace to figure out what a process
is doing much easier.

In any case, I would be interested to see what happens if you turn off
multiple jobs.  I wouldn't necessarily assume that psynch_cvwait doesn't
use CPU, by the way; busywaiting is often used for what are expected to be
short delays waiting on a mutex.  ("port install ... build.njobs=1", IIRC)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: installer does not find sed / uname

2011-11-25 Thread Brandon Allbery
On Fri, Nov 25, 2011 at 18:26, Kraus Philipp wrote:

> I have run the pkg with the installer tool on a terminal the call does not
> create any error. If I run the package via double click the error
> "sed / uname not found" is shown.
>

Do you by any chance have a ~/.MacOSX/environment.plist file?  If so, is it
trying to set $PATH?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: $PATH

2011-11-25 Thread Brandon Allbery
On Fri, Nov 25, 2011 at 19:22, Phil Dobbin  wrote:

> I've tried all different incantations starting from the usual `export
> PATH=/usr/bin/ruby:$PATH` in my .bash_profile to more esoteric ones in my
> basrc, ~/.MacOS X/environment.plist & so on. I sourced the .bash_profile,
> quit iTerm & restarted but no deal.
>

PATH contains *directories*, not files.  "export PATH=/usr/bin:$PATH"

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Lots and lots of system time

2011-11-26 Thread Brandon Allbery
On Sat, Nov 26, 2011 at 05:53, Harald Hanche-Olsen wrote:

> Trying that now, it didn't make any difference. Where could I found
> out about options such as build.njobs, BTW? I looked around to verify
> that you did RC, but to no avail.
>

http://guide.macports.org/#reference

(Which could use either an index or a deeper table of contents or both;
while I knew roughly what I was looking for, it still took some digging to
locate the actual variable and there is no convenient list of all
variables.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: installer does not find sed / uname

2011-11-26 Thread Brandon Allbery
On Sat, Nov 26, 2011 at 05:10, Kraus Philipp wrote:

> Am 26.11.2011 um 00:38 schrieb Brandon Allbery:
>
> Do you by any chance have a ~/.MacOSX/environment.plist file?  If so, is
> it trying to set $PATH?
>
>
> Yes, I have changed the PATH, but I have tested with and without the
> environment.plist, In both cases the error is shown
>

You would have to log out and back in after changing or (re)moving that
file; it's only read at login, so simply moving it and retrying the command
would prove nothing

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Solved! Re: Lots and lots of system time

2011-11-26 Thread Brandon Allbery
On Sat, Nov 26, 2011 at 08:42, Harald Hanche-Olsen wrote:

> syscall::connect*:entry
> syscall::connect*:return
>

I wonder if there's a better way to do that, in particular avoiding the
wildcards; I would suspect it ends up waking up on *every* syscall to do
the glob, which on a system-wide basis will be extremely expensive no
matter how much it's optimized.  Also, I would try to limit what processes
are getting traced.  DTrace isn't magic; if you hook a critical path
system-wide (and they don't come much more critical than the syscall
provider), you''re going to feel it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: What/where Xcode 4.0.2 for Macports install in Snow Leopard?

2011-11-27 Thread Brandon Allbery
On Sun, Nov 27, 2011 at 13:46, Murray Eisenberg
wrote:

> But the current Xcode 4.2.1 requires Lion (OS X 10.7) and, as I said, I'm
> running Snow Leopard 10.6.8.


That wasn't the point, so much as that installing XCode from the App Store
*only* installs an installer.  Did you run that installer afterward?

(Meanwhile it looks like Apple has withdrawn XCode 4 for Snow Leopard; both
the primary link in the Mac Dev Center and the full downloads list show
3.2.6 as latest for SL, and XCode 4.0 has vanished entirely.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: problem building qt4-x11 on SL

2011-12-03 Thread Brandon Allbery
2011/12/3 Ryan Schmidt 

> >  - pyQt + qt4-x11 but this last library is broken.
>
> You could try back-porting the changes that have happened in the qt4-mac
> port. There are probably many changes since it's been years since this was
> updated. If you get it working, send a diff so we can update the port.


So it looks to me like you want "port install py-pyqt4 +x11 -quartz".  This
will use qt4-mac built for X11, which is how you're supposed to be doing it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: "port atlas not found"

2011-12-04 Thread Brandon Allbery
FWIW I just verified this a couple hours ago; I had to selfupdate twice,
the first time the index was missing atlas.  (It had also been missing
before I updated, which would have been the update I did 2 days ago.)

I should have saved the various Portindex files and diff-ed them

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: xemacs mac os x Lion 10.7.2

2011-12-12 Thread Brandon Allbery
2011/12/12 Benoît Revenu 

> dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
>  Referenced from: /opt/local/lib/libXpm.4.dylib
>  Reason: Incompatible library version: libXpm.4.dylib requires version
> 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
> Trace/BPT trap: 5
>

Do you have $DYLD_LIBRARY_PATH defined, by any chance?  Or have you
possibly tried to replace the MacPorts libiconv with the incompatible
system-privided one?

haral:70286 Z$ otool -DL /usr/lib/libiconv.2.dylib
/usr/lib/libiconv.2.dylib:
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version
7.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
159.0.0)
haral:70287 Z$ otool -DL /opt/local/lib/libiconv.2.dylib
/opt/local/lib/libiconv.2.dylib:
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current
version 8.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
159.1.0)

In short, sounds like it's looking for the MacPorts libiconv, but finding
the system one.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Missing updated features?

2011-12-14 Thread Brandon Allbery
On Wed, Dec 14, 2011 at 13:12, Adam Dershowitz  wrote:

> At this point my ports are up to date.  I do have a good number of ports
> installed and have never noticed a binary download.  But, I will keep an
> eye on it, and post transcripts if anything that seems relevant comes up.


One thing to keep in mind here is that only default variants are currently
built; if you use +universal for everything, or other widely pervasive
variants like +no_x11 +quartz, it usually won't find anything prebuilt and
will have to install manually.  Likewise, if you use a non-default prefix
(that is, not /opt/local), it will always build from source:  very few
upstream software packages provide for the possibility of runtime
relocation, so MacPorts doesn't bother trying to support it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-16 Thread Brandon Allbery
On Fri, Dec 16, 2011 at 09:13, Peng Yu  wrote:

> gcc from gcc45 seems not able to recognize the -arch option. I'm
> wondering whether it should be the case or I did anything wrong?


-arch is part of Apple's private patches to support multiple-architecture
objects and binaries, and is only supported by Apple's Xcode compilers.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: MacPorts on Linux

2011-12-17 Thread Brandon Allbery
On Sat, Dec 17, 2011 at 03:44, Niels Dettenbach (Syndicat IT&Internet) <
n...@syndicat.com> wrote:

> But another point here may be - why MacPorts (which is by principe
> developed and maintained for Mac OS X only) afaik did not cooperate nor
> participate on well driven / maintained ports projects like pkgsrc?


pkgsrc has always been a good idea in theory.  But in practice, it's not
even common across the BSDs (the major BSDs all have their own *forks* of
it instead of maintaining a common tree), and it's never caught on
significantly on the other platforms it attempts to support.  This is a
historical issue that predates MacPorts.

Perhaps the question should be asking is, why did pkgsrc never manage to
establish a credible foothold on other platforms?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Where is gcc_select installed?

2011-12-17 Thread Brandon Allbery
On Sun, Dec 18, 2011 at 00:03, Peng Yu  wrote:

> I'm wondering where gcc_select is installed? I have it installed already.
>
> /opt/local/var/macports$ port installed |grep gcc_select
>  gcc_select @0.1_5 (active)
>
> According to this page, there should be a command called gcc_select.
> But I just don't find one. Is my understanding wrong?
>

Looks like the docs are out of date:

haral:19028 Z$ port contents gcc_select
Port gcc_select contains:
  /opt/local/etc/select/gcc/base
  /opt/local/etc/select/gcc/gcc42
  /opt/local/etc/select/gcc/llvm-gcc42
  /opt/local/etc/select/gcc/none

In any case, the functionality was folded into MacPorts itself recently;
see the port select command.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-17 Thread Brandon Allbery
On Sun, Dec 18, 2011 at 00:25, Peng Yu  wrote:

> I can not single out a simple test case. But please try compile the
> following package at the following address.
>
> http://www.tbi.univie.ac.at/~ronny/RNA/ViennaRNA/ViennaRNA-2.0.0.tar.gz
>
> I have gcc45 active. After run configure, I run make make, then I got
>

The problem is, they're expecting you to have Apple's compiler as the
default.  Other compilers do not support -arch, nor can they build for
multiple architectures simultaneously as this package is trying to do.

One way to work around this is to temporarily put /usr/bin at the start of
your $PATH while building this package (e.g. "PATH=/usr/bin:$PATH make").

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-17 Thread Brandon Allbery
On Sun, Dec 18, 2011 at 01:02, Ryan Schmidt  wrote:

> On Dec 17, 2011, at 23:53, Brandon Allbery wrote:
> > The problem is, they're expecting you to have Apple's compiler as the
> default.  Other compilers do not support -arch, nor can they build for
> multiple architectures simultaneously as this package is trying to do.
> >
> > One way to work around this is to temporarily put /usr/bin at the start
> of your $PATH while building this package (e.g. "PATH=/usr/bin:$PATH make").
>
> ...that will make it use Apple's gcc, right? I thought the goal of the
> exercise was to compile the program with gcc45.
>

That may be the objective, but since it's passing "-arch i386 -arch
x86_64", that's likely to be a rather tall order.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: having programs launch on reboot

2011-12-19 Thread Brandon Allbery
On Mon, Dec 19, 2011 at 15:03, Puneet Kishor  wrote:

> I thought the -w switch was supposed to disable the "Disabled" key, but,
> as I said, the programs didn't start up automatically on reboot. I will try
> again.
>

It does, but on Snow Leopard and Lion this will only change state hidden
inside launchd's private config; that is, it will not actually edit the
plist file as it did in Leopard and earlier, so simply checking for that
key in the plist won't tell you anything.

You might want to check /Applications/Utilities/Console.app to see if
apache logged any errors.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: gmail phishing warnings

2011-12-22 Thread Brandon Allbery
On Thu, Dec 22, 2011 at 11:52, Arno Hautala  wrote:

> On Thu, Dec 22, 2011 at 11:22, Scott Webster  wrote:
> > On Thu, Dec 22, 2011 at 11:17 AM, Phil Dobbin 
> wrote:
> >> No. Nothing has been flagged about Mac Ports...
> >
> > Well, that is weird.  Every time you send a message to the list I get
> > the big warning telling me you are trying to phish me.  It isn't just
> > me who sees this...
>
> Using the web interface for Gmail, I'm not seeing any warning about
> Phil's messages (and I don't recall seeing this recently on other
> messages). Is there a way to disable this warning that I, and others,
> may have set in Gmail?
>

It used to be possible to disable the phish warning completely in Settings,
but I don't see that option any more.

Though, the alum.wpi address that I use forwards everything to my
> Gmail account. Looking at the message source seems to indicate that
> WPI is adding their own SPF and DKIM information. I wonder if that's a
> flaw or if there's an exception that recognizes list mail or MacPorts
> specifically.


For what it's worth, your messages don't show the phish warning but other
people's messages do.  This suggests it's as previously mentioned, that
messages from an SPI/DKIM enabled address that are resent by the MacPorts
list (which isn't so enabled) are triggering it.

That said, the DKIM audit information in messages that get the phish
warning is indistinguishable from that in messages that don't!  It also
shows the correct DKIM information is in fact being looked up.

I first noticed this back when gmail enabled the phish warning, and in fact
filed a bug (which was apparently ignored) noting that they should really
have a way to deal with valid mailing lists.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: [py24-twisted-web2] fails miserable

2011-12-29 Thread Brandon Allbery
On Thu, Dec 29, 2011 at 13:34, Oskar Dahl  wrote:

> I'm using OS X 10.7.2 Lion with gcc 4.2.1 (5658)
>
> So, what's the easiest/fastest way to just modify cfsupport.c and try
> again?
>

The easiest way to get going again is probably "sudo port install
py24-twisted-web2 configure.compiler=llvm-gcc-4.2".  If it works, file a
ticket in the MacPorts Trac requesting that the port be switched to using
llvm-gcc-4.2 instead of clang.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: [py24-twisted-web2] fails miserable

2011-12-30 Thread Brandon Allbery
On Fri, Dec 30, 2011 at 18:24, Lawrence Velázquez  wrote:

> On Dec 30, 2011, at 12:32 a.m., Brandon Allbery wrote:
>
> > The easiest way to get going again is probably "sudo port install
> py24-twisted-web2 configure.compiler=llvm-gcc-4.2".  If it works, file a
> ticket in the MacPorts Trac requesting that the port be switched to using
> llvm-gcc-4.2 instead of clang.
>
> I have the same problem installing py-twisted (which is the culprit here),
> and passing different values for configure.compiler changes nothing; it
> won't stop using clang.
>

Yeh, see my most recent message; it's getting the compiler from the
configuration information installed with Python, so the requisite python
port would need to be rebuilt with that configuration option.  I expect the
same kind of thing can come up with various Perl, Ruby, etc. extensions.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: System Tools and UNIX Development in Xcode 4.2

2011-12-31 Thread Brandon Allbery
On Sat, Dec 31, 2011 at 21:17, Ian Wadham  wrote:

> At http://www.macports.org/install.php, re Xcode,  it says:
>
> "Ensure that the optional components for command line development are
> installed
> ("UNIX Development", plus "System Tools" in newer versions, or "Command
> Line
> Support" in older ones)."
>
> After upgrading to Lion 4.7.2 and downloading Xcode 4.2.1 from the App
> Store, I could
> not find those components anywhere in Lion and Xcode, but my uninstall and
> rebuild
> of all my ports went OK and so did the development work I do at the
> command line.
>

Lion and Xcode 4 both install their respective formerly-optional components
by default now, and neither has any user-visible components; this is a
consequence of their being packaged as online-only App Store-compatible
"lumps".  MacPorts' documentation is lagging a bit behind changes to
itself, OS X, and Xcode.  (Feel free to submit documentation patches; the
lag is a consequence of being an as-time-allows community effort, and
probably of dev types generally being not so good with documenting.)

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Clang, GCC and the kdegames4 port

2011-12-31 Thread Brandon Allbery
On Sat, Dec 31, 2011 at 23:13, Ian Wadham  wrote:

>  - Both errors will get fixed, but not until KDE SC 4.8.1 at least.  The
> release
>   of KDE SC 4.8.0 is in its last stages ATM.
>
>  - There will be no further releases of KDE SC 4.7.  Release 4.7.4 is the
> last.
>   The KDE release guys have decided that.
>
>  - So, if the port of kdegames4 @4.7.4 or @4.8.0 is to compile with Clang
> within
>   the next six months or so, it will be necessary to patch it at the
> Macports end.
>   I can provide the patch, if required.
>
> I thought I should tell the list the above for general info re the
> transition from GCC
> to Clang.  It looks as though Clang does a more thorough job in some ways.
>
> Should I submit a ticket and include the patch?
>

I *think* the prevailing notion is that, if upstream plans to address it,
we just switch to llvm-gcc-4.2 (that's how I've been making KDE stuff build
in general here) in the Portfile and wait for upstream to catch up, rather
than patch locally and have to remove the patches later (which is more
intrusive and labor-intensive).

And yes, clang is much more strict about errors, and also has better error
messages.  This is a good thing.  It's just that MacPorts is about making
stuff work on OS X with the minimum reasonable effort, not so much about
maintaining its own "forks" of stuff (regardless of how temporary).

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: problem with mysql 5 install and configuration

2012-01-05 Thread Brandon Allbery
On Thu, Jan 5, 2012 at 06:50, Érico  wrote:

> 2. add 2 symb links
> sudo ln -s /opt/local/var/run/mysql5/mysqld.sock /temp/mysql.sock
>

/tmp/mysql.sock, I hope (but if you need to do this then something is
misconfigured).


> is there any specific content for the :
> /opt/local/var/run/mysql5/mysqld.sock  ?
>
> I was creating a empty file with :
> $ touch /opt/local/var/run/mysql5/mysqld.sock
>

Don't do this.  It's an AF_UNIX socket, not a normal file; creating a
normal file would likely prevent the server from starting.  It should not
exist before starting the server.


> also I have edited the /opt/local/etc/mysql5/my.cnf file with the content
> :
>
> mysqld_safe]
> socket =/temp/mysql.sock
>
> [mysqld]
> socket = /temp/mysql.sock
>

Again, (1) /tmp not /temp (2) and you should not need to do this, and might
need to doublecheck the configuration of everything that wants to connect
to the database if you *do* do it.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: How can I control the Perl version I want?

2012-01-05 Thread Brandon Allbery
On Thu, Jan 5, 2012 at 13:52, Rodolfo Aramayo  wrote:

> So I did what you guys suggested and issued the command:
>
> port install perl5 perl5.14 @5.14.1_2+threads
>

port install perl5 +perl5.14

The + there is not optional; it tells the perl5 port to install the variant
(see "port variants perl5") named "perl5.14", which sets that to be the
default Perl.

What you did told it to reinstall perl5 (which woul be a no-op as it's
already installed) and then install a specific version and variant of the
perl5.14 port.  This is not going to do what you intended.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Where is gas?

2012-01-07 Thread Brandon Allbery
On Fri, Jan 6, 2012 at 21:15, Watson Ladd  wrote:

> I'm on a Mac OS X 10.6.8 machine, and need a more modern assembler.
> Installing gcc4.6 doesn't seem to have given me a more modern gas, and
> neither has installing binuitils. I wouldn't be concerned if it wasn't for
> the fact that I need to compile some assembler that takes advantage of new
> features which my Apple provided install seems to be missing.
>

You'll have to find some other way to get it; gas isn't capable of
producing valid Mach-O object files.

https://trac.macports.org/ticket/22681 has some details and links to more
information.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: problem with mysql 5 install and configuration

2012-01-08 Thread Brandon Allbery
On Sun, Jan 8, 2012 at 08:52, Érico  wrote:

> you mean the id was already in the OS ?
>
> even if we don't use mysql ? or do I need to add the user manually like in
> linux OS or should I use dscl application for it ?
>

OS X ships with a number of things that it uses in the background, (some
version of) mysql being one of them.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: problem with mysql 5 install and configuration

2012-01-08 Thread Brandon Allbery
On Sun, Jan 8, 2012 at 09:33, Érico  wrote:

> 2. my sql id ships already in the OS ? I think not, right ?
>

As I said in my previous message, it's already there because OS X comes
with mysql.


> Was that necessary ? or when installing postgres mcaports also installs a
> postgres id ?
>

Found in the postgresql90-server Portfile:

destroot {
addgroup ${dbgrp}
set gid [existsgroup ${dbgrp}]
adduser ${dbuser} shell=/bin/sh gid=${gid} \
home=${prefix}/var/db/postgresql90 \
realname=PostgreSQL-90\ Server
xinstall -m 755 -d ${destroot}${logdir}
system "touch ${destroot}${logdir}/postgres.log"
system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
}

So the port added it for you already.

8. back to mysql ... I have uninstalled mysql from my mac :
> bash-3.2# port uninstall mysql5-server @5.1.60_0
> bash-3.2# port uninstall mysql5 @5.1.60_0
>
> bash-3.2# port clean --all mysql5-server @5.1.60_0
> bash-3.2# port clean --all mysql5 @5.1.60_0
>
> I can see _mysql id is still in /etc/group file :
> _mysql:*:74:
>
> but it is not in /etc/passwd 
>
> How can I fix my environment ?
>

It may not need fixing.  Try "dscl . read /Users/_mysql".

Remember, on OS X, /etc/passwd and /etc/group are only used during boot
before directoryservicesd (or opendirectoryd) is running.

If it *does* need to be re-added for some reason, mysql5-server's Portfile
has code similar to what I pasted above from postgresql90-server, so it
will recreate the user if necessary.  Still, ideally you should probably
not remove service users/groups; it's not like they slow the system down or
something, and if there's no process under that uid the only way it can be
accessed is via root so there's no significant security aspect to leaving
it around.

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: problem with mysql 5 install and configuration

2012-01-08 Thread Brandon Allbery
On Sun, Jan 8, 2012 at 20:12, Ryan Schmidt  wrote:

> On Jan 8, 2012, at 08:45, Brandon Allbery wrote:
> > On Sun, Jan 8, 2012 at 08:52, Érico  wrote:
> > you mean the id was already in the OS ?
> >
> > even if we don't use mysql ? or do I need to add the user manually like
> in linux OS or should I use dscl application for it ?
> >
> > OS X ships with a number of things that it uses in the background, (some
> version of) mysql being one of them.
>
> OS X does not include MySQL nor use it for anything.
>

Could you explain /System/Library/CoreServices/DatabaseEvents.app (and
Database Events.sdef in AppleScript Editor), which appear to be
MySQL-related, then?

-- 
brandon s allbery  allber...@gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


  1   2   3   4   5   6   7   8   9   10   >