python now requires X11 installed

2009-05-12 Thread travis+ml-python
Hello,

I used to run all my OpenBSD servers with no X11.

Now, to build nmap, you seem to need python.  There are no FLAVORS and
so no obvious way to prevent it from requiring python.

And to build python, you need X11R6 installed.  There are no FLAVORS
as there used to be, to compile without tkinter to avoid requiring
X11R6.

Is it possible to install these without installing X11R6?  Maybe I
just don't understand the way ports work well enough.

And, why the change?
-- 
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | 
http://www.subpacefield.org/~travis/ 
If you are a spammer, please email j...@subspacefield.org to get blacklisted.


pgpZmAC7Pyq2D.pgp
Description: PGP signature


Re: python now requires X11 installed

2009-05-12 Thread Theo de Raadt
 I used to run all my OpenBSD servers with no X11.
 
 Now, to build nmap, you seem to need python.  There are no FLAVORS and
 so no obvious way to prevent it from requiring python.
 
 And to build python, you need X11R6 installed.  There are no FLAVORS
 as there used to be, to compile without tkinter to avoid requiring
 X11R6.
 
 Is it possible to install these without installing X11R6?  Maybe I
 just don't understand the way ports work well enough.
 
 And, why the change?

Would you prefer to live in a world with 500 flavors?

Perhaps.

Would you prefer if the ports developers spent all their time building
and testing flavors, instead of bringing new code into the ports tree?

That is the choice.

So sometimes changes like that come direct from the upstream.
Supporting flavors (which are mostly restrictions on what gets used)
always requires more testing.

Sometimes there is no choice but to accept the upstream.



Re: python now requires X11 installed

2009-05-12 Thread Antoine Jacoutot
On Tue, 12 May 2009, travis+ml-pyt...@subspacefield.org wrote:

 Hello,
 
 I used to run all my OpenBSD servers with no X11.
 
 Now, to build nmap, you seem to need python.  There are no FLAVORS and
 so no obvious way to prevent it from requiring python.
 
 And to build python, you need X11R6 installed.  There are no FLAVORS
 as there used to be, to compile without tkinter to avoid requiring
 X11R6.
 
 Is it possible to install these without installing X11R6?  Maybe I
 just don't understand the way ports work well enough.

Why don't you use packages?

-- 
Antoine



Re: python now requires X11 installed

2009-05-12 Thread Stuart Henderson
On 2009/05/12 16:01, travis+ml-pyt...@subspacefield.org wrote:
 Hello,
 
 I used to run all my OpenBSD servers with no X11.
 
 Now, to build nmap, you seem to need python.  There are no FLAVORS and
 so no obvious way to prevent it from requiring python.
 
 And to build python, you need X11R6 installed.  There are no FLAVORS
 as there used to be, to compile without tkinter to avoid requiring
 X11R6.
 
 Is it possible to install these without installing X11R6?  Maybe I
 just don't understand the way ports work well enough.
 
 And, why the change?

leaving aside the question of what nmap would be doing on a server,
pkg_add nmap needs neither python nor X.



Re: python now requires X11 installed

2009-05-12 Thread Matthias Kilian
On Tue, May 12, 2009 at 04:01:26PM -0500, travis+ml-pyt...@subspacefield.org 
wrote:
 Now, to build nmap, you seem to need python.  There are no FLAVORS and
 so no obvious way to prevent it from requiring python.

