Re: open-vm-tools fails on a recent sup to CURRENT

2008-10-21 Thread Alexey Shuvaev
On Tue, Oct 14, 2008 at 07:17:29PM -0400, Michael Proto wrote:
 Has anyone started seeing failures of ports/emulators/open-vm-tools builds
 with a recent current? I csup-ed my source recently (as of 20080926),
 rebuilt world and my kernel, and open-vm-tools builds fail in the vmhgfs
 module with the following:
 
 
 ...
 cc1: warnings being treated as errors
 vfsops.c: In function 'HgfsVfsMount':
 vfsops.c:142: warning: implicit declaration of function 'suser'
 vfsops.c:142: warning: nested extern declaration of 'suser'
 *** Error code 1
 ...
 
 I've tried setting CFLAGS optimizations to -Os (my default), -O, -O2 and no
 optimizations and it fails with the same error every time. Has anyone else
 using CURRENT in VMware seen this error recently? Any ideas?
 
This is due to API change suser() - priv_check().
Have a look at
http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/nvidia-driver/Makefile
(revision 1.81) for example.
I am not sure about PRIV_DRIVER argument, but you can try to replace
suser(CURTHREAD) to priv_check(CURTHREAD, PRIV_DRIVER)
in the open-vm-tools sources.

Alexey.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Link problem report

2008-10-21 Thread Illó Gábor
Hello.

THis link:
http://wwws.sun.com/software/communitysource/j2se/java2/download.html not
work because redirected to an other page.

[EMAIL PROTECTED] make install
===   javadc-0.20_2 depends on file: /usr/local/jdk1.3.1/bin/java - not
found
===Verifying install for /usr/local/jdk1.3.1/bin/java in
/usr/ports/java/jdk13
===  jdk-1.3.1p9_9 :

 Due to licensing restrictions, certain files must be fetched manually.

 Please open
http://www.sun.com/software/communitysource/j2se/java2/download.xml
 in a web browser and follow the Download link for the
 Java(TM) 2 SDK 1.3.1.  You will be required to log in and register,
 but you can create an account on this page.  After registration and
 accepting the Sun Community Source License, download the SCSL Source file,
 j2sdk-1_3_1-src.tar.gz.

 In addition, please download the patchset, bsd-jdk131-patches-9.tar.gz,
from
 http://www.eyesbeyond.com/freebsddom/java/jdk13.html.

 Then place the downloaded files in /usr/ports/distfiles and restart the
build.

.*** Error code 1

Stop in /usr/ports/java/jdk13.
*** Error code 1

Stop in /usr/ports/net-p2p/javadc.

AND same problem in here:

[EMAIL PROTECTED] make install
===  jdk-1.3.1p9_9 :

 Due to licensing restrictions, certain files must be fetched manually.

 Please open
http://www.sun.com/software/communitysource/j2se/java2/download.xml
 in a web browser and follow the Download link for the
 Java(TM) 2 SDK 1.3.1.  You will be required to log in and register,
 but you can create an account on this page.  After registration and
 accepting the Sun Community Source License, download the SCSL Source file,
 j2sdk-1_3_1-src.tar.gz.

 In addition, please download the patchset, bsd-jdk131-patches-9.tar.gz,
from
 http://www.eyesbeyond.com/freebsddom/java/jdk13.html.

 Then place the downloaded files in /usr/ports/distfiles and restart the
build.

.*** Error code 1

Stop in /usr/ports/java/jdk13.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


math/py-numeric - fails: install_error

2008-10-21 Thread QAT
Hi,


The build which triggered this email is done under tinderbox-2.4.3, on 
7-STABLE on amd64, with tinderd_flags=-nullfs -plistcheck -onceonly
and ccache support, with the official up-to-date Ports Tree, with the
following vars set:
NOPORTDOCS=yes,  NOPORTEXAMPLES=yes, NOPORTDATA=yes, FORCE_PACKAGE=yes.

The build of this port was tried 6 times since last BotMail
while trying to build ports that depend on it.

Excerpt from http://T64.TecNik93.com/logs/7-STABLE-FTP/py25-numeric-24.2_1.log :


building py25-numeric-24.2_1 in directory /var/tinderbox/7-STABLE-FTP
maintained by: [EMAIL PROTECTED]
building for:  7.0-STABLE amd64
port directory: /usr/ports/math/py-numeric
Makefile ident: $FreeBSD: ports/math/py-numeric/Makefile,v 1.52 2008/10/13 
19:58:51 olgeni Exp $
prefixes: LOCALBASE=usr/local X11BASE=usr/local
NO* env vars: NOPORTDOCS=yes NOPORTEXAMPLES=yes NOPORTDATA=yes
build started at Tue Oct 21 19:46:33 UTC 2008

