Re: PHP Interactive Mode, phpsh

2012-01-08 Thread Aimelyne Mochiron
Hi David,

To enable PHP interactive mode, either readline or libedit must be compiled 
into the PHP binary. To do that, edit lang/php5's Makefile to add to 
CONFIGURE_ARGS either '--with-readline' or '--with-libedit' (the library you 
pick must be installed on your system).

Note that php -nm will list readline irrespective of whether you compiled it or 
libedit in; phpinfo() will report the correct configure command, however.

I'm afraid I can't help IRT phpsh, as I'm not familiar with it.

HTH,

AM

 Message: 2
 Date: Fri, 6 Jan 2012 04:25:00 -0800
 From: David Allen the.real.david.al...@gmail.com
 Subject: PHP Interactive Mode, phpsh
 To: freebsd-ports@freebsd.org
 Message-ID:
   CAFsxFVmmfGLGz3j3WdRsk21WoQVvkmLwd=yuqhp4eplgt4s...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 The Gods seem to be conspiring against me.  I'm flummoxed as to why I
 can't get php running in interactive mode (php -a).  Some relevant info:
 
php5-5.3.8  PHP Scripting Language
php5-extensions-1.5 A meta-port to install PHP extensions
php5-readline-5.3.8 The readline shared extension for php
python27-2.7.2_2An interpreted object-oriented programming language
 
 I tried doing an endrun around the problem by installing python in
 conjunction with the /devel/phpsh port.  That hasn't quite worked out
 either.
 
 Testing the installation of phpsh on a local build server:
 
$ phpsh
Starting php
Install pcntl to enable forking on every command.
type 'h' or 'help' to see instructions  features
php echo Hello world\n;
Hello world
 
php d array_merge
 
Traceback (most recent call last):
File /usr/local/bin/phpsh, line 127, in module
t_c_ret = s.try_command(line)
File /usr/local/lib/python2.7/site-packages/phpsh/__init__.py, line
 909, in try_command
import manual
File /usr/local/lib/python2.7/site-packages/phpsh/manual.py, line 4,
 in module
from sqlite3 import dbapi2 as sqlite
File /usr/local/lib/python2.7/sqlite3/__init__.py, line 24, in
 module
from dbapi2 import *
File /usr/local/lib/python2.7/sqlite3/dbapi2.py, line 27, in module
from _sqlite3 import *
ImportError: No module named _sqlite3
 
[ At this point phpsh exits ]
 
 Building a phpsh package fails:
 
===  Building package for phpsh-20110513
tar: etc/phpsh/config.sample: Cannot stat: No such file or directory
tar: etc/phpsh/php_manual.db: Cannot stat: No such file or directory
tar: etc/phpsh/rc.php: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** Error code 1
 
Stop in /usr/ports/devel/phpsh.
*** Error code 1
 
Stop in /usr/ports/devel/phpsh.
 
 Running 'pkg_info -L' reveals the missing files being installed into
 /usr/local/etc/phpsh, but no such directory (or files) exists.
 
 And just for fun, the results after installing phpsh on Mac OS X (where
 php interactive mode doesn't work either):
 
Warning: require_once(/opt/local/etc/phpsh/rc.php): failed to open
stream: No such file or directory in
 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/phpsh/phpsh.php
 
on line 49
 
Fatal error: require_once(): Failed opening required
'/opt/local/etc/phpsh/rc.php' (include_path='.:') in
 
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/phpsh/phpsh.php
 
on line 49
 
 Could someone shed some light as to why php interactive mode doesn't work
 with FreeBSD?  Or alternatively, how to fix my phpsh installation and get
 a package made?
 
 Thanks!
 
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


anybody close to Bristol, UK, wants to give a talk on FreeBSD and numerical analysis to UG students?

2012-01-08 Thread Anton Shterenlikht
Introduction:

I'll be teaching computer based modelling to
year 1 mechanical engineering students. The
unit is based around Matlab, which is not
ideal, in my opinion, but is beyond my control.
The unit is pretty low level - I have to start
from loops and conditional statements, but
ultimately I want them to be able to tackle
numerical solution of algebraic and diff. equations
and a bit of graphics.

I want to complement Matlab by several lectures
giving students a broader view of numerical
computing and related subjects. For example,
I'll probably talk about vector
vs raster graphics and related software,
precision of floating point calculations,
intro to latex, importance of standards in
software, etc.

What I'm looking for:

I'd like to have one lecture on FreeBSD and
what it can do for numerical analysis. I'm
looking for somebody who can come to Bristol
on a Tuesday between 31-FEB-2012 and 20-MAR-2012
and give a 50 min lecture from 1400 to 1450
to about 120-150 students. The exact
details of the talk are not that important. Some
of them would've heard of linux, probably not
of FreeBSD. Some of them would've used macs, but
unlikely any software beyound MS office.
The talk can just raise the students' awareness that
numerical analysis tools available via FreeBSD
ports are an alternative to Matlab.

I'll pay the travel expences (have to double check
with the finance office) but cannot pay for the
talk itself.

