Re: Can't rebuild kernel with ZFS v15

2011-04-01 Thread krad
On 29 March 2011 10:05, Andre Goree an...@drenet.info wrote:

 Thank you for responding.

 For two reasons I know it's running zfs v14 after the rebuild:

 1)  During boot, a message shows:

 ZFS Filesystem version 4
 ZFS Storage pool version 14

 2)  After getting to the failed root mount point of the boot (after it
 fails to mount my zfs root), I enter:

 ufs:/dev/ad4s1a

 to get to my boot partition (which must remain UFS obviously, hehe), and
 try to mount my pools with the 'zfsmount' command, however it errors with
 something similar to:

 storage pool version does not match

 I can only get my system working again by manually moving /boot/kernel to
 /boot/kernel.bad (or whatever) and replacing it with the previous kernel.

 :(



 On Tue, 29 Mar 2011 03:40:17 -0500, krad kra...@gmail.com wrote:

  On 28 March 2011 10:37, Andre Goree an...@drenet.info wrote:

  Hello,

 Ever since I upgraded to 8.2 a few weeks ago, I can't seem to rebuild my
 kernel without it being built with ZFS v14 rather than v15.  This is a
 problem because I'm using root on ZFS and my box won't boot after the
 kernel
 rebuild and reboot.

 At first I thought it was because I rebuilt the kernel without rebuilding
 world, however the same thing happens even after getting up-to-date
 sources
 and rebuilding world.  Anyone else having this problem?

 Thanks in advance.

 Andre Goree
 an...@drenet.info
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


 what is making you think you are running zfs v14? Are you looking at zpool
 status?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



 --
 Andre Goree
 an...@drenet.info
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



as i thought, it doesnt look like you have done a ZPOOL UPGRADE to upgrade
the pool to version 15. You can also do a zfs upgrade to update the file
systems as well
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gcc

2011-04-01 Thread Anton Shterenlikht
On Thu, Mar 31, 2011 at 06:03:07PM +0200, Eduardo wrote:
 At 17:19 31/03/2011, Anton Shterenlikht wrote:
  What is FreeBSD c compiler?
  Isn't it GCC?
 
  Now yes, but FreeBSD needs an iso c'99 compiler and source code is
  iso oriented, not gcc, afaik gcc hacks and code that only compiles on
  gcc can't be commited, there's a mailing list for iso99 compatibility
  checks. gcc is one of them, but there are others. 9.0-CURRENT uses
  llvm but in theory you can use anyone, even tcc.
 
 Are you saying GCC doesn't comply with ISO standard(s)?
 
 Gcc comply with ISO standard,

ok, good, just wanted to check.
I'm very happy that FreeBSD code is strictly standard compliant.

 but has extended it and permits that 
 many developers use that extensions, making the code gcc biased and 
 not iso standard. Some open source projects develops using those 
 hacks (like ffmpeg and libavcodec projects) and explicity says that 
 source code must be compiled with gcc, if you use other compiler, it 
 must be gcc compatible.

Yes, I'm aware of the extensions issue.
This must really make life hell for ports@.

-- 
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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: about NKPT on amd64

2011-04-01 Thread fuzhli
Hi, Alan Cox
Thanks for your reply. I want to know why the NKPT set to 32 in
revision187465,
is it possible that set NKPT less or lager than 32? What's the limitation if
set NKPT to 32?

I also guess the KPTphys[] not used in kernel initialization on amd64 in
revision187465. And
I notice that in revision189075, in function pmap_init() the vm page array
entries for the kernel
pmap's page table pages is initialized; but in revision187458, the
initialization is not performed.

I guess the earlist part of the kernel's initialization is the
pmap_bootstrap(firstaddr),
this will call function create_pagetables().
In function create_pagetables(), we first use allocpages(firstaddr,
NKPT) to
allocate NKPT pages, then initialize the KPTphys[] and KPDphys[]. But then
the KPDphys[] re-initialize the range (0, *firstaddr) in 2MB page:

/* Map from zero to end of allocations under 2M pages */
/* This replaces some of the KPTphys entries above */
for (i = 0; (i  PDRSHIFT)  *firstaddr; i++) {
((pd_entry_t *)KPDphys)[i] = i  PDRSHIFT;
((pd_entry_t *)KPDphys)[i] |= PG_RW | PG_V | PG_PS | PG_G;
}

 This means that the KPDphys[] will be override completely if the range
(KERNBASE, virtual_avail)'s size larger than 64MB, so I guess that the
KPTphys[]
not used anymore if the range (KERNBASE, virtual_avail)'s size larger than
64MB.

在 2011年3月30日 下午11:50,Alan Cox a...@rice.edu写道:

 On 03/30/2011 01:47, fuzhli wrote:
  Hi, Alan
  I'm study the Revision 187465 : Prepare for a larger kernel virtual
  address space. After read some relative source code, I have an
  question about the macro NKPT on amd64: why 32 is enough for the
  kernel page table pages? Do it means that the range (KERNBASE,
  virtual_avail) should always less than 64MB( 32 * 2MB)?

 NKPT sets the size of the kernel page table during the earliest part of

the kernel's initialization. After that, the size of the page table
 grows dynamically according to usage.

 Regards,
 Alan




-- 
别做梦,你已24岁了
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Easiest desktop BSD distro

2011-04-01 Thread Polytropon
On Thu, 31 Mar 2011 17:17:16 -0400, Tom Worster f...@thefsb.org wrote:
 I've no experience with VirtualBSD. But I can say that VBox comes with
 host configs for FreeBSD 32 and 64 clients. Yesterday I fed the FreeBSD
 8.2 RELEASE Disk 1 ISO into VBox and it installed very nicely. Network
 even came up with DHCP.

The only problem with the RELEASE discs is that they
do not provide something preinstalled  preconfigured.
However, it's quite simple to follow the steps in the
handbook to get KDE or Gnome running and start from
there.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Gui CD soft recommend

2011-04-01 Thread Peter Vereshagin
I know St. Peter won't call your name, freebsd-questions!
2011/03/30 22:00:14 +0100 Graham Bentley ad...@cpcnw.co.uk = To 
freebsd-questions@freebsd.org :
GB Which GUI CD writing software can you recommend [less dependencies = better]

tkdvd
should use it patched for -joliet-long ever.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


nfs error: No route to host when starting apache ...

2011-04-01 Thread Marc G. Fournier


I just setup an nfs mount between two servers ...

ServerA, nfsd on 192.168.1.8
ServerB, nfs client on 192.168.1.7

I have a jail, ServerC, running on 192.168.1.7 ... most operations appear 
to work, but it looks like 'special files' of a sort aren't working, for 
when I try and startup Apache, I get:


[Fri Apr 01 19:42:02 2011] [emerg] (65)No route to host: couldn't grab the 
accept mutex


When I try and do a 'newaliases', I get:

# newaliases
postalias: fatal: lock /etc/aliases.db: No route to host

Yet, for instance, both MySQL and PostgreSQL are running without any 
issues ...


So, the mount is there, it is readable, it is working ... I can ssh into 
the jail, I can create files, etc ...


I do have rpc.lockd and rpc.statd running on both client / server sides 
...


I'm not seeing anything in eithr the man page for mount_nfs *or* nfsd that 
might account / corect for something like this, but since I'm not sure 
what this is exactly, not sure exactl what I should be looking for :(


Note that this behaviour happens at the *physical* server level as well, 
having tested with using postalias to generate the same 'lock' issue above 
...


Now, I do have mountd/nfsd started iwth the -h to bind them to 192.168.1.8 
... *but*, the servers themselves, although on same switch do have 
different default gateways ... I'm not seeing anything within the man page 
for, say, rpc.statd/rpc.lockd that allows me to bind it to the 
192.168.1.0/24 IP, so is it binding to my public IP instead of my private? 
So nfsd / mount_nfs can talk find, as they go thorugh 192.168.1.0/24 as 
desired, but rpc.statd/rpc.lockd are the public IPs and not able to talk 
to each other?


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


Video Capture Cards

2011-04-01 Thread Derek Funk
Searched in the mailing list but no luck.  Has anyone set up a MythTV 
backend?  Any does anyone know of issues with the WinTV-PVR-350 on FreeBSD?


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


RE: Video Capture Cards(correction)

2011-04-01 Thread Derek Funk



 Original Message 
Subject:Video Capture Cards
Date:   Fri, 01 Apr 2011 16:38:32 -0500
From:   Derek Funk dfu...@cox.net
To: freebsd-questions@freebsd.org



Searched in the mailing list but no luck.  Has anyone set up a MythTV
backend?  Any does anyone know of issues with the WinTV-PVR-350 on FreeBSD?

Derek

WinTV-HVR-2250 not WinTV-PVR-350



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


mount a dumpfile

2011-04-01 Thread Warren Block
Is it possible to mount a dump(8) dumpfile?  restore(8) obviously knows 
everything about the file structure, and restore -i is nearly a 
read-only mount_dump already.

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


Re: nfs error: No route to host when starting apache ...

2011-04-01 Thread Marc G. Fournier


I've succeedig in getting a bit further ... by the time I got to the 
bottom of my original, I started to think in terms of rpc more, and had 
overlooked lookign at thte rpcbind man page, which *does* have a -h option 
... setting that fixes things perfectly *almost* ...


The last issue I seem to be  hitting *might* be a 6.x NFS client against a 
7.x server issue ... ?


Postfix generates:

postfix/showq[65261]: fatal: select lock: Permission denied

The only post I found about this was:

http://lists.freebsd.org/pipermail/freebsd-questions/2010-April/215284.html

But there didn't appear to be any responses ... so either all responses 
were private to Robert, or ... ?


This is my last 6.x box, so it is not overly critical, but would be nice 
if I could get it to work properly ...



On Fri, 1 Apr 2011, Marc G. Fournier wrote:



I just setup an nfs mount between two servers ...

ServerA, nfsd on 192.168.1.8
ServerB, nfs client on 192.168.1.7

I have a jail, ServerC, running on 192.168.1.7 ... most operations appear to 
work, but it looks like 'special files' of a sort aren't working, for when I 
try and startup Apache, I get:


[Fri Apr 01 19:42:02 2011] [emerg] (65)No route to host: couldn't grab the 
accept mutex


When I try and do a 'newaliases', I get:

# newaliases
postalias: fatal: lock /etc/aliases.db: No route to host

Yet, for instance, both MySQL and PostgreSQL are running without any issues 
...


So, the mount is there, it is readable, it is working ... I can ssh into the 
jail, I can create files, etc ...


I do have rpc.lockd and rpc.statd running on both client / server sides ...

I'm not seeing anything in eithr the man page for mount_nfs *or* nfsd that 
might account / corect for something like this, but since I'm not sure what 
this is exactly, not sure exactl what I should be looking for :(


Note that this behaviour happens at the *physical* server level as well, 
having tested with using postalias to generate the same 'lock' issue above 
...


Now, I do have mountd/nfsd started iwth the -h to bind them to 192.168.1.8 
... *but*, the servers themselves, although on same switch do have different 
default gateways ... I'm not seeing anything within the man page for, say, 
rpc.statd/rpc.lockd that allows me to bind it to the 192.168.1.0/24 IP, so is 
it binding to my public IP instead of my private? So nfsd / mount_nfs can 
talk find, as they go thorugh 192.168.1.0/24 as desired, but 
rpc.statd/rpc.lockd are the public IPs and not able to talk to each other?


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




Marc G. FournierHub.Org Hosting Solutions S.A.
scra...@hub.org http://www.hub.org

Yahoo:yscrappySkype: hub.orgICQ:7615664MSN:scra...@hub.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: nfs error: No route to host when starting apache ...

2011-04-01 Thread Rick Macklem
 I just setup an nfs mount between two servers ...
 
 ServerA, nfsd on 192.168.1.8
 ServerB, nfs client on 192.168.1.7
 
 I have a jail, ServerC, running on 192.168.1.7 ... most operations
 appear
 to work, but it looks like 'special files' of a sort aren't working,
 for
 when I try and startup Apache, I get:
 
 [Fri Apr 01 19:42:02 2011] [emerg] (65)No route to host: couldn't grab
 the
 accept mutex
 
 When I try and do a 'newaliases', I get:
 
 # newaliases
 postalias: fatal: lock /etc/aliases.db: No route to host
 
 Yet, for instance, both MySQL and PostgreSQL are running without any
 issues ...
 
 So, the mount is there, it is readable, it is working ... I can ssh
 into
 the jail, I can create files, etc ...
 
 I do have rpc.lockd and rpc.statd running on both client / server
 sides
 ...
 
Since rpc.lockd and rpc.statd expect to be able to do IP broadcast
(same goes for rpcbind), I suspect that might be a problem w.r.t.
jails, although I know nothing about how jails work?

 I'm not seeing anything in eithr the man page for mount_nfs *or* nfsd
 that
 might account / corect for something like this, but since I'm not sure
 what this is exactly, not sure exactl what I should be looking for
 :(
 
 Note that this behaviour happens at the *physical* server level as
 well,
 having tested with using postalias to generate the same 'lock' issue
 above
 ...
 
 Now, I do have mountd/nfsd started iwth the -h to bind them to
 192.168.1.8
 ... *but*, the servers themselves, although on same switch do have
 different default gateways ... I'm not seeing anything within the man
 page
 for, say, rpc.statd/rpc.lockd that allows me to bind it to the
 192.168.1.0/24 IP, so is it binding to my public IP instead of my
 private?
 So nfsd / mount_nfs can talk find, as they go thorugh 192.168.1.0/24
 as
 desired, but rpc.statd/rpc.lockd are the public IPs and not able to
 talk
 to each other?
 
 Thx ...
 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: nfs error: No route to host when starting apache ...

2011-04-01 Thread Rick Macklem
  I just setup an nfs mount between two servers ...
 
  ServerA, nfsd on 192.168.1.8
  ServerB, nfs client on 192.168.1.7
 
  I have a jail, ServerC, running on 192.168.1.7 ... most operations
  appear
  to work, but it looks like 'special files' of a sort aren't working,
  for
  when I try and startup Apache, I get:
 
  [Fri Apr 01 19:42:02 2011] [emerg] (65)No route to host: couldn't
  grab
  the
  accept mutex
 
  When I try and do a 'newaliases', I get:
 
  # newaliases
  postalias: fatal: lock /etc/aliases.db: No route to host
 
  Yet, for instance, both MySQL and PostgreSQL are running without any
  issues ...
 
  So, the mount is there, it is readable, it is working ... I can ssh
  into
  the jail, I can create files, etc ...
 
  I do have rpc.lockd and rpc.statd running on both client / server
  sides
  ...
 
 Since rpc.lockd and rpc.statd expect to be able to do IP broadcast
 (same goes for rpcbind), I suspect that might be a problem w.r.t.
 jails, although I know nothing about how jails work?
 
Oh, and you can use the nolock mount option to avoid use of
rpc.lockd and rpc.statd.

  I'm not seeing anything in eithr the man page for mount_nfs *or*
  nfsd
  that
  might account / corect for something like this, but since I'm not
  sure
  what this is exactly, not sure exactl what I should be looking for
  :(
 
  Note that this behaviour happens at the *physical* server level as
  well,
  having tested with using postalias to generate the same 'lock' issue
  above
  ...
 
  Now, I do have mountd/nfsd started iwth the -h to bind them to
  192.168.1.8
  ... *but*, the servers themselves, although on same switch do have
  different default gateways ... I'm not seeing anything within the
  man
  page
  for, say, rpc.statd/rpc.lockd that allows me to bind it to the
  192.168.1.0/24 IP, so is it binding to my public IP instead of my
  private?
  So nfsd / mount_nfs can talk find, as they go thorugh 192.168.1.0/24
  as
  desired, but rpc.statd/rpc.lockd are the public IPs and not able to
  talk
  to each other?
 
  Thx ...
  ___
  freebsd-...@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-net
  To unsubscribe, send any mail to
  freebsd-net-unsubscr...@freebsd.org
 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Port dependencies

2011-04-01 Thread Chris Telting


Just in a thoughtful mood and thought I'd to the question to the cloud.

One of my biggest gripes with the ports system is dependency hell.  
Ports link against so my optional components and pull them into the 
install.  Libraries and components are built based on make file 
defines.  But this doesn't have to be so.  It's possible and easy enough 
to check a running system for which libraries are installed and only if 
a feature is enabled to load the library.  The number of console 
programs that want to pull in X window or kde is my boggling.  Knowing 
how to program myself when I see a make config menu on every single 
port it makes me want to cry.  I think the make config menus should 
have everything checked by default and only be provided to prevent 
things from being compiled such as for embedded devices.


My question is why is this so?  Why can't programs do more run time 
configuration?  Is a configuration run time system library needed to 
make it easier?


Chris

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


Re: mount a dumpfile

2011-04-01 Thread Jerry McAllister
On Fri, Apr 01, 2011 at 05:08:15PM -0600, Warren Block wrote:

 Is it possible to mount a dump(8) dumpfile?  restore(8) obviously knows 
 everything about the file structure, and restore -i is nearly a 
 read-only mount_dump already.

I don't think so.   It is a different structure.

jerry


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


Kerberos and su to root

2011-04-01 Thread Chris Telting


I have multiple systems and jails at my home.  I would very much like to 
implement a single sign on strategy with kerberos.  I think it's safer 
than having private keys on every single box.  I can easily do this for 
shh user logins to multiple boxes.  But I like to sign in as a user and 
then su to root when I get there.  (Forget about sudo, I am 
administering these boxes and don't want to type sudo for every single 
command, it's not a user machine).  From what I understand of Kerberos I 
would need change identity and type a password every time I ksu which is 
what I'm trying to avoid.


Am I right that it is imposable to maintain multiple simultaneous 
credentials and get the right one to automatically be used?


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


Re: Port dependencies

2011-04-01 Thread Warren Block

On Fri, 1 Apr 2011, Chris Telting wrote:

One of my biggest gripes with the ports system is dependency hell.  Ports 
link against so my optional components and pull them into the install. 
Libraries and components are built based on make file defines.  But this 
doesn't have to be so.  It's possible and easy enough to check a running 
system for which libraries are installed and only if a feature is enabled to 
load the library.


Port Makefiles already have BUILD_DEPENDS, RUN_DEPENDS, and LIB_DEPENDS, 
which do this automatically.


The number of console programs that want to pull in X window or kde is 
my boggling.


Those would not really be console programs, then, or their dependencies 
are directly or indirectly dependent on X or KDE.


Knowing how to program myself when I see a make config menu on every 
single port it makes me want to cry.  I think the make config menus 
should have everything checked by default and only be provided to 
prevent things from being compiled such as for embedded devices.


You are mistaken about what the config options do.  For example, I have 
hal installed, but don't want to use it when building xorg-server.  The 
config options make that easy.


My question is why is this so?  Why can't programs do more run time 
configuration?  Is a configuration run time system library needed to 
make it easier?


Letting the user explicitly configure what they want is better than just 
assuming based on what they have installed.


If you really want to avoid the config options, set the BATCH variable 
in make.conf or on the command line.  Or use config-recursive to get all 
of the config options over with at the beginning of the build.

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


Re: Port dependencies

2011-04-01 Thread Polytropon
On Fri, 01 Apr 2011 16:58:04 -0700, Chris Telting christopher...@telting.org 
wrote:
 Just in a thoughtful mood and thought I'd to the question to the cloud.

Oh the joy of cloud computing, erm... discussion. :-)



 One of my biggest gripes with the ports system is dependency hell.  
 Ports link against so my optional components and pull them into the 
 install.  Libraries and components are built based on make file 
 defines. 

If you do install a program via pkg_add (it's about
precompiled binaries, so no Makefile involved, not
even a ports tree), there are also means to determine
if something ELSE is needed - as a dependency. Hard
disk space is cheap today, so 99% of users don't even
bother installing all the stuff they primarily won't
need, but the program THAT they need insists on it.



 But this doesn't have to be so.  It's possible and easy enough 
 to check a running system for which libraries are installed and only if 
 a feature is enabled to load the library. 

It already works that way. Say program A needs B of version
n as dependency, then B(n) has to be installed even if
B(n-1) is already present on the system. This is no big
deal if B isn't installed at all, but requires caution
when it is (at version n-1). Of course, B may have other
dependencies that do not matter to A, but to B, so even
C(m) gets installed.



 The number of console 
 programs that want to pull in X window or kde is my boggling. 

Hmmm... The only one I remember being that way is the
old cvsup, but there was nocvsup-nogui (or -nox11?).



 Knowing 
 how to program myself when I see a make config menu on every single 
 port it makes me want to cry. 

You can script those mechanism, so you get rid of that
interaction and can use file-defined settings.



 I think the make config menus should 
 have everything checked by default and only be provided to prevent 
 things from being compiled such as for embedded devices.

Oh no, please - NO! Everything checked by default? That
would be problematic for those who, for example, don't
WANT to use HAL+DBUS because it just doesn't work for
them. Or people who have security concerns (or maybe
even external regulations) so they do not want to install
something. And remember: Regarding codecs for mplayer
and mencoder, it's illegal to listen to MP3 in the US! :-)



 My question is why is this so?  Why can't programs do more run time 
 configuration?  Is a configuration run time system library needed to 
 make it easier?

You're bringing up an interesting idea, but runtime
detection of library (or feature) availability seems
to be very time consuming to me. An example is mplayer.
On older system, I did always compile it to match the
CPU that is present, means NO runtime CPU detection.
Why? Because it often runs too slow on older system if
enabled.

And let's assume another typical example from  the
multimedia sector. You have installed mplayer and want
to play MP3 audio or an MPEG video file, or even a
DVD - which is completely illegal in the US. :-)
But there is no libdvd installed, and no MP3 codecs
for playing or encoding. What should happen? Upon
first start, should the program request you to
download and install them? But what if the system
is offline? I would assume it's better to install
all the stuff needed at install time, no matter if
being from ports or as a package.

The problem with packages is that most ports have
so many options that it would result in 2^x packages
if the port has x options. And how should the ports
then be named? Should the selected options be
abbreviated and in alphabetical order?

Well, I would REALLY like to have a USABLE set of
options predefined and compiled into the packages.
I know that this may very problematic (see codecs),
and the packages usually are made using the DEFAULT
options which may not be the OPTIMAL options for
everyone. And sometimes, there even isn't a package
(e. g. OpenOffice) with the required set of options,
and even if it is, half of the stuff one assumes is
missing (also see OpenOffice).

So there is still stuff one needs to compile, and
YOU are in charge to define the options you need.
This is the downside when you're running a multi-
purpose OS like FreeBSD.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Port dependencies

2011-04-01 Thread Matt Emmerton
  The number of console 
  programs that want to pull in X window or kde is
  my boggling. 

 Hmmm... The only one I remember being that way is
 the old cvsup, but there was nocvsup-nogui (or -nox11?).

Over the years I've found that ghostscript and gd are two common culprits.
Every time I see a webserver with X11 on it, it's because of these two.  Of
course, using ghostscript*-nox11 as well as setting WITHOUT_X11=yes solves a
lot of this mess, but on a system that's already been infested, it's
easier just to rebuild from scratch.

I dearly love FreeBSD, but after a few hours of building world and upgrading
ports/packages, walking over to my RHEL/CentOS machines and typing yum
update -y  reboot just brings tears to my eyes.

--
Matt Emmerton

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


tuning a system for a single user

2011-04-01 Thread Eitan Adler
When I look for tuning guides online, or reading tuning(7) I find a
lot of guides for tuning a system for multiple users or for specific
purposes (web servers, file servers, etc)

I am looking for specific tunables that might make the experience of
using FreeBSD better. I found the sysctl kern.maxusers but I'm unsure
how things affects things.  Can I reduce the amount of time, memory,
etc the kernel spends enforcing quota, scheduling, etc?

I don't have anything particular in mind - just want to get a general
set of tunables I might be interested in.


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


Re: Port dependencies

2011-04-01 Thread Chris Telting

On 04/01/2011 17:51, Polytropon wrote:

On Fri, 01 Apr 2011 16:58:04 -0700, Chris Teltingchristopher...@telting.org  
wrote:

Just in a thoughtful mood and thought I'd to the question to the cloud.

Oh the joy of cloud computing, erm... discussion. :-)
Wasn't that the a subplot of the hitch hikers guide?  That the sum of 
human consciousness is just a cloud computer?  New term, old idea.



One of my biggest gripes with the ports system is dependency hell.
Ports link against so my optional components and pull them into the
install.  Libraries and components are built based on make file
defines.

If you do install a program via pkg_add (it's about
precompiled binaries, so no Makefile involved, not
even a ports tree), there are also means to determine
if something ELSE is needed - as a dependency. Hard
disk space is cheap today, so 99% of users don't even
bother installing all the stuff they primarily won't
need, but the program THAT they need insists on it.
Ports or packages, what I'm discussing is minimizing dependencies.  I 
compile my own packages and use them across all my computers.


What I'm saying I'd like to see is minimal installs.  If you need a 
feature like for instance LDAP or SQL then you need to install that 
port.  Need another feature? Install yet another port.  The program 
should detect that new programs/libraries are available or at a minimum 
enable them though uncommenting a line in a conf file.




But this doesn't have to be so.  It's possible and easy enough
to check a running system for which libraries are installed and only if
a feature is enabled to load the library.

It already works that way. Say program A needs B of version
n as dependency, then B(n) has to be installed even if
B(n-1) is already present on the system. This is no big
deal if B isn't installed at all, but requires caution
when it is (at version n-1). Of course, B may have other
dependencies that do not matter to A, but to B, so even
C(m) gets installed.
And that's the mess I don't like.  It's like the six degrees of 
separation rule.  Installing one application sometimes means installing 
100 other ports/packages with features the average user has no need or 
interest in yet.  I'm just saying we should have to need to 
install/compile all those packages when we don't need them and we should 
have to need to recompile ports just to add a new capability.



The number of console
programs that want to pull in X window or kde is my boggling.

Hmmm... The only one I remember being that way is the
old cvsup, but there was nocvsup-nogui (or -nox11?).
Well I decided I wanted to try to setup pulseaudio as a network sound 
server on a headless computer and it pulled in X.  Sure I could 
recompile just for that one computer.  But that isn't elegant.  The 
storage space doesn't matter.  What annoys me is the installation time 
and the longer compile time as well as to some extent downing time.



I think the make config menus should

have everything checked by default and only be provided to prevent
things from being compiled such as for embedded devices.

Oh no, please - NO! Everything checked by default? That
would be problematic for those who, for example, don't
WANT to use HAL+DBUS because it just doesn't work for
them. Or people who have security concerns (or maybe
even external regulations) so they do not want to install
something. And remember: Regarding codecs for mplayer
and mencoder, it's illegal to listen to MP3 in the US! :-)
The point would be that the programs wouldn't have those features 
enabled by default, you have to configure them or the program can 
auto-detect.

My question is why is this so?  Why can't programs do more run time
configuration?  Is a configuration run time system library needed to
make it easier?

You're bringing up an interesting idea, but runtime
detection of library (or feature) availability seems
to be very time consuming to me. An example is mplayer.
On older system, I did always compile it to match the
CPU that is present, means NO runtime CPU detection.
Why? Because it often runs too slow on older system if
enabled.
Well obviously that one actual good reason for people to compile their 
own ports.  Nothing can change that.  What I'm saying is that libraries 
and features shouldn't be in the config menu.



And let's assume another typical example from  the
multimedia sector. You have installed mplayer and want
to play MP3 audio or an MPEG video file, or even a
DVD - which is completely illegal in the US. :-)
But there is no libdvd installed, and no MP3 codecs
for playing or encoding. What should happen? Upon
first start, should the program request you to
download and install them? But what if the system
is offline? I would assume it's better to install
all the stuff needed at install time, no matter if
being from ports or as a package.
If it worked like like would like then you wouldn't be able to play 
those files unless you downloaded another package or compiled the ports