Re: Setting X11BASE

2007-05-22 Thread Alexander Leidinger
Quoting Kris Kennaway [EMAIL PROTECTED] (from Mon, 21 May 2007  
14:57:39 -0400):



On Mon, May 21, 2007 at 11:49:32AM +0200, Alexander Leidinger wrote:

Quoting Paul Schmehl [EMAIL PROTECTED] (from Sun, 20 May 2007
16:28:56 -0500):

It would be nice if every port that you use on a headless system didn't
require xorg libraries, but I suppose that's unrealistic.

Add this to your make.conf:
---snip---
WITHOUT_X11=yes
NO_X11=yes# needed in the past and maybe still needed
---snip---

Recompile every port you need which depends upon the x11 libs (e.g. gd
and php). Deinstall the x11 ports.

Better would be to put this into make.conf before installing any port,
this way no x11 libs should be pulled in as a dependency from the
beginning.


I think NO_X11 is a NOP.


It should be, but once I stumbled upon this.


Also WITHOUT_X11 will only disable X support in ports for which it is
optional.  Many (probably most) ports that require X cannot work
without it, and if such a port is either specified explicitly or
pulled in as a dependency then you'll get what you asked for.


Yes, but most of the time the X11 libs are pulled in on a headless  
server because of some dependency you don't need (e.g. php-gd-X11  
for XPM which is not needed if you use PNG; or ghostscript-X11 on a  
printserver where you don't intend to display the postscript before  
printing). In this case WITHOUT_X11 works without a problem (at least  
on those servers I use this).


Bye,
Alexander.

--
I have gained this by philosophy:
that I do without being commanded what others
do only from fear of the law.
-- Aristotle

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 [EMAIL PROTECTED]


Re: Setting X11BASE

2007-05-22 Thread Kris Kennaway
On Tue, May 22, 2007 at 09:35:07AM +0200, Alexander Leidinger wrote:

 Also WITHOUT_X11 will only disable X support in ports for which it is
 optional.  Many (probably most) ports that require X cannot work
 without it, and if such a port is either specified explicitly or
 pulled in as a dependency then you'll get what you asked for.
 
 Yes, but most of the time the X11 libs are pulled in on a headless  
 server because of some dependency you don't need (e.g. php-gd-X11  
 for XPM which is not needed if you use PNG; or ghostscript-X11 on a  
 printserver where you don't intend to display the postscript before  
 printing). In this case WITHOUT_X11 works without a problem (at least  
 on those servers I use this).

It works perfectly well for its intended purpose.  As long as one is
not confused about what that purpose is ;-)

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


Re: Setting X11BASE

2007-05-21 Thread Alexander Leidinger
Quoting Paul Schmehl [EMAIL PROTECTED] (from Sun, 20 May 2007  
16:28:56 -0500):



It would be nice if every port that you use on a headless system didn't
require xorg libraries, but I suppose that's unrealistic.


Add this to your make.conf:
---snip---
WITHOUT_X11=yes
NO_X11=yes# needed in the past and maybe still needed
---snip---

Recompile every port you need which depends upon the x11 libs (e.g. gd  
and php). Deinstall the x11 ports.


Better would be to put this into make.conf before installing any port,  
this way no x11 libs should be pulled in as a dependency from the  
beginning.


Bye,
Alexander.

--
With reasonable men I will reason;
with humane men I will plead;
but to tyrants I will give no quarter.
-- William Lloyd Garrison

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 [EMAIL PROTECTED]


Re: Setting X11BASE

2007-05-21 Thread KAYVEN RIESE



On Sun, 20 May 2007, Paul Schmehl wrote:


--On May 21, 2007 12:24:47 AM +0100 Florent Thoumie [EMAIL PROTECTED] wrote:


Paul Schmehl wrote:





OK.  They didn't work for me.

[...]


I've read all the email you sent twice and haven't found what was wrong.
Can you be a little more specific or give error messages? Cause blah
fails just isn't enough.


As I said, when I ran portupgrade -ai, I got errors about stale dependencies 
and a prompt to run pkgdb -F.  After running pkgdb -L and installing all the 
missing dependencies, portupgrade -ai ran fine.