If you are interested, or have another idea,
please get in touch directly.

Thanks
Anton 

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


x11-fm/thunar Build error

2012-01-08 Thread Leslie Jensen



checking for gmsgfmt... /usr/local/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl = 5.8.1... 5.14.2
checking for XML::Parser... configure: error: XML::Parser perl module is 
required for intltool

===  Script configure failed unexpectedly.
Please report the problem to x...@freebsd.org [maintainer] and attach the
/usr/ports/x11-fm/thunar/work/Thunar-1.3.0/config.log including the output
of the failure of your make command. Also, it might be a good idea to 
provide

an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/x11-fm/thunar.
*** Error code 1

Stop in /usr/ports/x11-fm/thunar.

=== make failed for x11-fm/thunar
=== Aborting update


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Thunar configure 1.3.0, which was
generated by GNU Autoconf 2.66.  Invocation command line was

  $ ./configure --disable-debug --enable-gio-unix --disable-gudev --enable-dbus 
--enable-nls --enable-notifications 
--with-html-dir=/usr/local/share/gtk-doc/html --enable-apr-plugin 
--disable-exif --enable-sbr-plugin --disable-pcre --enable-tpa-plugin 
--enable-uca-plugin --enable-wallpaper-plugin --enable-startup-notification 
--x-libraries=/usr/local/lib --x-includes=/usr/local/include 
--prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ 
--build=amd64-portbld-freebsd8.2

## - ##
## Platform. ##
## - ##

hostname = bljbsd01.no-ip.org
uname -m = amd64
uname -r = 8.2-RELEASE-p6
uname -s = FreeBSD
uname -v = FreeBSD 8.2-RELEASE-p6 #1: Thu Jan  5 09:12:38 CET 2012 
r...@bljbsd01.no-ip.org:/usr/obj/usr/src/sys/GENERIC 

/usr/bin/uname -p = amd64
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /usr/local/sbin


## --- ##
## Core tests. ##
## --- ##

configure:2668: checking build system type
configure:2682: result: amd64-portbld-freebsd8.2
configure:2702: checking host system type
configure:2715: result: amd64-portbld-freebsd8.2
configure:2735: checking target system type
configure:2748: result: amd64-portbld-freebsd8.2
configure:2792: checking for a BSD-compatible install
configure:2860: result: /usr/bin/install -c -o root -g wheel
configure:2871: checking whether build environment is sane
configure:2921: result: yes
configure:3062: checking for a thread-safe mkdir -p
configure:3101: result: /usr/local/bin/gmkdir -p
configure:3114: checking for gawk
configure:3141: result: /usr/bin/awk
configure:3152: checking whether gmake sets $(MAKE)
configure:3174: result: yes
configure:3249: checking how to create a ustar tar archive
configure:3262: tar --version
bsdtar 2.7.0 - libarchive 2.7.0
configure:3265: $? = 0
configure:3305: tardir=conftest.dir  eval tar --format=ustar -chf - $tardir 
conftest.tar
configure:3308: $? = 0
configure:3312: tar -xf - conftest.tar
configure:3315: $? = 0
configure:3328: result: gnutar
configure:3338: checking whether to enable maintainer-specific portions of 
Makefiles
configure:3347: result: no
configure:3385: checking for style of include used by gmake
configure:3413: result: GNU
configure:3483: checking for gcc
configure:3510: result: cc
configure:3739: checking for C compiler version
configure:3748: cc --version 5
cc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3759: $? = 0
configure:3748: cc -v 5
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
configure:3759: $? = 0
configure:3748: cc -V 5
cc: '-V' option must have argument
configure:3759: $? = 1
configure:3748: cc -qversion 5
cc: unrecognized option '-qversion'
cc: No input files specified
configure:3759: $? = 1
configure:3779: checking whether the C compiler works
configure:3801: cc -O2 -pipe -fno-strict-aliasing  -I/usr/local/include 
-L/usr/local/lib  conftest.c  5
configure:3805: $? = 0
configure:3853: result: yes
configure:3856: checking for C compiler default output file name
configure:3858: result: a.out
configure:3864: checking for suffix of executables
configure:3871: cc -o conftest -O2 -pipe -fno-strict-aliasing  
-I/usr/local/include -L/usr/local/lib  conftest.c  5
configure:3875: $? = 0
configure:3897: result: 
configure:3919: checking whether we are cross compiling
configure:3927: cc -o conftest -O2 -pipe -fno-strict-aliasing  
-I/usr/local/include -L/usr/local/lib  conftest.c  5
configure:3931: $? = 0

