Re: [gentoo-alt] [Solaris] Gentoo Prefix Stage 3 package forSolaris5.10

2009-11-13 Thread zAfi
2009/11/13 Fabian Groffen grob...@gentoo.org:
 Do we have a wiki somewhere, such that we can put this up?  I feel this
 efforts (that may be very useful to many) is going to get lost easily
 this way...

[cut]
why not put this on gentoo-wiki? [1]

bye

[1] http://en.gentoo-wiki.com/



Re: [gentoo-alt] init.d script for apache?

2009-10-21 Thread zAfi
2009/10/20 Piotr paj...@gmail.com:
 Thanks!
 Your script throws me an error (wrong apache user) but this is just a
that's because I start it as root (with sudo), so it can change to the
default OS X apache user (www). Forgot that one, sry...

 configuration issue :)
 Another question: Did you hear anything about port init.d/conf mechanise to
 prefixed gentoo?



Re: [gentoo-alt] init.d script for apache?

2009-10-20 Thread zAfi
yes: copy the following script (stolen shamelessly from macports) to
$prefix/etc/init.d/ and save it as apache2ctl
Then simply change the path to this script in $prefix/usr/sbin/apache2ctl

Keep in mind that your conf.d/apache2 file will be worthless, so you
have to pass all your apache2 options in that script.

## START

#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the License); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Apache control script designed to allow an easy command line interface
# to controlling Apache.  Written by Marc Slemko, 1997/08/23
#
# The exit codes returned are:
#   XXX this doc is no longer correct now that the interesting
#   XXX functions are handled by httpd
#   0 - operation completed successfully
#   1 -
#   2 - usage error
#   3 - httpd could not be started
#   4 - httpd could not be stopped
#   5 - httpd could not be started during a restart
#   6 - httpd could not be restarted during a restart
#   7 - httpd could not be restarted during a graceful restart
#   8 - configuration syntax error
#
# When multiple arguments are given, only the error from the _last_
# one is reported.  Run apachectl help for usage info
#
ARGV=$@
#
#  START CONFIGURATION SECTION  
#   
#
# the path to your httpd binary, including options if necessary
HTTPD='${EPREFIX}/usr/sbin/apache2 -D INFO -D LANGUAGE -D PHP5'
#
# a command that outputs a formatted text version of the HTML at the
# url given on the command line.  Designed for lynx, however other
# programs may work.
LYNX=lynx -dump
#
# the URL to your server's mod_status status page.  If you do not
# have one, then status and fullstatus will not work.
STATUSURL=http://main.phoebe2:8080/server-info;
#
# Set this variable to a command that increases the maximum
# number of file descriptors allowed per child process. This is
# critical for configurations that use many file descriptors,
# such as mass vhosting, or a multithreaded server.
ULIMIT_MAX_FILES=
#   
#    END CONFIGURATION SECTION  

# Set the maximum number of file descriptors allowed per child process.
if [ x$ULIMIT_MAX_FILES != x ] ; then
$ULIMIT_MAX_FILES
fi

ERROR=0
if [ x$ARGV = x ] ; then
ARGV=-h
fi

case $ARGV in
start|stop|restart|graceful|graceful-stop)
$HTTPD -k $ARGV
ERROR=$?
;;
startssl|sslstart|start-SSL)
echo The startssl option is no longer supported.
echo Please edit httpd.conf to include the SSL configuration settings
echo and then use apachectl start.
ERROR=2
;;
configtest)
$HTTPD -t
ERROR=$?
;;
status)
$LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
;;
fullstatus)
$LYNX $STATUSURL
;;
*)
$HTTPD $ARGV
ERROR=$?
esac

exit $ERROR

## END

Good luck! ;)

Btw, does anyone have a better solution? ;)

