CVS: cvs.openbsd.org: src

2011-06-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2011/06/06 00:13:46

Modified files:
sys/dev: audio.c 
sys/dev/acpi   : acpiasus.c acpithinkpad.c 
sys/dev/wscons : wskbd.c 

Log message:
Microphone mute button support from acpithinkpad (or elsewhere).
The audio side is a bit lacking; it does not yet mute all types of
devices.
from Alexander Polakov
ok jakemsr



CVS: cvs.openbsd.org: src

2011-06-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2011/06/06 00:15:02

Modified files:
sys/arch/i386/conf: RAMDISK 

Log message:
Toss a rare device driver; this makes msi interrupts fit.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Otto Moerbeek
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2011/06/06 01:20:13

Modified files:
bin/kill   : kill.c 

Log message:
zap unneeded test; from pablo caballero; ok nicm@



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 01:54:33

Modified files:
sys/arch/vax/boot/common: str.S 

Log message:
Remove strcat and strncmp which are both unused, thereby slightly shrinking the 
bootblocks.

pointed out by mk@
ok miod@



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 01:57:07

Modified files:
usr.bin/pkg-config: pkg-config 

Log message:
First steps of teaching pkg-config about 'alpha' and 'beta' versions.
The order is 'alpha'  'beta'  ' ' , and the common shorts 'a' and 'b'
are also accepted.
It may have some rought edges, but they will be dealt with later.

tested in a full bulk by me,
reads good to landry@



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2011/06/06 02:05:05

Modified files:
sbin/isakmpd   : isakmpd.8 

Log message:
some improvements for the text on packet capture; from Lawrence Teo
ok sthen



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 05:16:59

Modified files:
usr.bin/pkg-config: pkg-config 

Log message:
also handle the 'rc' suffix



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 05:18:55

Modified files:
usr.bin/pkg-config: pkg-config 

Log message:
move simple numeric comparison to a single routine, instead of duplicating it



Re: CVS: cvs.openbsd.org: src

2011-06-06 Thread Matthias Kilian
On Mon, Jun 06, 2011 at 01:57:07AM -0600, Jasper Lievisse Adriaanse wrote:
 Modified files:
   usr.bin/pkg-config: pkg-config 
 
 Log message:
 First steps of teaching pkg-config about 'alpha' and 'beta' versions.
 The order is 'alpha'  'beta'  ' ' , and the common shorts 'a' and 'b'
 are also accepted.
 It may have some rought edges, but they will be dealt with later.

What's the plan with pkg-config? The freedesktop version has a very
weird version comparision algorithm which doesn't recognize any special
strings like `alpha', 'beta', rc[[:digit:]]* etc.

While a more correct (and documented) version comparision would be
nice, it won't protect us from strange version numbers used in upstream
projects.

One example: if i understand the code from the freedesktop pkg-config,
the following two version numbers would compqre equal:

1.2.3.alpha
1:2/3alpha

Ciao,
Kili



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 06:32:17

Modified files:
usr.bin/pkg-config: pkg-config 

Log message:
- style tweaks by espie@
- bump version to 0.25



CVS: cvs.openbsd.org: src

2011-06-06 Thread Alexandr Shadchin
CVSROOT:/cvs
Module name:src
Changes by: shadc...@cvs.openbsd.org2011/06/06 06:34:35

Removed files:
sys/arch/mac68k/include: keyboard.h 

Log message:
Removing unused header

ok miod@



Re: CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
On Mon, Jun 06, 2011 at 02:20:54PM +0200, Matthias Kilian wrote:
 On Mon, Jun 06, 2011 at 01:57:07AM -0600, Jasper Lievisse Adriaanse wrote:
  Modified files:
  usr.bin/pkg-config: pkg-config 
  
  Log message:
  First steps of teaching pkg-config about 'alpha' and 'beta' versions.
  The order is 'alpha'  'beta'  ' ' , and the common shorts 'a' and 'b'
  are also accepted.
  It may have some rought edges, but they will be dealt with later.
 
 What's the plan with pkg-config? The freedesktop version has a very
 weird version comparision algorithm which doesn't recognize any special
 strings like `alpha', 'beta', rc[[:digit:]]* etc.
 
 While a more correct (and documented) version comparision would be
 nice, it won't protect us from strange version numbers used in upstream
 projects.
 
 One example: if i understand the code from the freedesktop pkg-config,
 the following two version numbers would compqre equal:
 
   1.2.3.alpha
   1:2/3alpha
 
 Ciao,
   Kili