How to handle config files

2012-01-08 Thread Martin Kropfinger
Hi there!

The porters handbook describes a way to handle config files:

http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html

It is recommended to do it this way for keeping changed files after
deinstallation on the system. But the example is not really clear to me.

What does this line do:
@exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi

Nothing is said about those variables... %D (which seems to be
%%PREFIX%%) and %F or %B.

Can anyone give me some help?

Thanx a lot!
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-fm/thunar Build error

2012-01-08 Thread Olivier Duchateau
1. Check if p5-XML-Parser is installed
ls /var/db/pkg | grep XML-Parser

2. Why try to install Thunar v1.3.0, it's development version, not
production ready. The latest stable version is better imho.

Where do you find this port ?

2012/1/8 Leslie Jensen les...@eskk.nu:


 checking for gmsgfmt... /usr/local/bin/msgfmt
 checking for perl... /usr/bin/perl
 checking for perl = 5.8.1... 5.14.2
 checking for XML::Parser... configure: error: XML::Parser perl module is
 required for intltool
 ===  Script configure failed unexpectedly.
 Please report the problem to x...@freebsd.org [maintainer] and attach the
 /usr/ports/x11-fm/thunar/work/Thunar-1.3.0/config.log including the output
 of the failure of your make command. Also, it might be a good idea to
 provide
 an overview of all packages installed on your system (e.g. an `ls
 /var/db/pkg`).
 *** Error code 1

 Stop in /usr/ports/x11-fm/thunar.
 *** Error code 1

 Stop in /usr/ports/x11-fm/thunar.

 === make failed for x11-fm/thunar
 === Aborting update



 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org



-- 
olivier
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: How to handle config files

2012-01-08 Thread Julien Laffaye

On 1/8/2012 1:59 PM, Martin Kropfinger wrote:

Hi there!

The porters handbook describes a way to handle config files:

http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html

It is recommended to do it this way for keeping changed files after
deinstallation on the system. But the example is not really clear to me.

What does this line do:
@exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi

Nothing is said about those variables... %D (which seems to be
%%PREFIX%%) and %F or %B.

Have a look at pkg_create(1) manpage ;)

Can anyone give me some help?

Thanx a lot!

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: How to handle config files

2012-01-08 Thread Chris Rees
On 8 January 2012 12:59, Martin Kropfinger free...@rakor-net.de wrote:
 Hi there!

 The porters handbook describes a way to handle config files:

 http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html

 It is recommended to do it this way for keeping changed files after
 deinstallation on the system. But the example is not really clear to me.

 What does this line do:
 @exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi

 Nothing is said about those variables... %D (which seems to be
 %%PREFIX%%) and %F or %B.

 Can anyone give me some help?

man pkg_create will tell you all about these variables :)

Chris
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: linux-f10-nss_ldap: my first port - be gentle :)

2012-01-08 Thread Alexander Leidinger
On Sat, 7 Jan 2012 20:31:04 + Chris Rees cr...@freebsd.org wrote:


 On 6 January 2012 21:16, Alexander Leidinger
 alexan...@leidinger.net wrote:
  The linux ports are a little bit special. They are binary ports and
  the GPL requires that we distribute the source too.
 
 Really? That's not how I read the GPL, nor its interpretation:
 
 http://www.gnu.org/licenses/gpl-faq.html#WhatDoesWrittenOfferValid