2009/10/20 Piotr paj...@gmail.com:
 Hello.

 Im just installed gentoo prefixed on my mac os x... Emerge apache, and
 already i have problem which i don't know how to resolve..
 There's no any init.d/ script.. so i tried to run apache by apache2ctl:
 piotrcich...@macbook ~ $ ./gentoo/usr/sbin/apache2ctl start
 ./gentoo/usr/sbin/apache2ctl: line 2:
 /Users/piotrcichosz/gentoo/etc/init.d/apache2: No such file or directory
 ./gentoo/usr/sbin/apache2ctl: line 2: exec:
 /Users/piotrcichosz/gentoo/etc/init.d/apache2: cannot execute: No such file
 or directory

 I googled for it but can't find any solution.. Do you have some idea maybe?
 Regards.



Re: [gentoo-alt] gcc-4.4.1 fails with invalid install_name

2009-10-16 Thread zAfi
hm, I did ran into that problem as well, but I've been told that it
was mysql related (wanted to pull gcc-4.1.1). It got fixed 2 days ago
iirc, sync again and retry?

bye,
zAfi

2009/10/16 Aaron Wilson tall...@gmail.com:
 I've successfully bootstrapped my Snow Leopard machine running the 64-bit
 kernel. Thanks go out to all who made this possible.

 I've been having trouble attempting to install gcc-4.4.1. The emerge

 [ebuild  N    ] sys-devel/gcc-4.4.1  USE=fortran objc objc++ openmp
 (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk
 (-hardened) -ip28 -ip32r10k (-libffi) -mudflap (-multilib) -multislot (-n32)
 (-n64) -nls -nocxx -nptl (-objc-gc) -test -vanilla 0 kB

 results in the following errors just before installing to the prefix. Any
 help would be greatly appreciated.

 test -z
 /Users/wilson/Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.4.1/include
 || mkdir -p --
 /Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/image//Users/wilson/Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.4.1/include
  /Users/wilson/Library/Gentoo/usr/bin/install -c -m 644 'omp.h'
 '/Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/image//Users/wilson/Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.4.1/include/omp.h'
 make[4]: Leaving directory
 `/Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/x86_64-apple-darwin10/libgomp'
 make[3]: Leaving directory
 `/Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/x86_64-apple-darwin10/libgomp'
 make[2]: Leaving directory
 `/Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/work/build/x86_64-apple-darwin10/libgomp'
 make[1]: Leaving directory
 `/Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/work/build'
 /Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/temp/environment:
 line 2439: pushd: /usr/lib/gcc/x86_64-apple-darwin10/4.4.1/.: No such file
 or directory
 sed: can't read
 .//Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/image/Users/wilson/Library/Gentoo/*.la:
 No such file or directory
 find: `.//usr/lib*': No such file or directory
 sed: can't read
 .//Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/image/Users/wilson/Library/Gentoo/*.la:
 No such file or directory
 /Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/temp/environment:
 line 2446: popd: directory stack empty
 find:
 `/Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/image/Users/wilson/Library/Gentoo//usr/lib/pkgconfig/':
 No such file or directory
 prepinfo:
 '/Users/wilson/Library/Gentoo/usr/share/gcc-data/x86_64-apple-darwin10/4.4.1/info'
 does not exist!
  * Adjusting to prefix
  *   fix_libtool_files.sh ...
                       [ ok ]
  *   fixlafiles.awk-no_gcc_la ...
                       [ ok ]
  *   fixlafiles.awk ...
                       [ ok ]
 Completed installing gcc-4.4.1 into
 /Users/wilson/Library/Gentoo/var/tmp/portage/sys-devel/gcc-4.4.1/image/Users/wilson/Library/Gentoo/

 ecompressdir: bzip2 -9
 /Users/wilson/Library/Gentoo/usr/share/gcc-data/x86_64-apple-darwin10/4.4.1/man
  * prefixing shebang of
 Users/wilson/Library/Gentoo/usr/share/gcc-data/x86_64-apple-darwin10/4.4.1/c89
  * prefixing shebang of
 Users/wilson/Library/Gentoo/usr/share/gcc-data/x86_64-apple-darwin10/4.4.1/c99
  * prefixing shebang of
 Users/wilson/Library/Gentoo/usr/x86_64-apple-darwin10/gcc-bin/4.4.1/gccbug
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.4.1/libgfortran.3.dylib
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.4.1/libgomp.1.dylib
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.4.1/libobjc-gnu.2.dylib
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.4.1/libstdc++.6.dylib
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/libexec/gcc/x86_64-apple-darwin10/4.4.1/cc1
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/libexec/gcc/x86_64-apple-darwin10/4.4.1/cc1obj
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/libexec/gcc/x86_64-apple-darwin10/4.4.1/cc1objplus
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/libexec/gcc/x86_64-apple-darwin10/4.4.1/cc1plus
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/libexec/gcc/x86_64-apple-darwin10/4.4.1/collect2
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/libexec/gcc/x86_64-apple-darwin10/4.4.1/f951
  * QA Notice: invalid reference to /libgcc_s.1.dylib in
 /Users/wilson/Library/Gentoo/usr/x86_64-apple

Re: [gentoo-alt] gcc-4.4.1 fails with invalid install_name

2009-10-16 Thread zAfi
2009/10/17 Aaron Wilson tall...@gmail.com:
 On Oct 16, 2009, at 11:37 AM, zAfi wrote:

 hm, I did ran into that problem as well, but I've been told that it
 was mysql related (wanted to pull gcc-4.1.1). It got fixed 2 days ago
 iirc, sync again and retry?

 bye,
 zAfi

 I synced this morning and I want gcc-4.4.1, although I'd settle for 4.3.3.
ah i c, sry 4 the misunderstanding, for me it was unwanted behaviour
and it was solved within the mysql ebuild.


 2009/10/16 Aaron Wilson tall...@gmail.com:


 I've been having trouble attempting to install gcc-4.4.1.

 This afternoon I remembered that I'd had this problem before with
 gcc-4.3.3-r2.

 http://bugs.gentoo.org/show_bug.cgi?id=265565

 where Fabian Groffen reports:

 I've finally fixed this.

 Sorry for the long wait.

 How was it fixed? Will it work with 4.4?

 Thanks,
 Aaron



bye,
zAfi



Re: [gentoo-alt] installing prefix on an external disk

2009-07-05 Thread zAfi
2009/7/6  mattmat...@mac.com:
 I was attempting to install prefix on an external disk and boot strapping
 with non absolute path fails.  on linux the disk usually shows up as sda or
 sdb, i could try to mount by UUID so its the same each time, or just mount
 to /mnt/prefix.  not sure how can do this on osx.  any suggestions ?
Use vifs [1], it should take standard /etc/fstab syntax (and mount it by UUID).

 my laptop doesnt have much space and i dont know how much life is left on
 the internal disk.

 matt

Good luck. ;)