blah blah=portupgrade -ai
blah blah=pkgdb -F

??



Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


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


Re: Setting X11BASE

2007-05-21 Thread Kris Kennaway
On Mon, May 21, 2007 at 11:49:32AM +0200, Alexander Leidinger wrote:
 Quoting Paul Schmehl [EMAIL PROTECTED] (from Sun, 20 May 2007  
 16:28:56 -0500):
 
 It would be nice if every port that you use on a headless system didn't
 require xorg libraries, but I suppose that's unrealistic.
 
 Add this to your make.conf:
 ---snip---
 WITHOUT_X11=yes
 NO_X11=yes# needed in the past and maybe still needed
 ---snip---
 
 Recompile every port you need which depends upon the x11 libs (e.g. gd  
 and php). Deinstall the x11 ports.
 
 Better would be to put this into make.conf before installing any port,  
 this way no x11 libs should be pulled in as a dependency from the  
 beginning.

I think NO_X11 is a NOP.

Also WITHOUT_X11 will only disable X support in ports for which it is
optional.  Many (probably most) ports that require X cannot work
without it, and if such a port is either specified explicitly or
pulled in as a dependency then you'll get what you asked for.

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


Setting X11BASE

2007-05-20 Thread Andrea Venturoli

Hello.
I'm trying to do security updates on a few hosts of mine, but nothing 
(portsdb, portupgrade, ...) will work, with the following reason.


On FreeBSD before 6.2 ports system unfortunately can not set default 
X11BASE by itself so please help it a bit by setting 
X11BASE=${LOCALBASE} in make.conf.
On the other hand, if you do wish to use non-default X11BASE, please 
set variable USE_NONDEFAULT_X11BASE.


I know of the X.Org 7.2 update, but I'm trying to avoid that, since this 
are text-mode servers, and I only have xorg-libraries-6.x as a 
dependency of other ports.


Before I do something really bad, I thought I'd ask:
should I really set X11BASE=${LOCALBASE} or should I set X11BASE=/usr/X11R6?

In case in the future I do upgrade X.Org, should I remove that?

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


Re: Setting X11BASE

2007-05-20 Thread Kris Kennaway
On Sun, May 20, 2007 at 03:13:42PM +0200, Andrea Venturoli wrote:
 Hello.
 I'm trying to do security updates on a few hosts of mine, but nothing 
 (portsdb, portupgrade, ...) will work, with the following reason.
 
 On FreeBSD before 6.2 ports system unfortunately can not set default 
 X11BASE by itself so please help it a bit by setting 
 X11BASE=${LOCALBASE} in make.conf.
 On the other hand, if you do wish to use non-default X11BASE, please 
 set variable USE_NONDEFAULT_X11BASE.
 
 I know of the X.Org 7.2 update, but I'm trying to avoid that, since this 
 are text-mode servers, and I only have xorg-libraries-6.x as a 
 dependency of other ports.
 
 Before I do something really bad, I thought I'd ask:
 should I really set X11BASE=${LOCALBASE} or should I set X11BASE=/usr/X11R6?
 
 In case in the future I do upgrade X.Org, should I remove that?

The former, and you'll need to keep it until your upgrade your base system.

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


Re: Setting X11BASE