building ports without X11 installed isn't supported, just use
packages (the nmap package doesn't require X11).



Re: python now requires X11 installed

2009-05-12 Thread travis+ml-python
On Tue, May 12, 2009 at 11:10:46PM +0200, Antoine Jacoutot wrote:
 Why don't you use packages?

I just tried, and that solved my problem.

I tried to install python from there and it worked just fine.

I liked the ports system but understand Theo's points.

I have this script which basically does a lot of post-installation
work, installing a lot of ports, doing some manual configuration, etc.

Now, I'm not quite sure how to convert it to use packages.

The problem is that it was relatively easy to cd /usr/ports/foo/bar
 make install clean.

If I use the packages system, I seem to have to know what version
I want to install.  This seems like it'd be really unstable, since
the versions will change from release to release.

So to convert the script to work with any release, I'd have to figure
out a way to get a listing and select the latest release from the
listing.

Is there an easy way to do this?
-- 
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | 
http://www.subpacefield.org/~travis/ 
If you are a spammer, please email j...@subspacefield.org to get blacklisted.


pgpbHqnaofZk4.pgp
Description: PGP signature


Re: python now requires X11 installed

2009-05-12 Thread L. V. Lammert

At 04:20 PM 5/12/2009 -0500, travis+ml-pyt...@subspacefield.org wrote:

On Tue, May 12, 2009 at 11:10:46PM +0200, Antoine Jacoutot wrote:
 Why don't you use packages?


Is there an easy way to do this?


Try your own variation of:

export PKG_PATH=ftp://your favorite mirror/pub/OpenBSD/`uname -a | cut 
-d  -f 3`/packages/`uname -a | cut -d  -f 5`/


Identifies the repository automatically by kernel version.

Lee



Re: python now requires X11 installed

2009-05-12 Thread Antoine Jacoutot
On Tue, 12 May 2009, travis+ml-pyt...@subspacefield.org wrote:

 On Tue, May 12, 2009 at 11:10:46PM +0200, Antoine Jacoutot wrote:
  Why don't you use packages?
 
 I just tried, and that solved my problem.
 
 I tried to install python from there and it worked just fine.
 
 I liked the ports system but understand Theo's points.
 
 I have this script which basically does a lot of post-installation
 work, installing a lot of ports, doing some manual configuration, etc.
 
 Now, I'm not quite sure how to convert it to use packages.
 
 The problem is that it was relatively easy to cd /usr/ports/foo/bar
  make install clean.
 
 If I use the packages system, I seem to have to know what version

Nope, that is not needed.

 I want to install.  This seems like it'd be really unstable, since
 the versions will change from release to release.
 
 So to convert the script to work with any release, I'd have to figure
 out a way to get a listing and select the latest release from the
 listing.
 
 Is there an easy way to do this?

export PKG_PATH=http://path/to/mirror/pub/OpenBSD/`uname -r`/packages/`arch -s/
pkg_add nmap squid openldap foobar ...

-- 
Antoine



Re: python now requires X11 installed

2009-05-12 Thread travis+ml-python
Thanks all, package stemming drastically simplified my auto-installer.

It was much more fragile before, since, say, /usr/ports/mail/mutt/snapshot
might or might not be there in new releases.
-- 
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | 
http://www.subpacefield.org/~travis/ 
If you are a spammer, please email j...@subspacefield.org to get blacklisted.


pgpBPdutjidga.pgp
Description: PGP signature


Re: python now requires X11 installed

2009-05-12 Thread dtalk

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matthias Kilian wrote:


building ports without X11 installed isn't supported,


A useful low-cost, modern solution is a dedicated virtual machine for 
building ports, which can then be served via http as packages to other 
systems.  That's been working well for me, giving me complete 
flexibility while avoiding the need for all those messy support 
libraries on live systems. If you use snapshots or copies, then rolling 
back the build host to its original clean state after a complex build is 
trivial.  Lather, rinse, repeat.


Cheers -d

- --
David Talkington
dt...@drizzle.com
- --
PGP key: http://www.flyingjoke.org/keys/801E3976.asc
(What's this?  http://en.wikipedia.org/wiki/Digital_signature)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (OpenBSD)

iQEcBAEBAgAGBQJKChpgAAoJEO7jL1CAHjl2QtgH/R8rkkeWeWjWHVG5fplL/udN
KKsBBZ/1hjbbS7ZV/uvtkvqkIJFjWaJv48gItA6W/UaMTfKuULTiYc8qtkmVjAXe
iDooNsq4aDIVdMK9FZNlF+fSbZDmvE1G/frockAGNY+vkDJV827JGW7qc2D9PZut
mWmEkFhZkcpt7gl4ywVCUZywgqSkWhUt2D0fAGCLnZNXk1bsfaZEqb49K0yPsh6I
EuPeX3jUdwp5YK0kY93998sLH/PZdKhqRQEKhtXJA9WZI9CHCUzrAqANYDMhpcH5
Y2Iov/S0uaYmBSw7NsJgzhoYy0Dx+aN6EaibCYrmMagSZ0N867r7BnKIhbY+COw=
=ghQT
-END PGP SIGNATURE-