misc/182300: geeqie champlain detection with GSP option

2013-09-22 Thread Matthieu Volat

>Number: 182300
>Category:   misc
>Synopsis:   geeqie champlain detection with GSP option
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 22 15:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Matthieu Volat
>Release:9.2-RC4
>Organization:
>Environment:
FreeBSD freedom.alkumuna.eu 9.2-RC4 FreeBSD 9.2-RC4 #0 r255465: Wed Sep 11 
05:11:03 UTC 2013 r...@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  
amd64
>Description:
graphics/geeqie configure has a hard time with the ill-defined pkgconfig name 
for champlain, its maps backend: it must be re-harcoded with current version in 
port (0.8), else maps support won't be activated.

One solution is to sed the correct version in ${WORKSRC}/configure, I've 
enclosed a naive patch to do so.
>How-To-Repeat:
# cd /usr/port/graphics/geeqie
# make config -> enable GPS
# make (re)install clean
-> unable to add maps wiget, configure output states that champlain 0.4 wasn't 
found.
>Fix:
Apply following to /usr/ports/graphics/geeqie/Makefile:

--- Makefile.orig   2013-09-22 17:25:43.0 +0200
+++ Makefile2013-09-22 17:30:15.0 +0200
@@ -77,5 +77,11 @@
@${REINPLACE_CMD} -e '/^install-data-am:/,/^[a-z]/ 
s|install-readmeDATA||' \
${WRKSRC}/Makefile.in
 .endif
+.if ${PORT_OPTIONS:MGPS}
+   @${REINPLACE_CMD} \
+   -e 's/champlain-0\.4/champlain-0.8/g' \
+   -e 's/champlain-gtk-0\.4/champlain-gtk-0.8/g' \
+   ${WRKSRC}/configure
+.endif
 
 .include 

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: ports/182300: graphics/geeqie: geeqie champlain detection with GSP option

2013-09-22 Thread linimon
Old Synopsis: geeqie champlain detection with GSP option
New Synopsis: graphics/geeqie: geeqie champlain detection with GSP option

Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs
Responsible-Changed-By: linimon
Responsible-Changed-When: Sun Sep 22 17:32:47 UTC 2013
Responsible-Changed-Why: 
Fix synopsis and make this a ports PR.

http://www.freebsd.org/cgi/query-pr.cgi?pr=182300
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/178997: commit references a PR