Let's rephrase it:

In a discussion with portmgr@, we decided to add the SRPMs to the linux
ports, and write code to let the port build cluster fetch the SRPMs
too. A normal build without PACKAGE_BUILDING defined should not fetch
the SRPMS. This way we make sure the distfiles for the linux binaries
are available on FreeBSD-project storage.

I do not know if the SPRMs are on the release media or not, but they
should be available somewhere on FreeBSD resources.

Bye,
Alexander.

-- 
http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org   netchild @ FreeBSD.org  : PGP ID = 72077137
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-fm/thunar Build error

2012-01-08 Thread Kevin Oberman
On Sun, Jan 8, 2012 at 3:30 AM, Leslie Jensen les...@eskk.nu wrote:



 checking for gmsgfmt... /usr/local/bin/msgfmt
 checking for perl... /usr/bin/perl
 checking for perl = 5.8.1... 5.14.2
 checking for XML::Parser... configure: error: XML::Parser perl module is
 required for intltool
 ===  Script configure failed unexpectedly.
 Please report the problem to x...@freebsd.org [maintainer] and attach the
 /usr/ports/x11-fm/thunar/**work/Thunar-1.3.0/config.log including the
 output
 of the failure of your make command. Also, it might be a good idea to
 provide
 an overview of all packages installed on your system (e.g. an `ls
 /var/db/pkg`).
 *** Error code 1

 Stop in /usr/ports/x11-fm/thunar.
 *** Error code 1

 Stop in /usr/ports/x11-fm/thunar.

 === make failed for x11-fm/thunar
 === Aborting update

 Assuming p5-XML-Parser is installed, re-install it. While I don't
understand why, several times I have gotten this error on various ports and
simply re-installing the port seems to fix it.
-- 
R. Kevin Oberman, Network Engineer
E-mail: kob6...@gmail.com
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-fm/thunar Build error

2012-01-08 Thread Chris Rees
On 8 January 2012 17:47, Kevin Oberman kob6...@gmail.com wrote:
 On Sun, Jan 8, 2012 at 3:30 AM, Leslie Jensen les...@eskk.nu wrote:



 checking for gmsgfmt... /usr/local/bin/msgfmt
 checking for perl... /usr/bin/perl
 checking for perl = 5.8.1... 5.14.2
 checking for XML::Parser... configure: error: XML::Parser perl module is
 required for intltool
 ===  Script configure failed unexpectedly.
 Please report the problem to x...@freebsd.org [maintainer] and attach the
 /usr/ports/x11-fm/thunar/**work/Thunar-1.3.0/config.log including the
 output
 of the failure of your make command. Also, it might be a good idea to
 provide
 an overview of all packages installed on your system (e.g. an `ls
 /var/db/pkg`).
 *** Error code 1

 Stop in /usr/ports/x11-fm/thunar.
 *** Error code 1

 Stop in /usr/ports/x11-fm/thunar.

 === make failed for x11-fm/thunar
 === Aborting update

 Assuming p5-XML-Parser is installed, re-install it. While I don't
 understand why, several times I have gotten this error on various ports and
 simply re-installing the port seems to fix it.

Did you update your perl without reinstalling p5-\*?

Chris
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-fm/thunar Build error

2012-01-08 Thread Kevin Oberman
On Sun, Jan 8, 2012 at 10:24 AM, Chris Rees cr...@freebsd.org wrote:

 On 8 January 2012 17:47, Kevin Oberman kob6...@gmail.com wrote:
  On Sun, Jan 8, 2012 at 3:30 AM, Leslie Jensen les...@eskk.nu wrote:
 
 
 
  checking for gmsgfmt... /usr/local/bin/msgfmt
  checking for perl... /usr/bin/perl
  checking for perl = 5.8.1... 5.14.2
  checking for XML::Parser... configure: error: XML::Parser perl module is
  required for intltool
  ===  Script configure failed unexpectedly.
  Please report the problem to x...@freebsd.org [maintainer] and attach
 the
  /usr/ports/x11-fm/thunar/**work/Thunar-1.3.0/config.log including the
  output
  of the failure of your make command. Also, it might be a good idea to
  provide
  an overview of all packages installed on your system (e.g. an `ls
  /var/db/pkg`).
  *** Error code 1
 
  Stop in /usr/ports/x11-fm/thunar.
  *** Error code 1
 
  Stop in /usr/ports/x11-fm/thunar.
 
  === make failed for x11-fm/thunar
  === Aborting update
 
  Assuming p5-XML-Parser is installed, re-install it. While I don't
  understand why, several times I have gotten this error on various ports
 and
  simply re-installing the port seems to fix it.

 Did you update your perl without reinstalling p5-\*?


Nope. I always either run the after-update script or reinstall ports
dependent on perl and make sure that the version-specific directories are
empty, depending on what /usr/ports/UPDATING says to do. I've hit the
problem with p5-XML-Parse on several occasions, on various systems. I'll
admit that it was easier to re-install then to try to track down what was
actually failing.
-- 
R. Kevin Oberman, Network Engineer
E-mail: kob6...@gmail.com
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


x11/avant-window-navigator-gnome-0.3.2.1_6 build error

2012-01-08 Thread Radek Krejča
Hi, I have problem with building this port.

Making all in default-theme
gmake[3]: Entering directory 
`/usr/ports/x11/avant-window-navigator-gnome/work/avant-window-navigator-0.3.2.1/data/default-theme'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory 
`/usr/ports/x11/avant-window-navigator-gnome/work/avant-window-navigator-0.3.2.1/data/default-theme'
gmake[3]: Entering directory 
`/usr/ports/x11/avant-window-navigator-gnome/work/avant-window-navigator-0.3.2.1/data'
LC_ALL=C /usr/local/bin/intltool-merge -d -u -c ../po/.intltool-merge-cache 
../po avant-window-navigator.desktop.in avant-window-navigator.desktop
../data/awn-schema-to-gconf awn.schema-ini awn.schemas.in
env: python: No such file or directory
gmake[3]: *** [awn.schemas.in] Error 127
gmake[3]: *** Waiting for unfinished jobs
Found cached translation database
Merging translations into avant-window-navigator.desktop.
gmake[3]: Leaving directory 
`/usr/ports/x11/avant-window-navigator-gnome/work/avant-window-navigator-0.3.2.1/data'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/x11/avant-window-navigator-gnome/work/avant-window-navigator-0.3.2.1/data'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/x11/avant-window-navigator-gnome/work/avant-window-navigator-0.3.2.1'
gmake: *** [all] Error 2
*** Error code 1


pkg_info | grep python
compizconfig-python-0.8.4_2 Python bindings for the compizconfig library
py27-telepathy-python-0.15.19_1 Python bindings for the Telepathy framework
py27-xdg-0.19   A python library to access freedesktop.org standards
python27-2.7.2_3An interpreted object-oriented programming language

8.2-RELEASE-p4 amd64

Where could be a problem?

Thank you - Radek___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11/avant-window-navigator-gnome-0.3.2.1_6 build error

2012-01-08 Thread Ruslan Mahmatkhanov

Radek Krejča wrote on 09.01.2012 00:12:

Hi, I have problem with building this port.

env: python: No such file or directory
gmake[3]: *** [awn.schemas.in] Error 127
gmake[3]: *** Waiting for unfinished jobs


Builds just fine here. Looks like something is broken with your python 
installation. What is your output for this commands?

1. which python
2. python -V
3. /usr/bin/env python -V

--
Regards,
Ruslan

Tinderboxing kills... the drives.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


[patch] Problem building www/uwsgi on FreeBSD 9

2012-01-08 Thread Maxim Khitrov
Hi all,

I'm not sure whether this is a FreeBSD or uwsgi problem, but the
current port (uwsgi 1.0) isn't compiling on FreeBSD 9.0-RELEASE amd64
for the following reasons:

1. In uwsgiconfig.py:534 uwsgi checks for the existence of
sys/capability.h. This header isn't present on my 7.x or 8.x systems,
but it is there in FreeBSD 9.

2. If the check succeeds, UWSGI_CAP is defined for compilation.

3. In uwsgi.h:1169 the presence of UWSGI_CAP causes cap_value_t
*cap; to be defined.

4. The FreeBSD version of sys/capability.h does not define cap_value_t
(which seems to be a simple int typedef on Linux).

The net effect of this is a long series of errors when compiling utils.c:

---
In file included from utils.c:2:
uwsgi.h:1169: error: expected specifier-qualifier-list before 'cap_value_t'
utils.c: In function 'inc_harakiri':
utils.c:93: error: 'struct uwsgi_server' has no member named 'master_process'
utils.c:94: error: 'struct uwsgi_server' has no member named 'workers'
utils.c:94: error: 'struct uwsgi_server' has no member named 'mywid'
utils.c:97: error: 'struct uwsgi_server' has no member named 'shared'
...
*** uWSGI compiling server core ***
[cc] utils.o
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/www/uwsgi.
---

Should sys/capability.h have a typedef for cap_value_t or should uwsgi
be patched not to define UWSGI_CAP on FreeBSD 9? The patch below fixes
the problem for me by removing UWSGI_CAP definition, but I'm not sure
what capability.h is used for, so maybe this isn't the right thing to
do.

- Max

--- uwsgiconfig.py.orig 2012-01-08 15:17:32.0 -0500
+++ uwsgiconfig.py  2012-01-08 15:20:06.0 -0500
@@ -531,7 +531,7 @@
 self.gcc_list.append('regexp')
 self.cflags.append(-DUWSGI_PCRE)

-if self.has_include('sys/capability.h'):
+if uwsgi_os != 'FreeBSD' and self.has_include('sys/capability.h'):
 self.cflags.append(-DUWSGI_CAP)
 self.libs.append('-lcap')
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


RE: x11/avant-window-navigator-gnome-0.3.2.1_6 build error

2012-01-08 Thread Radek Krejča
 Builds just fine here. Looks like something is broken with your python
 installation. What is your output for this commands?
 1. which python
 2. python -V
 3. /usr/bin/env python -V

Hi, thank you very much. I really have problem witch python instalation, I 
didnt check it before. 

After reinstall python is all right, thank you very much.

Radek

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


USE_GCC and CC=clang

2012-01-08 Thread Wesley Shields
I'm trying to fix a port which absolutely will not build with clang,
since clang does not support the gcc extension used by this port. I set
USE_GCC=4.2+, which is the lowest version of GCC which will work, but it
doesn't properly override CC=clang.

wxs@ack spamdyke % env CC=clang make test-gcc | grep -E ^(CC|USE_GCC)
USE_GCC=4.2+
CC=clang - CXX=c++ - CPP=cpp - CFLAGS=-O2 -pipe -fno-strict-aliasing
wxs@ack spamdyke % 

I understand this is probably an acceptable behavior, since if the user
sets CC=clang they are explicitly asking to build with clang. However,
in the case of a port known to not work with clang, and more importantly
not able to be fixed, I was hoping there was a knob I could set that
would forcible override any compiler related environment variables which
may be set. I didn't find one, so I came up with this quick (and poorly
tested) patch to do so.

The patch allows ports to set GCC_REQUIRED=yes which will forcible
override the environment variables. Maybe it makes sense to spit out a
warning message saying I know you asked me to use clang, but this port
is known to be broken with clang, and will never be fixed so I'm
altering your choice.

Here's the output with the patch applied:

wxs@ack spamdyke % env CC=clang make test-gcc | grep -E ^(CC|USE_GCC)
USE_GCC=4.2+
CC=gcc42 - CXX=g++42 - CPP=cpp42 - CFLAGS=-O2 -pipe
-Wl,-rpath=/usr/local/lib/gcc42 -fno-strict-aliasing
wxs@ack spamdyke % 

-- WXS
Index: bsd.gcc.mk
===
RCS file: /ncvs/ports/Mk/bsd.gcc.mk,v
retrieving revision 1.62
diff -u -r1.62 bsd.gcc.mk
--- bsd.gcc.mk	12 Nov 2011 22:03:55 -	1.62
+++ bsd.gcc.mk	9 Jan 2012 01:58:55 -
@@ -181,7 +181,7 @@
 # dependencies, CC, CXX, CPP, and flags.
 .for v in ${GCCVERSIONS}
 . if ${_USE_GCC} == ${_GCCVERSION_${v}_V}
-.  if ${OSVERSION}  ${_GCCVERSION_${v}_L} || ${OSVERSION}  ${_GCCVERSION_${v}_R}
+.  if ${OSVERSION}  ${_GCCVERSION_${v}_L} || ${OSVERSION}  ${_GCCVERSION_${v}_R} || defined(GCC_REQUIRED)
 V:=			${_GCCVERSION_${v}_V:S/.//}
 _GCC_BUILD_DEPENDS:=	gcc${V}
 _GCC_PORT_DEPENDS:=	gcc${V}
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

Re: linux-f10-nss_ldap: my first port - be gentle :)

2012-01-08 Thread Da Rock
All arguments aside, I've finally made headway - I think... its really 
frustrating for me because to me it seems a bit of a blackbox atm. I'm 
still trying to untangle the threads.


I fiddled and tweaked and finally got make to run. I then ran make 
-DPACKAGE_BUILD makesum and got a checksum (SHA256 too). All the while I 
had portlint run every now and again spitting out errors I couldn't 
quite translate. After makesum I ran it again and it said looks fine. 
- I called have slapped it silly! :) Bloody pretentious snot... could've 
been more helpful earlier


I just need to work out how to check the checksum against a linux 
source. I haven't found that yet.


Now my Makefile looks like this:

# New ports collection makefile for:linux-f10-nss_ldap
# Date created: 2012-01-04
# Whom: da porta 
port_maintai...@herveybayaustralia.com.au

#
# $FreeBSD$
#

PORTNAME=nss_ldap
PORTVERSION=0.01
CATEGORIES=net linux
MASTER_SITES=   
ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/testing/10/i386/ 
\

http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/10/Everything/i386/os/Packages/ 
\

http://herveybayaustralia.com.au/ports/distfiles/
PKGNAMEPREFIX=linux-f10-
DISTNAME=${PORTNAME}-${NSS_LDAP_VERSION}-${RPMVERSION}

MAINTAINER=port_maintai...@herveybayaustralia.com.au
COMMENT=RFC 2307 NSS Module (Linux Fedora 10)

LICENSE=GPLv2

NSS_LDAP_VERSION=264

USE_LINUX_RPM=  yes
USE_LINUX_PREFIX=yes
LINUX_DIST_VER= 10
RPMVERSION= 6.fc10
USE_LDCONFIG=yes

PLIST_FILES=usr/lib/libnss_ldap.so.2 usr/lib/libnss_ldap.so 
usr/lib/libnss_ldap-264.so
DOCSDIR=
${PREFIX}/usr/share/doc/${PKGNAMEPREFIX}-${PORTNAME}-${PORTVERSION}

PORTDOCS=COPYING NEWS README THANKS TODO
DESCR=${.CURDIR}/../${PORTNAME}/pkg-descr

post-extract:
.if !defined(WITH_PAM)
@if [ -f ${WRKDIR}/lib/security/pam_ldap.so ]; then \
rm -rf ${WRKDIR}/lib/
fi
@if [ -f 
${WRKDIR}/usr/share/doc/nss_ldap-264/COPYING.pam_ldap ]; then \

rm -rf ${WRKDIR}/usr/share/doc/nss_ldap-264/*.pam*
fi
.else
PLIST_FILES+=lib/security/pam_ldap.so \
usr/share/doc/nss_ldap-264/AUTHORS.pam_ldap \
usr/share/doc/nss_ldap-264/COPYING.LIB.pam_ldap \
usr/share/doc/nss_ldap-264/COPYING.pam_ldap \
usr/share/doc/nss_ldap-264/ChangeLog.pam_ldap \
usr/share/doc/nss_ldap-264/NEWS.pam_ldap \
usr/share/doc/nss_ldap-264/README.pam_ldap \
usr/share/doc/nss_ldap-264/ldap.conf.pma_ldap
.endif
@if [ -f ${WRKDIR}/etc/ldap.conf ]; then \
${MV} -p ${WRKDIR}/etc/ldap.conf 
${WRKDIR}/etc/ldap.conf.dist;

fi
PLIST_FILES+=usr/share/doc

post-install:
@${CAT} ${PKGMESSAGE}

.include bsd.port.mk

I'm cutting it to the bone as much as I can. But I am also trying to cut 
some of the files that are unnecessary and could be risky. After running 
make the directory looks like this:


./
./Makefile
./pkg-descr
./work
./work/etc
./work/etc/ldap.conf
./work/lib
./work/lib/security
./work/lib/security/pam_ldap.so
./work/usr
./work/usr/lib
./work/usr/lib/libnss_ldap-264.so
./work/usr/lib/libnss_ldap.so
./work/usr/lib/libnss_ldap.so.2
./work/usr/share
./work/usr/share/doc
./work/usr/share/doc/nss_ldap-264
./work/usr/share/doc/nss_ldap-264/ANNOUNCE.nss_ldap
./work/usr/share/doc/nss_ldap-264/AUTHORS.nss_ldap
./work/usr/share/doc/nss_ldap-264/AUTHORS.pam_ldap
./work/usr/share/doc/nss_ldap-264/COPYING.LIB.pam_ldap
./work/usr/share/doc/nss_ldap-264/COPYING.nss_ldap
./work/usr/share/doc/nss_ldap-264/COPYING.pam_ldap
./work/usr/share/doc/nss_ldap-264/ChangeLog.nss_ldap
./work/usr/share/doc/nss_ldap-264/ChangeLog.pam_ldap
./work/usr/share/doc/nss_ldap-264/NEWS.nss_ldap
./work/usr/share/doc/nss_ldap-264/NEWS.pam_ldap
./work/usr/share/doc/nss_ldap-264/README.TLS
./work/usr/share/doc/nss_ldap-264/README.nss_ldap
./work/usr/share/doc/nss_ldap-264/README.pam_ldap
./work/usr/share/doc/nss_ldap-264/ldap.conf.nss_ldap
./work/usr/share/doc/nss_ldap-264/ldap.conf.pam_ldap
./work/usr/share/doc/nss_ldap-264/ldapns.schema
./work/usr/share/doc/nss_ldap-264/ns-pwd-policy.schema
./work/usr/share/doc/nss_ldap-264/nsswitch.ldap
./work/usr/share/doc/nss_ldap-264/pam.d
./work/usr/share/doc/nss_ldap-264/pam.d/chfn
./work/usr/share/doc/nss_ldap-264/pam.d/chsh
./work/usr/share/doc/nss_ldap-264/pam.d/ftp
./work/usr/share/doc/nss_ldap-264/pam.d/gdm
./work/usr/share/doc/nss_ldap-264/pam.d/halt
./work/usr/share/doc/nss_ldap-264/pam.d/imap
./work/usr/share/doc/nss_ldap-264/pam.d/kde

Re: x11-fm/thunar Build error

2012-01-08 Thread Leslie Jensen



2012-01-08 13:48, Olivier Duchateau skrev:

1. Check if p5-XML-Parser is installed
ls /var/db/pkg | grep XML-Parser


It is!



2. Why try to install Thunar v1.3.0, it's development version, not
production ready. The latest stable version is better imho.

Where do you find this port ?


This port is on my system as a part of the meta port xfce4.

I just run a little script with portsnap and it tells me which ports are 
available for upgrade.


/Leslie
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: x11-fm/thunar Build error

2012-01-08 Thread Leslie Jensen



2012-01-08 18:47, Kevin Oberman skrev:

On Sun, Jan 8, 2012 at 3:30 AM, Leslie Jensenles...@eskk.nu  wrote:




checking for gmsgfmt... /usr/local/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl= 5.8.1... 5.14.2
checking for XML::Parser... configure: error: XML::Parser perl module is
required for intltool
===   Script configure failed unexpectedly.
Please report the problem to x...@freebsd.org [maintainer] and attach the
/usr/ports/x11-fm/thunar/**work/Thunar-1.3.0/config.log including the
output
of the failure of your make command. Also, it might be a good idea to
provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/x11-fm/thunar.
*** Error code 1

Stop in /usr/ports/x11-fm/thunar.

===  make failed for x11-fm/thunar
===  Aborting update

Assuming p5-XML-Parser is installed, re-install it. While I don't

understand why, several times I have gotten this error on various ports and
simply re-installing the port seems to fix it.



Your suggestion worked.

Thank you :-)

/Leslie


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org