zAfi

[1] 
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/vifs.8.html



Re: [gentoo-alt] Re: Launchd plists, anyone?

2009-04-28 Thread zAfi
Well, I like the idea as well, especially what Dirk suggested as this
would fit very well in the whole prefix approach and wouldn't require
that much patches imho. ;)

For your mysqld autostartup, simply create a com.mysql.mysqld.plist
file at /Library/LaunchDaemons with the following content (change to
your needs):
?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
keyGroupName/key
stringmysql/string
keyKeepAlive/key
true/
keyLabel/key
stringcom.mysql.mysqld/string
keyProgram/key
string/Users/*/Gentoo/usr/bin/mysqld_safe/string
keyUserName/key
string*USERNAME_here_under_which_the_process_should_run*/string
/dict
/plist

chmod 644 and chown root:wheel
Kudos to macports...

Another way would be to drop mysqld_safe into your autostart objects
in your system preferences...

bye

2009/4/28 Alexander Kellett a...@lypanov.net:
 sorry for the lame contentless reply... hope positive feedback is welcome.

 i like this idea specifically a lot, and in general the addition of
 start scripts (currently i'm just starting mysqld on the command line
 each time i reset my mac, which is quite frustrating).

 launchd is very blackboxish to me, while i know gentoo start up
 scripts well. maybe a hybrid approach could be found without too much
 code dup that is ideal for either?