The fd.o version comparison is rather odd indeed, and unless  
someone really wants our pkg-config to support versions like '1:2/3alpha' I 
think we will stick to a clearly documented (I'm working on that) comparison 
algorithm that is strict and won't allow junk like '2.1.3~rc5' from ftgl. That
  
was actually the first version I encountered in our tree that uses such a 
twisted scheme.

So, we're probably not going the same way fd.o went with comparison schemas
and I don't think many upstream projects favor it either.

-- 
Cheers,
Jasper

Capable, generous men do not create victims, they nurture them.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2011/06/06 07:19:29

Modified files:
sys/arch/sparc64/sparc64: trap.c 

Log message:
Set FEF bit in the %fprs register when handling an fp_disabled trap from
userland.  Prevents userland applications from trapping forever on the next
floating point instruction executed after clearing this flag.  Fixes issues
with threaded applications, sinc our pthreads library clears the FEF bit
under some circumstances.

ok miod@, tested by ajacoutot@



CVS: cvs.openbsd.org: src

2011-06-06 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2011/06/06 07:22:29

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2011-06-06 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2011/06/06 07:21:52

Modified files:
sys/dev/pci: pcidevs 

Log message:
The host and PCIe bridge parts of the RS780 northbridge crry the AMD vendor ID.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 07:55:25

src/regress/usr.bin/pkg-config

Update of /cvs/src/regress/usr.bin/pkg-config
In directory cvs.openbsd.org:/tmp/cvs-serv3663/pkg-config

Log Message:
Directory /cvs/src/regress/usr.bin/pkg-config added to the repository



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 07:55:41

src/regress/usr.bin/pkg-config/pcdir

Update of /cvs/src/regress/usr.bin/pkg-config/pcdir
In directory cvs.openbsd.org:/tmp/cvs-serv28200/pcdir

Log Message:
Directory /cvs/src/regress/usr.bin/pkg-config/pcdir added to the repository



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 07:58:03

Added files:
regress/usr.bin/pkg-config: Makefile 
regress/usr.bin/pkg-config/pcdir: corrupt1.pc corrupt2.pc 
  print-req-priv.pc 
  print-req-priv2.pc 

Log message:
initial batch of tests for pkg-config(1), which are loong overdue.
this is far from complete, so tests will be added along the way.

ok sthen@



Re: CVS: cvs.openbsd.org: src

2011-06-06 Thread Marc Espie
On Mon, Jun 06, 2011 at 02:20:54PM +0200, Matthias Kilian wrote:
 On Mon, Jun 06, 2011 at 01:57:07AM -0600, Jasper Lievisse Adriaanse wrote:
  Modified files:
  usr.bin/pkg-config: pkg-config 
  
  Log message:
  First steps of teaching pkg-config about 'alpha' and 'beta' versions.
  The order is 'alpha'  'beta'  ' ' , and the common shorts 'a' and 'b'
  are also accepted.
  It may have some rought edges, but they will be dealt with later.
 
 What's the plan with pkg-config? The freedesktop version has a very
 weird version comparision algorithm which doesn't recognize any special
 strings like `alpha', 'beta', rc[[:digit:]]* etc.
 
 While a more correct (and documented) version comparision would be
 nice, it won't protect us from strange version numbers used in upstream
 projects.
 
 One example: if i understand the code from the freedesktop pkg-config,
 the following two version numbers would compqre equal:
 
   1.2.3.alpha
   1:2/3alpha

I think we ought to normalize version numbers in .pc files a bit, even if
that means a bit more patching. And possibly talking with upstream when
we find sane people.

Just because upstream is very sloppy doesn't mean we should.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2011/06/06 08:20:50

Modified files:
sys/arch/hppa/hppa: trap.c 

Log message:
Fix whitespace and use #ifdef TRAPDEBUG instead of #if 0.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2011/06/06 08:23:26

Modified files:
sys/arch/hppa/hppa: genassym.cf 

Log message:
Sort includes.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 08:31:15

Modified files:
regress/usr.bin/pkg-config: Makefile 
Added files:
regress/usr.bin/pkg-config/pcdir: print-provides.pc print-req.pc 
  print-req2.pc 

Log message:
- add some more tests for printing stuff about the pkgconfig files
- tidy Makefile



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 08:59:13

Modified files:
usr.bin/pkg-config: pkg-config.1 

Log message:
Add AUTHORS section
sure espie@, ok jmc@



CVS: cvs.openbsd.org: src

2011-06-06 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2011/06/06 08:59:16

Modified files:
usr.sbin/memconfig: memconfig.c 

Log message:
don't open /dev/mem to print the help, allowing mortals to read it
ok deraadt matthew



CVS: cvs.openbsd.org: src

2011-06-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2011/06/06 09:29:40

Modified files:
distrib/sets/lists/base: md.alpha 
distrib/sets/lists/comp: md.alpha 

Log message:
sync



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 10:08:52

Modified files:
usr.bin/pkg-config: pkg-config.1 

Log message:
fix spello in...er...my own name.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2011/06/06 11:05:46

Modified files:
sys/kern   : kern_fork.c kern_malloc.c 

Log message:
push kernel malloc(9) and kernel stacks into non-dma memory, since that
appears to be safe now.  If not, we'll know soon where the bugs lie, so
that we can fix them.  This diff has been in snapshots for many months.
ok oga miod



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 11:10:43

Modified files:
usr.bin/pkg-config: pkg-config pkg-config.1 

Log message:
rename PKG_CONFIG_LOGFILE to PKG_CONFIG_LOG to match fd.o



CVS: cvs.openbsd.org: src

2011-06-06 Thread Ariane van der Steldt
CVSROOT:/cvs
Module name:src
Changes by: ari...@cvs.openbsd.org  2011/06/06 11:10:23

Modified files:
sys/arch/i386/i386: pmap.c 
sys/dev/pci/drm: i915_drv.c 
sys/kern   : exec_elf.c kern_exec.c kern_malloc.c sysv_shm.c 
sys/uvm: uvm_extern.h uvm_fault.c uvm_io.c uvm_km.c 
 uvm_map.c uvm_map.h uvm_mmap.c uvm_unix.c 

Log message:
Backout vmmap in order to repair virtual address selection algorithms
outside the tree.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Ariane van der Steldt
CVSROOT:/cvs
Module name:src
Changes by: ari...@cvs.openbsd.org  2011/06/06 11:18:26

Modified files:
lib/libkvm : kvm_proc.c shlib_version 
usr.sbin/procmap: procmap.c 

Log message:
Userland counterpart of the vmmap backout; cranks major version of libkvm.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 11:35:34

Modified files:
regress/usr.bin/pkg-config: Makefile 
Added files:
regress/usr.bin/pkg-config/pcdir: sysroot.pc 

Log message:
add tests for PKG_CONFIG_SYSROOT



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 11:45:53

Modified files:
regress/usr.bin/pkg-config: Makefile 

Log message:
add currently failing test for PKG_CONFIG_LOG



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 11:49:23

Modified files:
regress/usr.bin/pkg-config: Makefile 

Log message:
use ${.OBJDIR} instead of poluting ${.CURDIR}



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 11:49:37

Modified files:
usr.bin/pkg-config: pkg-config 

Log message:
fix PKG_CONFIG_LOG as the first argument to beautify_list() was incorrect



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 11:58:07

Modified files:
regress/usr.bin/pkg-config: Makefile 

Log message:
tidy



CVS: cvs.openbsd.org: src

2011-06-06 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2011/06/06 12:50:28

Modified files:
distrib/sets/lists/base: md.alpha md.amd64 md.armish md.hp300 
 md.hppa md.hppa64 md.i386 md.landisk 
 md.loongson md.mac68k md.macppc 
 md.mvme68k md.mvmeppc md.palm md.sgi 
 md.socppc md.sparc md.sparc64 md.zaurus 

Log message:
sync



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 13:00:23

Modified files:
regress/usr.bin: Makefile 

Log message:
hookup pkg-config tests

ok deraadt@



CVS: cvs.openbsd.org: xenocara

2011-06-06 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2011/06/06 13:45:44

Modified files:
data/xkeyboard-config: Makefile.inc 
data/xkeyboard-config/geometry: Makefile.inc 
data/xkeyboard-config/keycodes: Makefile.inc 
data/xkeyboard-config/keymap: Makefile.inc 
data/xkeyboard-config/rules: Makefile.inc 
data/xkeyboard-config/symbols: Makefile Makefile.inc 

Log message:
TOP is a too generic name for a Makefile variable. It may be
present in users' enviroment to confirure top(1). Rename it to
XKC_TOP. Problem noticed by naddy@.



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 14:49:26

Modified files:
regress/usr.bin/pkg-config: Makefile 
Added files:
regress/usr.bin/pkg-config/pcdir: missing-req.pc whitespace.pc 

Log message:
add failing tests for whitespace and Requires abuse



CVS: cvs.openbsd.org: src

2011-06-06 Thread Jasper Lievisse Adriaanse
CVSROOT:/cvs
Module name:src
Changes by: jas...@cvs.openbsd.org  2011/06/06 15:21:42

Modified files:
regress/usr.bin/pkg-config: Makefile 

Log message:
hookup the previously added (and failing) tests; it's better to know
what fails instead of silently skipping them



CVS: cvs.openbsd.org: src

2011-06-06 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2011/06/06 17:18:29

Modified files:
share/man/man4 : amas.4 kate.4 

Log message:
fix URLs in comments and capitalization, from Brad