.Last 40 lines of the log..

byte-compiling 
/usr/local/lib/python2.5/site-packages/Numeric/Numeric_headers/__init__.py to 
__init__.pyc
writing byte-compilation script '/tmp/tmpMzMwOx.py'
/usr/local/bin/python2.5 -O /tmp/tmpMzMwOx.py
removing /tmp/tmpMzMwOx.py
running install_headers
creating /usr/local/include/python2.5/Numeric
copying Include/Numeric/arrayobject.h - /usr/local/include/python2.5/Numeric
copying Include/Numeric/f2c.h - /usr/local/include/python2.5/Numeric
copying Include/Numeric/ranlib.h - /usr/local/include/python2.5/Numeric
copying Include/Numeric/ufuncobject.h - /usr/local/include/python2.5/Numeric
running install_egg_info
Writing 
/usr/local/lib/python2.5/site-packages/Numeric/Numeric-24.2-py2.5.egg-info
creating /usr/local/lib/python2.5/site-packages/Numeric.pth
MA Version 12.2.0
Numeric Version 24.2
install  -o root -g wheel -m 444 
/work/a/ports/math/py-numeric/work/Numeric-24.2/Demo/*.py 
/usr/local/share/examples/py-numeric
install  -o root -g wheel -m 444 
/work/a/ports/math/py-numeric/work/Numeric-24.2/Demo/NumTut/* 
/usr/local/share/examples/py-numeric/NumTut
===   Registering installation for py25-numeric-24.2_1

phase 7: make package
===  Building package for py25-numeric-24.2_1
tar: lib/python2.5/site-packages/Numeric/Numeric-24.2-py2.5.egg-info/PKG-INFO: 
Cannot stat: Not a directory
tar: 
lib/python2.5/site-packages/Numeric/Numeric-24.2-py2.5.egg-info/SOURCES.txt: 
Cannot stat: Not a directory
tar: 
lib/python2.5/site-packages/Numeric/Numeric-24.2-py2.5.egg-info/dependency_links.txt:
 Cannot stat: Not a directory
tar: 
lib/python2.5/site-packages/Numeric/Numeric-24.2-py2.5.egg-info/not-zip-safe: 
Cannot stat: Not a directory
tar: 
lib/python2.5/site-packages/Numeric/Numeric-24.2-py2.5.egg-info/top_level.txt: 
Cannot stat: Not a directory
tar: lib/python2.5/site-packages/Numeric/Numeric_headers/Numeric/arrayobject.h: 
Cannot stat: No such file or directory
tar: lib/python2.5/site-packages/Numeric/Numeric_headers/Numeric/f2c.h: Cannot 
stat: No such file or directory
tar: lib/python2.5/site-packages/Numeric/Numeric_headers/Numeric/ranlib.h: 
Cannot stat: No such file or directory
tar: lib/python2.5/site-packages/Numeric/Numeric_headers/Numeric/ufuncobject.h: 
Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
Creating package /tmp/packages/All/py25-numeric-24.2_1.tbz
Registering depends: python25-2.5.2_3.
Creating bzip'd tar ball in '/tmp/packages/All/py25-numeric-24.2_1.tbz'
*** Error code 1

Stop in /a/ports/math/py-numeric.

build of /usr/ports/math/py-numeric ended at Tue Oct 21 19:46:50 UTC 2008


A description of the testing process can be found here:
http://T32.TecNik93.com/FreeBSD/QA-Tindy/testing_process.txt


Thanks for your work on making FreeBSD better,

-- 
IOnut - Un^d^dregistered ;) FreeBSD user
  Intellectual Property is   nowhere near as valuable   as Intellect
FreeBSD committer - [EMAIL PROTECTED], PGP Key ID 057E9F8B493A297B

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


Re: Q: Is there any use for Oracle database port installation under Linux compat root ?

2008-10-21 Thread martinko

Chagin Dmitry wrote:

On Sun, 27 Jul 2008, Adrian Penisoara wrote:


Hi,

On Sun, Jul 27, 2008 at 1:15 PM, Alexander Leidinger 
[EMAIL PROTECTED] wrote:

Quoting Adrian Penisoara [EMAIL PROTECTED] (Sun, 27 Jul 2008 
11:22:20

+0300):


Hi,

  I am working on a FreeBSD port for Oracle's XE database package[1]

(Linux

binaries) and I stumbled upon some issues related to USE_LINUX_PREFIX.
Before going any further trying to support (as an option) installing 
the

Oracle XE directly under the /compat/linux hierarchy (like the
database/linux-oracle-instantclient-* ports are doing), I have to 
ask ask

around the following:

(1) Is there any real need/benefit to have an Oracle DB installation

rooted

under /compat/linux (e.g. /compat/linux/usr/lib/oracle/xe/...) ? Side

note:

in this case all shell scripts will need to be ran under
/compat/linux/bin/bash.

(2) How does one deal with installing manual pages and shared files 
with

USE_LINUX_PREFIX -- do they also have to go under /compat/linux ? Using
${MANPREFIX} as a template gives wrong results in this case...


A port has to install into LINUXPREFIX, if it is an infrastructure
port (no part has to go outside this location). It has to install into
the default location (PREFIX/LOCALBASE), if it is an enduser port.
That's the easy part.



Good pointer, I was missing this bit. Thanks.





Now the classification, what is what, is the hard part. The linux
png/jpeg or whatever lib is for sure infrastructure. If this would land
in the default FreeBSD lib path, rest assured it would hurt. A linux
acroread port is an enduser application, a user will call it directly
to work with it. It also does not come with libs in the default FreeBSD
locations, so everything will be fine if it is installed in the default
location.

For the Oracle stuff I can imagine that it is a hard question. If it
doesn't put libs into a FreeBSD lib directory (a subdirectory of a lib
directory is ok, as it will not cause immediate problems), there are no
immediate objections to putting it into the default FreeBSD location
(and as the DBA as an enduser would use it, this would fit into the
description above). But we also have the rule that nothing is allowed
to be put into the basesystem (/usr/Y instead of /usr/local/Y). Think
about jails where the base is mounted read-only and only additional
programs are in a RW part.



 In the default configuration the binaries (and I mean all of them!) 
would

be placed under /usr/lib/oracle, since this is a hardcoded path in all
places.
 I will also offer a WITH_BSDHIER option which will root the 
installation

into /usr/local/oracle and just make a symlink under /usr/lib. Should I
rather make this the default ? ;)

 There are no libraries (or other binaries for that fact) installed 
outside
the Oracle hierarchy (this is the general strategy for Oracle RDBMS 
products

at least). So I guess it very nicely fits into the enduser picture you
describe above. I'm just wandering whether a /compat/linux rooted
installation would make sense.

 I am still interested to hear opinions from Oracle DBAs/users on this
subject -- would you need this option ?



hi!

I think that ora DBAs will tell that the best place it /home/ORAUSERNAME
and this user should have shell /compat/linux/bin/bash

thnx!



Hi,

No Oracle installation I have ever seen was installed into /home and it 
would be against Oracle Optimal Flexible Architecture (OFA) guidelines!


/usr/local/oracle would be OK and users can move the directory tree 
elsewhere afterwards.  Or maybe you can ask about Oracle Base directory 
during config/installation process, if possible.


Cheers,

Martin

PS: Mind you that Oracle installation is usually owned by Oracle 
software owner user (oinstall by default) who is different from 
DBA/operator users (dba/oper by default).







In the end it comes down to what you are able to do and how hard the
software is to port. Maybe it is easy to install everything into
LINUXBASE and install a wrapper into LOCALBASE (/usr/local/bin/Y would
be a script with #!/compat/linux/bin/bash and start whatever is needed
to start /compat/linux/bin/Y). Maybe the installation of the software
allows to install into /usr/local/softwarename and you can make links
from /usr/local/bin/ to it.

The rules for this are strong suggestions. If it is possible to do,
do everything you can to follow the rules, if you don't know how to
make something follow the rules, ask specific questions on ports if
someone has in idea. If there's no idea, forget the rule and try to do
something as close as possible to the goal of the rule (and document
what/why).

Bye,
Alexander.



Thank you for your time.
Adrian.


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


Re: Q: Is there any use for Oracle database port installation under Linux compat root ?

2008-10-21 Thread Thierry Thomas
Le Mar 21 oct 08 à 22:09:44 +0200, martinko [EMAIL PROTECTED]
 écrivait :

 Hi,

Hello,

 No Oracle installation I have ever seen was installed into /home and it 
 would be against Oracle Optimal Flexible Architecture (OFA) guidelines!

Agreed.

 /usr/local/oracle would be OK and users can move the directory tree 
 elsewhere afterwards.  Or maybe you can ask about Oracle Base directory 
 during config/installation process, if possible.

I would suggest to install under $ORACLE_HOME, defaulted to:

ORACLE_HOME?=   ${PREFIX}/oracle

(or may be ${PREFIX}/oracle${VERSION} to allow the installation of
different versions)

Regards,
-- 
Th. Thomas.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: math/py-numeric - fails: install_error

2008-10-21 Thread Alexander Logvinov
Hello!

 lib/python2.5/site-packages/Numeric/Numeric_headers/Numeric/ranlib.h:
 Cannot stat: No such file or directory
 tar:
 lib/python2.5/site-packages/Numeric/Numeric_headers/Numeric/ufuncobject.h:
 Cannot stat: No such file or directory
 tar: Error exit delayed from previous errors.
 pkg_create: make_dist: tar command failed with code 256
 Creating package /tmp/packages/All/py25-numeric-24.2_1.tbz
 Registering depends: python25-2.5.2_3.
 Creating bzip'd tar ball in
 '/tmp/packages/All/py25-numeric-24.2_1.tbz'
 *** Error code 1

 Stop in /a/ports/math/py-numeric.
 
 build of /usr/ports/math/py-numeric ended at Tue Oct 21 19:46:50 UTC 2008

  Could some of you look on ports/122434? Thanks!

-- 
WBR,
 Alexander

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


Re: open-vm-tools fails on a recent sup to CURRENT

2008-10-21 Thread Michael Proto
On Tue, Oct 21, 2008 at 5:36 AM, Alexey Shuvaev 
[EMAIL PROTECTED] wrote:

 On Tue, Oct 14, 2008 at 07:17:29PM -0400, Michael Proto wrote:
  Has anyone started seeing failures of ports/emulators/open-vm-tools
 builds
  with a recent current? I csup-ed my source recently (as of 20080926),
  rebuilt world and my kernel, and open-vm-tools builds fail in the vmhgfs
  module with the following:
 
 
  ...
  cc1: warnings being treated as errors
  vfsops.c: In function 'HgfsVfsMount':
  vfsops.c:142: warning: implicit declaration of function 'suser'
  vfsops.c:142: warning: nested extern declaration of 'suser'
  *** Error code 1
  ...
 
  I've tried setting CFLAGS optimizations to -Os (my default), -O, -O2 and
 no
  optimizations and it fails with the same error every time. Has anyone
 else
  using CURRENT in VMware seen this error recently? Any ideas?
 
 This is due to API change suser() - priv_check().
 Have a look at
 http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/nvidia-driver/Makefile
 (revision 1.81) for example.
 I am not sure about PRIV_DRIVER argument, but you can try to replace
 suser(CURTHREAD) to priv_check(CURTHREAD, PRIV_DRIVER)
 in the open-vm-tools sources.

 Alexey.



Thanks for that bit of information! With the following patch I was able to
get open-vm-tools to successfully compile:

--- modules/freebsd/vmhgfs/vfsops.c.old 2008-07-01 18:31:11.0 -0400
+++ modules/freebsd/vmhgfs/vfsops.c 2008-10-21 16:50:23.0 -0400
@@ -139,7 +139,7 @@
 * Since Hgfs requires the caller to be root, only allow mount attempts
made
 * by the superuser.
 */
-   if ((ret = suser(td)) != 0) {
+   if ((ret = priv_check(td, PRIV_DRIVER)) != 0) {
   return ret;
}

--- modules/freebsd/vmblock/vnops.c.old 2008-07-01 18:31:09.0 -0400
+++ modules/freebsd/vmblock/vnops.c 2008-10-21 19:32:27.0 -0400
@@ -723,7 +723,7 @@
* NB:  Allowing only the superuser to open this directory breaks
*  readdir() of the filesystem root for non-privileged users.
*/
-  if ((retval = suser(ap-a_td)) == 0) {
+  if ((retval = priv_check(ap-a_td, PRIV_DRIVER)) == 0) {
 #if __FreeBSD_version = 70
  fp = ap-a_fp;
 #else


I cannot say if makes these modules work or not, as I don't use them (my
main reason for having open-vm-tools is for vmware-guestd and its ability to
sync the VM's clock to the host), but the port compiles cleanly with this.
Thanks very much!


-Proto
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]