2007-05-20 Thread Kris Kennaway
On Sun, May 20, 2007 at 02:46:01PM -0500, Paul Schmehl wrote:
 --On May 20, 2007 3:13:42 PM +0200 Andrea Venturoli [EMAIL PROTECTED] wrote:
 
 Hello.
 I'm trying to do security updates on a few hosts of mine, but nothing
 (portsdb, portupgrade, ...) will work, with the following reason.
 
  On FreeBSD before 6.2 ports system unfortunately can not set default
 X11BASE by itself so please help it a bit by setting
 X11BASE=${LOCALBASE} in make.conf.
  On the other hand, if you do wish to use non-default X11BASE, please
 set variable USE_NONDEFAULT_X11BASE.
 
 I know of the X.Org 7.2 update, but I'm trying to avoid that, since this
 are text-mode servers, and I only have xorg-libraries-6.x as a
 dependency of other ports.
 
 I'm in the same situation, with several headless servers with no X running 
 but xorg-libraries installed as a dependency.
 
 I tried running portupgrade -ai on one server.  It failed.
 
 I ran pkgdb -L and fixed a tons of dependencies by installing the new xorg 
 7.2 ports.  Then I ran portupgrade -ai again.  This time it upgraded 
 xorg-libraries from 6.9 to 7.2, and the only failures were related to php4 
 (which was held up by the port freeze and needs a security update, which 
 should be released shortly.)
 
 I'm not sure what to do next.  I put X11BASE=${LOCALBASE} in 
 /etc/make.conf, and I ran mergebase.sh.  Is there anything else that I 
 need to do?

Following directions is considered too hard?  If you're going to do
things in some random order you came up with on your own (instead of
following the careful, precise directions provided in UPDATING) then I
don't have a lot of patience for helping you recover your damaged
system.  Good luck :-)

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


Re: Setting X11BASE

2007-05-20 Thread Paul Schmehl
--On May 20, 2007 4:24:15 PM -0400 Kris Kennaway [EMAIL PROTECTED] 
wrote:


I'm in the same situation, with several headless servers with no X
running  but xorg-libraries installed as a dependency.

I tried running portupgrade -ai on one server.  It failed.

I ran pkgdb -L and fixed a tons of dependencies by installing the new
xorg  7.2 ports.  Then I ran portupgrade -ai again.  This time it
upgraded  xorg-libraries from 6.9 to 7.2, and the only failures were
related to php4  (which was held up by the port freeze and needs a
security update, which  should be released shortly.)

I'm not sure what to do next.  I put X11BASE=${LOCALBASE} in
/etc/make.conf, and I ran mergebase.sh.  Is there anything else that I
need to do?


Following directions is considered too hard?  If you're going to do
things in some random order you came up with on your own (instead of
following the careful, precise directions provided in UPDATING) then I
don't have a lot of patience for helping you recover your damaged
system.  Good luck :-)

Maybe you should take a chill pill, Kris.  I know you've been working very 
hard on this upgrade, and it appears you've gotten cranky.


First of all, my system is working fine.  Secondly, I *did* read the 
directions - several times.  Then I brought up a second terminal so I 
could have the directions in front of me while I tried the upgrade.  But 
this is not a system that runs Xorg or any graphical display at all.  The 
upgrade, as written in UPDATING didn't work for me.  Maybe it will work on 
the next server I run it on.  Maybe not.  Maybe I'm an idiot and can't 
read English.  The point of my post was that I was able to fix the problem 
by running pkgdb -L, which fixed all the missing dependencies because 
xorg has been split into all sorts of pieces.


It would be nice if every port that you use on a headless system didn't 
require xorg libraries, but I suppose that's unrealistic.


If you can show me where the instructions are for UPDATING a headless 
server that's not running xorg at all but has some xorg libraries as 
dependencies to other ports, I'd be happy to follow those instructions 
instead.


Lest anyone get the wrong impression, I am *very* thankful that there are 
many people willing to volunteer to help make FreeBSD what it is.  (My 
favorite OS, BTW.)  I myself maintain several ports, so I have a small 
inkling of what it's like to do all this work.  I'm not complaining.  I 
was simply answering the OP's question about what he should do regarding a 
headless server without X if the upgrade fails.


Getting back to my question, however, I have run portupgrade and 
everything is up to date (except php4, but we know why), I ran mergebase 
and I added X11BASE=${LOCALBASE} to /etc/make.conf.  The system is working 
fine.  /usr/X11R6 is a symlink to /usr/local.


Is there anything else that I need to do?  Or am I done?  I think I'm 
done, but I defer to the experts.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Setting X11BASE

2007-05-20 Thread Kris Kennaway
On Sun, May 20, 2007 at 04:28:56PM -0500, Paul Schmehl wrote:

 If you can show me where the instructions are for UPDATING a headless 
 server that's not running xorg at all but has some xorg libraries as 
 dependencies to other ports, I'd be happy to follow those instructions 
 instead.