2013-09-22 Thread dfilter service
The following reply was made to PR kern/178997; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: kern/178997: commit references a PR
Date: Sun, 22 Sep 2013 19:23:56 + (UTC)

 Author: kib
 Date: Sun Sep 22 19:23:48 2013
 New Revision: 255797
 URL: http://svnweb.freebsd.org/changeset/base/255797
 
 Log:
   Increase the chance of the buffer write from the bufdaemon helper
   context to succeed.  If the locked vnode which owns the buffer to be
   written is shared locked, try the non-blocking upgrade of the lock to
   exclusive.
   
   PR:  kern/178997
   Reported and tested by:  Klaus Weber 
   Sponsored by:The FreeBSD Foundation
   MFC after:   1 week
   Approved by: re (marius)
 
 Modified:
   head/sys/kern/vfs_bio.c
 
 Modified: head/sys/kern/vfs_bio.c
 ==
 --- head/sys/kern/vfs_bio.cSun Sep 22 19:15:24 2013(r255796)
 +++ head/sys/kern/vfs_bio.cSun Sep 22 19:23:48 2013(r255797)
 @@ -2624,6 +2624,8 @@ flushbufqueues(struct vnode *lvp, int ta
int hasdeps;
int flushed;
int queue;
 +  int error;
 +  bool unlock;
  
flushed = 0;
queue = QUEUE_DIRTY;
 @@ -2699,7 +2701,16 @@ flushbufqueues(struct vnode *lvp, int ta
BUF_UNLOCK(bp);
continue;
}
 -  if (vn_lock(vp, LK_EXCLUSIVE | LK_NOWAIT | LK_CANRECURSE) == 0) 
{
 +  if (lvp == NULL) {
 +  unlock = true;
 +  error = vn_lock(vp, LK_EXCLUSIVE | LK_NOWAIT);
 +  } else {
 +  ASSERT_VOP_LOCKED(vp, "getbuf");
 +  unlock = false;
 +  error = VOP_ISLOCKED(vp) == LK_EXCLUSIVE ? 0 :
 +  vn_lock(vp, LK_UPGRADE | LK_NOWAIT);
 +  }
 +  if (error == 0) {
mtx_unlock(&bqdirty);
CTR3(KTR_BUF, "flushbufqueue(%p) vp %p flags %X",
bp, bp->b_vp, bp->b_flags);
 @@ -2711,7 +2722,8 @@ flushbufqueues(struct vnode *lvp, int ta
notbufdflushes++;
}
vn_finished_write(mp);
 -  VOP_UNLOCK(vp, 0);
 +  if (unlock)
 +  VOP_UNLOCK(vp, 0);
flushwithdeps += hasdeps;
flushed++;
  
 ___
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: misc/182141: Very frequent (at most 3 hours) kernel trap 12

2013-09-22 Thread Berend de Boer
The following reply was made to PR misc/182141; it has been noted by GNATS.

From: Berend de Boer 
To: bug-follo...@freebsd.org, ber...@pobox.com
Cc:  
Subject: Re: misc/182141: Very frequent (at most 3 hours) kernel trap 12
Date: Mon, 23 Sep 2013 16:56:09 +1200

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --wakNJ7tli9VR2rpMBX1smw7IHnHGSu6Wh
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Have enabled:
 
 options INVARIANTS
 options INVARIANT_SUPPORT
 options WITNESS
 options DEBUG_MEMGUARD
 
 log dump is now:
 
 Sep 23 16:48:15 bmach syslogd: kernel boot file is /boot/kernel/kernel
 Sep 23 16:48:15 bmach kernel: Kernel page fault with the following
 non-sleepable locks held:
 Sep 23 16:48:15 bmach kernel: exclusive sleep mutex pf task mtx (pf task
 mtx) r =3D 0 (0x8190b7c0) locked @
 /usr/src/9.1/sys/modules/pf/../../contrib/pf/net/pf.c:6621
 Sep 23 16:48:15 bmach kernel: shared rm PFil hook read/write mutex (PFil
 hook read/write mutex) r =3D 0 (0x81419ee8) locked @
 /usr/src/9.1/sys/net/pfil.c:77
 Sep 23 16:48:15 bmach kernel: shared rw udpinp (udpinp) r =3D 0
 (0xfe008122d168) locked @ /usr/src/9.1/sys/netinet/udp_usrreq.c:975
 Sep 23 16:48:15 bmach kernel: KDB: stack backtrace:
 Sep 23 16:48:15 bmach kernel: #0 0x8090d386 at kdb_backtrace+0x66=
 
 Sep 23 16:48:15 bmach kernel: #1 0x8092141e at
 _witness_debugger+0x2e
 Sep 23 16:48:15 bmach kernel: #2 0x80922206 at witness_warn+0x2c6=
 
 Sep 23 16:48:15 bmach kernel: #3 0x80bba27a at trap_pfault+0x6a
 Sep 23 16:48:15 bmach kernel: #4 0x80bbaa10 at trap+0x440
 Sep 23 16:48:15 bmach kernel: #5 0x80ba4cdf at calltrap+0x8
 Sep 23 16:48:15 bmach kernel: #6 0x818ec11f at pf_test_rule+0xf2f=
 
 Sep 23 16:48:15 bmach kernel: #7 0x818ef944 at pf_test+0xe74
 Sep 23 16:48:15 bmach kernel: #8 0x818f76f1 at pf_check_out+0x41
 Sep 23 16:48:15 bmach kernel: #9 0x8099b802 at pfil_run_hooks+0xd=
 2
 Sep 23 16:48:15 bmach kernel: #10 0x809f340f at ip_output+0x55f
 Sep 23 16:48:15 bmach kernel: #11 0x80a6c4c5 at udp_send+0x4d5
 Sep 23 16:48:15 bmach kernel: #12 0x80945a0e at sosend_dgram+0x21=
 e
 Sep 23 16:48:15 bmach kernel: #13 0x8094cd44 at kern_sendit+0x1b4=
 
 Sep 23 16:48:15 bmach kernel: #14 0x8094cfac at sendit+0xdc
 Sep 23 16:48:15 bmach kernel: #15 0x8094d037 at sys_sendmsg+0x87
 Sep 23 16:48:15 bmach kernel: #16 0x80bb979a at amd64_syscall+0x2=
 fa
 Sep 23 16:48:15 bmach kernel: #17 0x80ba4fc7 at Xfast_syscall+0xf=
 7
 Sep 23 16:48:15 bmach kernel:
 Sep 23 16:48:15 bmach kernel:
 Sep 23 16:48:15 bmach kernel: Fatal trap 12: page fault while in kernel m=
 ode
 Sep 23 16:48:15 bmach kernel: cpuid =3D 0; apic id =3D 00
 Sep 23 16:48:15 bmach kernel: fault virtual address=3D 0x10
 Sep 23 16:48:15 bmach kernel: fault code   =3D supervisor read 
data, page
 not present
 Sep 23 16:48:15 bmach kernel: instruction pointer  =3D 0x20:0x818e=
 1888
 Sep 23 16:48:15 bmach kernel: stack pointer=3D
 0x28:0xff82fc485370
 Sep 23 16:48:15 bmach kernel: frame pointer=3D
 0x28:0xff82fc485380
 Sep 23 16:48:15 bmach kernel: code segment =3D base 0x0, limit 
0xf,
 type 0x1b
 Sep 23 16:48:15 bmach kernel: =3D DPL 0, pres 1, long 1, def32 0, gran 1
 Sep 23 16:48:15 bmach kernel: processor eflags =3D interrupt enabled,
 resume, IOPL =3D 0
 Sep 23 16:48:15 bmach kernel: current process  =3D 2199 (named)
 Sep 23 16:48:15 bmach kernel: trap number  =3D 12
 Sep 23 16:48:15 bmach kernel: panic: page fault
 Sep 23 16:48:15 bmach kernel: cpuid =3D 0
 Sep 23 16:48:15 bmach kernel: KDB: stack backtrace:
 Sep 23 16:48:15 bmach kernel: #0 0x8090d386 at kdb_backtrace+0x66=
 
 Sep 23 16:48:15 bmach kernel: #1 0x808d6e68 at panic+0x1d8
 Sep 23 16:48:15 bmach kernel: #2 0x80bba0c0 at trap_fatal+0x290
 Sep 23 16:48:15 bmach kernel: #3 0x80bba28a at trap_pfault+0x7a
 Sep 23 16:48:15 bmach kernel: #4 0x80bbaa10 at trap+0x440
 Sep 23 16:48:15 bmach kernel: #5 0x80ba4cdf at calltrap+0x8
 Sep 23 16:48:15 bmach kernel: #6 0x818ec11f at pf_test_rule+0xf2f=
 
 Sep 23 16:48:15 bmach kernel: #7 0x818ef944 at pf_test+0xe74
 Sep 23 16:48:15 bmach kernel: #8 0x818f76f1 at pf_check_out+0x41
 Sep 23 16:48:15 bmach kernel: #9 0x8099b802 at pfil_run_hooks+0xd=
 2
 Sep 23 16:48:15 bmach kernel: #10 0x809f340f at ip_output+0x55f
 Sep 23 16:48:15 bmach kernel: #11 0x80a6c4c5 at udp_send+0x4d5
 Sep 23 16:48:15 bmach kernel: #12 0x80945a0e at sosend_dgram+0x21=
 e
 Sep 23 16:48:15 bmach kernel: #13 0x8094cd44 at kern_sendit+0x1b4=
 
 Sep 23 16:48:15 bmach kernel: #14 0x8094cfac at sendit+0xdc
 Sep 23 16:48:15 bmach kernel: #15 0x8094d037 at sys_sen

bin/182310: [patch] unbound-checkconf: fatal error: config file /etc/unbound/unbound.conf is not inside chroot /var/unbound

2013-09-22 Thread Jan Beich

>Number: 182310
>Category:   bin
>Synopsis:   [patch] unbound-checkconf: fatal error: config file 
>/etc/unbound/unbound.conf is not inside chroot /var/unbound
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 23 06:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release:FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
rc.d script from dns/unbound

>Description:
unbound in base is configured to use chroot dir but its config file
lives outside, under /etc.

>How-To-Repeat:

>Fix:
--- chroot_conf.diff begins here ---
Index: contrib/unbound/config.h
===
--- contrib/unbound/config.h(revision 255808)
+++ contrib/unbound/config.h(working copy)
@@ -5,10 +5,10 @@
 #define CHROOT_DIR "/var/unbound"
 
 /* Pathname to the Unbound configuration file */
-#define CONFIGFILE "/etc/unbound/unbound.conf"
+#define CONFIGFILE "/var/unbound/unbound.conf"
 
 /* configure flags */
-#define CONFIGURE_BUILD_WITH " '--prefix=' '--exec-prefix=/usr' 
'--with-conf-file=/etc/unbound/unbound.conf' '--with-run-dir=/var/unbound' 
'--with-username=unbound'"
+#define CONFIGURE_BUILD_WITH " '--prefix=' '--exec-prefix=/usr' 
'--with-conf-file=/var/unbound/unbound.conf' '--with-run-dir=/var/unbound' 
'--with-username=unbound'"
 
 /* configure date */
 #define CONFIGURE_DATE "Sun Sep 15 15:38:41 CEST 2013"
Index: contrib/unbound/freebsd-configure.sh
===
--- contrib/unbound/freebsd-configure.sh(revision 255808)
+++ contrib/unbound/freebsd-configure.sh(working copy)
@@ -26,7 +26,7 @@ export LDFLAGS="-L$ldnsobj"
 
 ./configure \
--prefix= --exec-prefix=/usr \
-   --with-conf-file=/etc/unbound/unbound.conf \
+   --with-conf-file=/var/unbound/unbound.conf \
--with-run-dir=/var/unbound \
--with-username=unbound
 
Index: etc/Makefile
===
--- etc/Makefile(revision 255808)
+++ etc/Makefile(working copy)
@@ -247,6 +247,11 @@ distribution:
ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
fi
 .endif
+.if ${MK_UNBOUND} != "no"
+   if [ ! -e ${DESTDIR}/etc/unbound ]; then \
+   ln -s ../var/unbound ${DESTDIR}/etc/unbound; \
+   fi
+.endif
 .if ${MK_BIND_ETC} != "no"
${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
 .endif
Index: etc/mtree/BSD.root.dist
===
--- etc/mtree/BSD.root.dist (revision 255808)
+++ etc/mtree/BSD.root.dist (working copy)
@@ -66,8 +66,6 @@
 ..
 ssl
 ..
-unbound
-..
 zfs
 ..
 ..
--- chroot_conf.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"