Re: regenerating /var/db/pkg

2010-04-22 Thread Samuel Martín Moro
I once coded a shellscript to do that, restore from corrupted pkgdb I have it at work (if you can wait until next monday) the easyest way I found was to pkg_add -Ff every package missing in pkg_info, and extract missing files from packages still there but you would need a package list to do that

Re: /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 a prerequisite for COMPAT_IA32

2010-04-22 Thread Gary Jennejohn
On Wed, 21 Apr 2010 20:57:59 +0200 Julian H. Stacey j...@berklix.com wrote: Hi hack...@freebsd.org with amd64, but not with i386, /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 is an undocemneted pre-requisite for COMPAT_IA32 (so those who enable COMPAT_IA32 for ports/emulators, but disable

Re: /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 a prerequisite for COMPAT_IA32

2010-04-22 Thread Julian H. Stacey
Hi, Reference: From: Gary Jennejohn gary.jennej...@freenet.de Reply-to: gary.jennej...@freenet.de Date: Thu, 22 Apr 2010 11:14:40 +0200 Message-id: 20100422111440.69a01...@ernst.jennejohn.org Gary Jennejohn wrote: On Wed, 21 Apr 2010 20:57:59 +0200 Julian H. Stacey

Re: /etc in CVS

2010-04-22 Thread Dag-Erling Smørgrav
Sergey Babkin bab...@verizon.net writes: I wonder if a version control system, like SVN, could be used to keep track of all the changes in /etc. (Or maybe it already is and I'm simply out of date). arch is commonly used for things like this. DES -- Dag-Erling Smørgrav - d...@des.no

Re: /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 a prerequisite for COMPAT_IA32

2010-04-22 Thread Kostik Belousov
On Wed, Apr 21, 2010 at 08:57:59PM +0200, Julian H. Stacey wrote: Hi hack...@freebsd.org with amd64, but not with i386, /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 is an undocemneted pre-requisite for COMPAT_IA32 (so those who enable COMPAT_IA32 for ports/emulators, but disable COMPAT_FREEBSD7

Re: /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 a prerequisite for COMPAT_IA32

2010-04-22 Thread Julian H. Stacey
Hi Kostik, Kostik Belousov wrote: On Wed, Apr 21, 2010 at 08:57:59PM +0200, Julian H. Stacey wrote: Hi hack...@freebsd.org with amd64, but not with i386, /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 is an undocemneted pre-requisite for COMPAT_IA32 (so those who enable COMPAT_IA32 for

Re: regenerating /var/db/pkg

2010-04-22 Thread Ruben de Groot
On Wed, Apr 21, 2010 at 10:43:37PM -0700, Doug Barton typed: On 4/20/2010 7:11 PM, Aryeh M. Friedman wrote: I acciddentally rm'ed my /var/db/pkg and want to know is it possible to rgenerate it (I have portmaster and portupgrade installed) Portmaster certainly can't do this, it uses the

Re: regenerating /var/db/pkg

2010-04-22 Thread Eitan Adler
Just asking opinions, if people want this, I'll make a patch and file a PR. Is this script correct? #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1 2009/10/25 01:10:29 kensmith Exp $ # # If there is a global system configuration file, suck it in. # if [ -r

Re: regenerating /var/db/pkg

2010-04-22 Thread Diane Bruce
On Tue, Apr 20, 2010 at 10:11:24PM -0400, Aryeh M. Friedman wrote: I acciddentally rm'ed my /var/db/pkg and want to know is it possible to rgenerate it (I have portmaster and portupgrade installed) You would have to write a script which went through each file in /usr/local/bin and

Re: regenerating /var/db/pkg

2010-04-22 Thread Eitan Adler
Hmm, I guess you shouldn't backup /var/foo to /var/bar. If /var is lost, your backup is gone, too. I took the backup location from one of the other periodic scripts. Where should it be backed up to then? ___ freebsd-hackers@freebsd.org mailing list

Re: regenerating /var/db/pkg

2010-04-22 Thread Lars Engels
On Thu, Apr 22, 2010 at 03:21:16PM +0300, Eitan Adler wrote: Just asking opinions, if people want this, I'll make a patch and file a PR. Is this script correct? #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1 2009/10/25 01:10:29 kensmith Exp $ #

Re: regenerating /var/db/pkg

2010-04-22 Thread Diane Bruce
On Thu, Apr 22, 2010 at 04:12:08PM +0300, Eitan Adler wrote: Hmm, I guess you shouldn't backup /var/foo to /var/bar. If /var is lost, your backup is gone, too. In your crontab MAILTO=... @weekly /usr/sbin/pkg_info -I -a Once a week is reasonable. - Diane -- - d...@freebsd.org

Re: regenerating /var/db/pkg

2010-04-22 Thread Trond Endrestøl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 22 Apr 2010 15:21+0300, Eitan Adler wrote: Just asking opinions, if people want this, I'll make a patch and file a PR. Is this script correct? #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1

Re: regenerating /var/db/pkg

2010-04-22 Thread Dan Rue
On Thu, Apr 22, 2010 at 03:21:16PM +0300, Eitan Adler wrote: Just asking opinions, if people want this, I'll make a patch and file a PR. Is this script correct? We're starting to use SSDs for boot drives in our freebsd boxes. We'd like to have /var on a memory backed FS, but losing

Re: regenerating /var/db/pkg

2010-04-22 Thread Joerg Sonnenberger
On Thu, Apr 22, 2010 at 08:56:39AM -0500, Dan Rue wrote: We're starting to use SSDs for boot drives in our freebsd boxes. We'd like to have /var on a memory backed FS, but losing the package database on every reboot is troublesome. Tried using a symlink from /var/db/pkg to /usr/local/.pkgdb

How to change vnode operations ?

2010-04-22 Thread Lukáš Czerner
Hi all, this may sound a little odd, since I have noticed that there is much work done to not allow such a thing ($SUBJ). But may be you can help me and point me to the right direction. I am writing a kernel module with somewhat similar functionality like nullfs has, BUT it has to have some

Re: /etc in CVS

2010-04-22 Thread Ulrich Spörlein
On Thu, 22.04.2010 at 12:18:21 +0200, Dag-Erling Smørgrav wrote: Sergey Babkin bab...@verizon.net writes: I wonder if a version control system, like SVN, could be used to keep track of all the changes in /etc. (Or maybe it already is and I'm simply out of date). arch is commonly used for

FreeBSD Status Report January-March, 2010

2010-04-22 Thread Daniel Gerzo
FreeBSD Quarterly Status Report Introduction This report covers FreeBSD related projects between January and March 2010. Being the first of the four reports planned for 2010 with 46 entries, it shows a good progress of the FreeBSD Project and proves that our committers are keeping up

Re: /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 a prerequisite for COMPAT_IA32

2010-04-22 Thread Gary Jennejohn
On Thu, 22 Apr 2010 11:54:29 +0200 Julian H. Stacey j...@berklix.com wrote: Hi, Reference: From: Gary Jennejohn gary.jennej...@freenet.de Reply-to: gary.jennej...@freenet.de Date: Thu, 22 Apr 2010 11:14:40 +0200 Message-id:

Re: regenerating /var/db/pkg

2010-04-22 Thread Eitan Adler
taking into account your feedback here is the new version If all is good I'll submit a PR #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1 2009/10/25 01:10:29 kensmith Exp $ # # If there is a global system configuration file, suck it in. # if [ -r

Re: regenerating /var/db/pkg

2010-04-22 Thread Doug Barton
On 4/22/2010 6:44 AM, Diane Bruce wrote: On Thu, Apr 22, 2010 at 04:12:08PM +0300, Eitan Adler wrote: Hmm, I guess you shouldn't backup /var/foo to /var/bar. If /var is lost, your backup is gone, too. In your crontab MAILTO=... @weekly /usr/sbin/pkg_info -I -a pkg_info -o -a

Re: regenerating /var/db/pkg

2010-04-22 Thread Doug Barton
On 4/22/2010 9:08 AM, Eitan Adler wrote: taking into account your feedback here is the new version If all is good I'll submit a PR #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1 2009/10/25 01:10:29 kensmith Exp $ # # If there is a global system

Re: regenerating /var/db/pkg

2010-04-22 Thread Doug Barton
On 4/22/2010 9:54 AM, Doug Barton wrote: Also, a better invocation might be: db_loc=`pm_make -f/usr/share/mk/bsd.port.mk -V PKG_DBDIR 2/dev/null` Make that just /usr/bin/make instead of pm_make, I should have looked more carefully at what I pasted. :) Doug -- ... and that's just a

Re: regenerating /var/db/pkg

2010-04-22 Thread Eitan Adler
Same as before - if all is good I'll send a PR #!/bin/sh # # $FreeBSD: src/etc/periodic/daily/210.backup-aliases,v 1.6.36.1.2.1 2009/10/25 01:10:29 kensmith Exp $ # # If there is a global system configuration file, suck it in. # if [ -r /etc/defaults/periodic.conf ] then .

Re: Bug with fixit live 8.0 memstick.img running on F1 after MBR

2010-04-22 Thread Ken Smith
On Wed, 2010-04-21 at 21:09 +0200, Julian H. Stacey wrote: Hi hackers@, No replies in over 4 days to this, so this is a repost, I've also added re@ as newish memstick.img might interest them ? (The live command prompt on F4 wasn't much use, no ls yet.) echo * That said you usually run

Re: regenerating /var/db/pkg

2010-04-22 Thread Diane Bruce
On Thu, Apr 22, 2010 at 09:48:37AM -0700, Doug Barton wrote: On 4/22/2010 6:44 AM, Diane Bruce wrote: On Thu, Apr 22, 2010 at 04:12:08PM +0300, Eitan Adler wrote: ... MAILTO=... @weekly /usr/sbin/pkg_info -I -a pkg_info -o -a would probably be more useful from the standpoint of

Re: regenerating /var/db/pkg

2010-04-22 Thread Matthias Andree
Am 22.04.2010 14:49, schrieb Diane Bruce: On Tue, Apr 20, 2010 at 10:11:24PM -0400, Aryeh M. Friedman wrote: I acciddentally rm'ed my /var/db/pkg and want to know is it possible to rgenerate it (I have portmaster and portupgrade installed) You would have to write a script which went

Re: regenerating /var/db/pkg

2010-04-22 Thread ไพรัช ศรีโยธา
hi, have you tried pkgdb -u ? -- psr มะฃาม ฅินเดินดน มะไฟ ฅนเหลิงฟ้า http://makham.blogspot.com Quoting Diane Bruce d...@db.net: On Tue, Apr 20, 2010 at 10:11:24PM -0400, Aryeh M. Friedman wrote: I acciddentally rm'ed my /var/db/pkg and want to know is it possible to rgenerate it (I

Re: regenerating /var/db/pkg

2010-04-22 Thread b. f.
Am 22.04.2010 14:49, schrieb Diane Bruce: On Tue, Apr 20, 2010 at 10:11:24PM -0400, Aryeh M. Friedman wrote: I acciddentally rm'ed my /var/db/pkg and want to know is it possible to rgenerate it (I have portmaster and portupgrade installed) You would have to write a script which went through

RevLin OS: Help wanted

2010-04-22 Thread RevLin Software
Hello All My name is Patrick Quinn I am currently part of a team working on a new operating system called RevLin OS. RevLin OS will use a new desktop environment called RaVe that is coded almost entirely in web language (Css html5 and Javascript ) with native back ends, all running locally

Re: regenerating /var/db/pkg

2010-04-22 Thread b. f.
Doug Barton wrote: On 4/20/2010 7:11 PM, Aryeh M. Friedman wrote: I acciddentally rm'ed my /var/db/pkg and want to know is it possible to rgenerate it (I have portmaster and portupgrade installed) Portmaster certainly can't do this, it uses the information from /var/db/pkg. I'm not sure if

Re: How to change vnode operations ?

2010-04-22 Thread Gleb Kurtsou
On (22/04/2010 16:02), Lukáš Czerner wrote: Hi all, this may sound a little odd, since I have noticed that there is much work done to not allow such a thing ($SUBJ). But may be you can help me and point me to the right direction. I am writing a kernel module with somewhat similar

Re: regenerating /var/db/pkg

2010-04-22 Thread Diane Bruce
On Thu, Apr 22, 2010 at 06:48:43PM +, b. f. wrote: Doug Barton wrote: On 4/20/2010 7:11 PM, Aryeh M. Friedman wrote: ... find /usr/local -type f -print0 | xargs -0 pkg_which -v | fgrep '?' libchk would also be useful. ... But as Doug suggests, a full cleanup of PREFIX/LOCALBASE and

Re: there is a way to avoid strict libraries linking?

2010-04-22 Thread Steve Franks
It's much safer to just leave the libraries alone.  Just because you upgraded libpng doesn't mean that your old gtk binary will stop working (assuming you are using portupgrade or portmaster -w which preserves old About to get flamed, I know Untrue. Portupgrade deletes the old version of the

Re: there is a way to avoid strict libraries linking?

2010-04-22 Thread Dan Nelson
In the last episode (Apr 22), Steve Franks said: It's much safer to just leave the libraries alone.  Just because you upgraded libpng doesn't mean that your old gtk binary will stop working (assuming you are using portupgrade or portmaster -w which preserves About to get flamed, I know

Re: there is a way to avoid strict libraries linking?

2010-04-22 Thread Dan Nelson
In the last episode (Apr 22), Dan Nelson said: In the last episode (Apr 22), Steve Franks said: (such as myself) incorrectly pointing a port at libpng.5 instead of any libpng, or libpng = 5. Once the ports tree is 'poisoned' in this fashion, there's really no going back. I'd sure vote for

Error checking in ioctl(2)?

2010-04-22 Thread Garrett Cooper
Hi hackers, I realize that this isn't 100% userland code, so the checks should be minimalized, but when looking at the ioctl(2) syscall code (at least I think it is... there's another dupe hanging around in sys/dev/hptmv/ioctl.c), I had some questions related to the error handling not being

RE: Error checking in ioctl(2)?

2010-04-22 Thread Matthew Fleming
Hi hackers, I realize that this isn't 100% userland code, so the checks should be minimalized, but when looking at the ioctl(2) syscall code (at least I think it is... there's another dupe hanging around in sys/dev/hptmv/ioctl.c), I had some questions related to the error handling not

Re: Error checking in ioctl(2)?

2010-04-22 Thread Garrett Cooper
On Thu, Apr 22, 2010 at 4:36 PM, Matthew Fleming matthew.flem...@isilon.com wrote: Hi hackers,     I realize that this isn't 100% userland code, so the checks should be minimalized, but when looking at the ioctl(2) syscall code (at least I think it is... there's another dupe hanging around in

Re: Error checking in ioctl(2)?

2010-04-22 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2010/04/22 17:45, Garrett Cooper wrote: On Thu, Apr 22, 2010 at 4:36 PM, Matthew Fleming matthew.flem...@isilon.com wrote: Hi hackers, I realize that this isn't 100% userland code, so the checks should be minimalized, but when looking at

Re: Error checking in ioctl(2)?

2010-04-22 Thread Garrett Cooper
On Thu, Apr 22, 2010 at 5:51 PM, Xin LI delp...@delphij.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2010/04/22 17:45, Garrett Cooper wrote: On Thu, Apr 22, 2010 at 4:36 PM, Matthew Fleming matthew.flem...@isilon.com wrote: Hi hackers,     I realize that this isn't 100%

Re: /etc in CVS

2010-04-22 Thread Ulrich Spörlein
On Thu, 22.04.2010 at 12:10:50 -0400, Mike Meyer wrote: On Thu, 22 Apr 2010 16:41:27 +0200 Ulrich Spörlein u...@spoerlein.net wrote: On Thu, 22.04.2010 at 12:18:21 +0200, Dag-Erling Smørgrav wrote: Sergey Babkin bab...@verizon.net writes: I wonder if a version control system, like