All upgrade steps listed apply to all users that have any subset of X
ports installed.

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


Re: Setting X11BASE

2007-05-20 Thread Paul Schmehl
--On May 20, 2007 5:36:26 PM -0400 Kris Kennaway [EMAIL PROTECTED] 
wrote:



On Sun, May 20, 2007 at 04:28:56PM -0500, Paul Schmehl wrote:


If you can show me where the instructions are for UPDATING a headless
server that's not running xorg at all but has some xorg libraries as
dependencies to other ports, I'd be happy to follow those instructions
instead.


All upgrade steps listed apply to all users that have any subset of X
ports installed.


OK.  They didn't work for me.

I added X11BASE=${LOCALBASE} to /etc/make.conf.

I then tried to upgrade.

I chose not to use BATCH=yes, because I prefer to see what's being 
upgraded and elect whether to upgrade an individual port or not.  I chose 
not use use portupgrade-devel.  I use bash so I set export XORG_UPGRADE 
yes in my shell.  I tried portupgrade -Rf libXft, and I got an error 
message that libXft was not installed.  I don't have gstreamer installed, 
so I then ran portupgrade -a.  I got a indexing error message and was 
prompted to run pkgdb -F to fix it.  After I realized I was cancelling 
individual xorg ports (selecting not to install them), I switched to pkgdb 
-L and installed all the missing dependencies.


Afterward portupgrade -ai worked fine except for the php problem.

I then ran pkg_delete xorg-manpages, but they weren't installed.  Then I 
ran mergebase.sh.  Afterwards I checked to make sure that /usr/X11R6 was a 
symlink to /usr/local.


I don't have the xorg meta-port installed, because this is a headless 
internet server.


This is what is installed now:
pkg_info -a | grep xorg | sort -u
Information for xorg-cf-files-1.0.2_2:
Information for xorg-libraries-7.2:
WWW: http://www.freedesktop.org/Software/xorg
xorg-libraries-7.2

pkg_info -a | grep X | sort -u (only the actually libraries part)
libX11-1.1.1_1,1
libXScrnSaver-1.1.2
libXTrap-1.0.0
libXau-1.0.3_2
libXaw-1.0.2,1
libXcomposite-0.3.1,1
libXcursor-1.1.8_1
libXdamage-1.1.1
libXdmcp-1.0.2
libXevie-1.0.2
libXext-1.0.3,1
libXfixes-4.0.3
libXfont-1.2.8,1
libXfontcache-1.0.4
libXft-2.1.12
libXi-1.0.2,1
libXinerama-1.0.1,1
libXmu-1.0.3,1
libXp-1.0.0,1
libXpm-3.5.6
libXprintAppUtil-1.0.1
libXprintUtil-1.0.1
libXrandr-1.2.1
libXrender-0.9.2
libXres-1.0.3
libXt-1.0.5
libXtst-1.0.1
libXv-1.0.3,1
libXvMC-1.0.4
libXxf86dga-1.0.1
libXxf86misc-1.0.1
libXxf86vm-1.0.1
liboldX-1.0.1

Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Setting X11BASE

2007-05-20 Thread Florent Thoumie
Paul Schmehl wrote:
 --On May 20, 2007 5:36:26 PM -0400 Kris Kennaway [EMAIL PROTECTED]
 wrote:
 
 On Sun, May 20, 2007 at 04:28:56PM -0500, Paul Schmehl wrote:

 If you can show me where the instructions are for UPDATING a headless
 server that's not running xorg at all but has some xorg libraries as
 dependencies to other ports, I'd be happy to follow those instructions
 instead.

 All upgrade steps listed apply to all users that have any subset of X
 ports installed.

 OK.  They didn't work for me.
 
 [...]

I've read all the email you sent twice and haven't found what was wrong.
Can you be a little more specific or give error messages? Cause blah
fails just isn't enough.

-- 
Florent Thoumie
[EMAIL PROTECTED]
FreeBSD Committer



signature.asc
Description: OpenPGP digital signature