Re: ntpd errors after upgrade on current amd64

2015-04-03 Thread Ollivier Robert
According to Cy Schubert on Thu, Apr 02, 2015 at 06:26:42PM -0700:
 Ntp_parser.y is not redundant. It is referenced by ntp_parser.c. I put that 
 fix in two days ago.

No, it is the source of ntp_parser.c/h through yacc (or bison) as jkim said.

In theory, you have only the .y and during build you generate the .c/.h.  In 
practice, you always use the ntp_parser.c/.h that come pre-built and build with 
that.  As jkim shows, the generated file can be quite different.

-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- robe...@keltia.net
In memoriam to Ondine, our 2nd child: http://ondine.keltia.net/

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


Re: ntpd errors after upgrade on current amd64

2015-04-03 Thread Jung-uk Kim
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 04/02/2015 21:26, Cy Schubert wrote:
 In message 551da257.6060...@freebsd.org, Jung-uk Kim writes:
 This is a multi-part message in MIME format. 
 --090800070300040107060309 Content-Type: text/plain;
 charset=utf-8 Content-Transfer-Encoding: 8bit
 
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256
 
 On 04/01/2015 11:32, Manfred Antar wrote:
 After build install world on current ntpd doesn't work. Here
 is error:
 
 FreeBSD/amd64 (pozo.com) (ttyu0)
 
 login: Apr  1 08:29:19 pozo ntpd[49825]: line 22 column 1
 syntax error
 
 ntp_crypto.c was not properly merged.  Basically, the fix for 
 SA-14:31.ntp was applied twice.  Please try the attached patch.
 
 Apr  1 08:29:19 pozo ntpd[49825]: setsockopt IPV6_MULTICAST_IF
 0 for fe80::1%2 fails: Can't assign requested address
 
 A separate issue, I think.
 
 Jung-uk Kim
 
 * Note: ntp_parser.y is redundant and it was the root cause of 
 inconsistent builds and build failures, i.e., ntp_parser.c and 
 ntp_parser.h may be regenerated on the *source* directory
 depending on phase of the moon.  Although we can re-gen them
 after r280915, upstream does not support BSD yacc.
 
 Ntp_parser.y is not redundant.

It is redundant because ntp_parser.c and ntp_parser.h are generated
from ntp_parser.y.  Once it is done, it can be safely removed.  Remove
it and see for yourself.

 It is referenced by ntp_parser.c.

Nope.

# grep ntp_parser.y /usr/src/contrib/ntp/ntpd/ntp_parser.c
#line 14 ntp_parser.y /* yacc.c:339  */
#line 54 ntp_parser.y /* yacc.c:355  */
#line 371 ntp_parser.y /* yacc.c:1646  */
...
# grep ntp_parser.y /usr/src/contrib/ntp/ntpd/ntp_parser.h
#line 54 ntp_parser.y /* yacc.c:1909  */

These are inserted for debugging purpose only.  See yacc(1) for -l optio
n.

 I put that fix in two days ago.

Your fix is just to make ntp_parser.y compilable with our yacc(1).
Now ntp_parser.c and ntp_parser.h may be regenerated and *overwritten*
depending upon timestamps of these files.

# svn revert /usr/src/contrib/ntp/ntpd/ntp_parser.[chy]
# touch /usr/src/contrib/ntp/ntpd/ntp_parser.y
# cd /usr/src/usr.sbin/ntp/ntpd
# make depend
yacc -d /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_parser.
y
mv y.tab.c
/usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_parser.c
...
# svn stat /usr/src/contrib/ntp/ntpd/ntp_parser.?
M   /usr/src/contrib/ntp/ntpd/ntp_parser.c

Unfortunately, bundled ntp_parser.c and ntp_parser.h were originally
generated with GNU Bison and the new ntp_parser.c is totally different.

# svn diff /usr/src/contrib/ntp/ntpd/ntp_parser.c | grep ^+ | wc -l
1918
# svn diff /usr/src/contrib/ntp/ntpd/ntp_parser.c | grep ^- | wc -l
3214.

If you really want to keep ntp_parser.y for some reason, ntp_parser.c
and ntp_parser.h must be removed from source tree instead.  Also, you
have to patch /usr/src/usr.sbin/ntp/ntpd/Makefile a little (hint:
replace ntp_parser.c with ntp_parser.y for SRCS and add -I. to CFLAGS)
.

Basically, you have to remove either ntp_parser.y or ntp_parser.[ch].
 You just can't keep them all.

 I'll re-merge based on your second patch/the posted fix. I'll try
 it first in the port though.

Okay.

Jung-uk Kim
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJVHkDoAAoJEHyflib82/FGTVQIAJ6wEudATveKaYSTok9Q5T5K
xwE3Ym6XdZqEXprKCSfeIea+EqeWNLmf7uDOsPqr2k0KwwN//sHhXAWR/9ze4+em
auypHxM3LTUEYZnoBvy17dOJ1gde/3jXZt9q8ZLnz3M91W439j5jWGGU6LXY97wy
Vlv97eqISEMPvI21pA3EI3xC3f56xM6fjruDMAq6VLarAfTaLmhn5fbMpP5XEBBF
hybSde+YVf36i/ojKPUYz2mSyJ1y7j+zR0n+S+ccLnGfoS/sXePdoDzjm0lNWVDa
bRpkZYbWrVQiGyw+equs6WORKBh0ZIICBaQa0IPGycrD0UKt37wx0YzN7xRDsQo=
=tkma
-END PGP SIGNATURE-
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: ntpd errors after upgrade on current amd64

2015-04-03 Thread Cy Schubert
In message 20150403080118.ga2...@roberto-aw.eurocontrol.fr, Ollivier 
Robert w
rites:
 According to Cy Schubert on Thu, Apr 02, 2015 at 06:26:42PM -0700:
  Ntp_parser.y is not redundant. It is referenced by ntp_parser.c. I put that
  
  fix in two days ago.
 
 No, it is the source of ntp_parser.c/h through yacc (or bison) as jkim said.
 
 In theory, you have only the .y and during build you generate the .c/.h.  In 
 practice, you always use the ntp_parser.c/.h that come pre-built and build wi
 th that.  As jkim shows, the generated file can be quite different.

The fix has just been committed.

4.2.8p2 should be released shortly to resolve the other issues. I've added 
an ntp-rc port to track the release candidates.


-- 
Cheers,
Cy Schubert cy.schub...@komquats.com or cy.schub...@cschubert.com
FreeBSD UNIX:  c...@freebsd.org   Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


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


Re: Bazaaring the cathedral (Lowering the Barrier to Entry)

2015-04-03 Thread Julian Elischer

On 4/2/15 6:28 PM, Hans Petter Selasky wrote:

I hope this is not one more of those April fools :-)


yep


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




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


FreeBSD 11 is kernel panicing when a vbox' machine stops (or starts if package version)

2015-04-03 Thread Vinicius Abrahao
Guys,

I am testing some things in this environment. So i am happy
to announce that I find something that you may like:

I am using FreeBSD 11 as a host [r280928:GENERIC  amd64 ].
So in '-current'

Installed on it virtualbox 4.3.26 and tried to run a linux guest as
the virtual machine.


So, what is the trouble?

1) when I installed vbox from 'pkg install', the HOST machine
exits by KERNEL PANIC at the exactly time that I 'power up'
the guest machine.

2) when I installed vbox from 'make install', the HOST machine
exits by KERNEL PANIC at the exactly time that I 'power down'
the guest machine.

Here is the crash.txt that I dumped at the kernel panic prompt.
https://gist.github.com/vinnix/819c210986da439136ef


Obs.: all these tests are reproducible here in my environment. and
all times that i did the test, i also rebuild the kmod and reboot the
machine.


thank you in advance for your time,
best regards,
-- 

Vinícius Abrahão Bazana Schmidt

[vinnix]™
aka: Vinícius Abrahão Bazana Schmidt
vischmidt.wordpress.com
twitter.com/vischmidt
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: [CFT] Call for testing pkg 1.5.0

2015-04-03 Thread Allan Jude
On 2015-03-31 20:24, Sergei Vyshenski wrote:
 Hi,
 
 On Tue, Mar 31, 2015 at 9:23 PM, Baptiste Daroussin b...@freebsd.org
 wrote:
 
 Add WITH_PKG=devel in your build make.conf
 then pkg upgrade will want you to upgrade to 1.4.99.16 (which is pkg 1.5.0
 beta1)

 
 This does not work for me.
 
 # cat /etc/make.conf |grep PKG
 WITH_PKGNG=yes
 WITH_PKG=devel
 
 # pkg upgrade
 Updating FreeBSD repository catalogue...
 FreeBSD repository is up-to-date.
 All repositories are up-to-date.
 Checking for upgrades (218 candidates): 100%
 Processing candidates (218 candidates): 100%
 Checking integrity... done (0 conflicting)
 Your packages are up to date.
 
 # pkg -v
 1.4.12
 
 # pkg info |grep pkg
 pkg-1.4.12 Package manager
 
 Instead, the following succeded:
 # cd /usr/ports/ports-mgmt/pkg-devel
 # make reinstall
 ...
 # pkg -v
 1.4.99.16
 
 All the best, Sergei
 ___
 freebsd-current@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
 

Baptiste meant that setting WITH_PKG=devel in the make.conf of a
poudriere would make it compiled pkg 1.4.99.x and make all users using
your repo use that. You'd have to run poudriere to make it rebuild
everything with that new make.conf first, before 'pkg upgrade' would
upgrade you to 1.4.99.x

-- 
Allan Jude



signature.asc
Description: OpenPGP digital signature


Re: [CFT] Call for testing pkg 1.5.0

2015-04-03 Thread Baptiste Daroussin
On Fri, Apr 03, 2015 at 02:35:43PM +0100, Big Lebowski wrote:
 
  Please test and report as much bugs as you can!
  We could be very grateful if regressions tests could be provided along with 
  the
  bug reports :)
 
 
 Mine just did something like that:
 
 foobar# uname -a
 FreeBSD foobar.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r280994M: Thu
 Apr  2 20:16:53 CEST 2015
 r...@pd.valinor.palantiri.org:/usr/obj/usr/src/sys/FOOBAR  amd64
 foobar [uname -a] ~/
   15-04-03
  3:33PM
 foobar# pkg --version
 1.4.99.15
 foobar [pkg --version] ~/
   15-04-03
  3:33PM
 foobar# pkg version
 Child process pid=41119 terminated abnormally: Segmentation fault
 foobar [pkg version] ~/
   15-04-03
  3:33PM
 foobar# pkg version -t 0.2.o.git20150311 0.2.o.20150402
 
 foobar [pkg version -t 0.2.o.git20150311 0.2.o.20150402] ~/
   15-04-03
  3:33PM
 pd#

Let me fix that :)

Best regards,
Bapt


pgp2muwHSwmwV.pgp
Description: PGP signature


Re: [CFT] Call for testing pkg 1.5.0

2015-04-03 Thread Big Lebowski
 I just wanted to take the time to thank you for all the
 work you've put into this.

 Thanks!

 Thanks much appreciated, I want to share that with vsevolod@ and az@ who also
 spent a lot of time working on it!


Indeed, HUGE THANKS for what you guys are doing with pkg - I cant wait
to see that OS X integration in action (and other things as well), you
rock!

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


pkg-static: sqlite error while executing INSERT OR REPLACE INTO

2015-04-03 Thread O. Hartmann
On a CURRENT system (FreeBSD 11.0-CURRENT #0 r280991: Thu Apr  2 19:01:05 CEST 
2015)
with most recent SVN tree revision of /usr/ports (Revision: 383115) I run into 
a very
nasty/sticky problem, which prevents updating/reinstalling/deleting port
textproc/clucene, see below.

I tried to reinstall/recompile sqlite and all requisite ports, but with no 
effect. I
maintain my ports in the traditional/flexible FreeBSD style by compiling them - 
not using
packages.

I also tried to use pkg to install the port in question, see this error beneath 
the error
when using portmaster:

portmaster -da / or portmaster clucene

[...]
=== Starting check for runtime dependencies
=== Gathering dependency list for textproc/clucene from ports
=== No dependencies for textproc/clucene

===  Installing for clucene-2.3.3.4_6
===   Registering installation for clucene-2.3.3.4_6
Installing clucene-2.3.3.4_6...
pkg-static: sqlite error while executing INSERT OR REPLACE INTO packages( 
origin, name,
version, comment, desc, message, arch, maintainer, www, prefix, flatsize, 
automatic,
licenselogic, mtree_id, time, manifestdigest)
VALUES( ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, (SELECT id FROM 
mtree
WHERE content = ?14), NOW(), ?15) in file pkgdb.c:1602: FOREIGN KEY constraint 
failed ***
Error code 70

Stop.
make: stopped in /usr/ports/textproc/clucene


root: [ports] pkg install textproc/clucene
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity...Assertion failed: (strcmp(uid, p-uid) != 0), function
pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, line 360. Child 
process
pid=49420 terminated abnormally: Abort trap


Can somebody help?

Regards,

Oliver


pgpeXAcbkpN8y.pgp
Description: OpenPGP digital signature


Re: [CFT] Call for testing pkg 1.5.0

2015-04-03 Thread Big Lebowski

 Please test and report as much bugs as you can!
 We could be very grateful if regressions tests could be provided along with 
 the
 bug reports :)


Mine just did something like that:

foobar# uname -a
FreeBSD foobar.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r280994M: Thu
Apr  2 20:16:53 CEST 2015
r...@pd.valinor.palantiri.org:/usr/obj/usr/src/sys/FOOBAR  amd64
foobar [uname -a] ~/
  15-04-03
 3:33PM
foobar# pkg --version
1.4.99.15
foobar [pkg --version] ~/
  15-04-03
 3:33PM
foobar# pkg version
Child process pid=41119 terminated abnormally: Segmentation fault
foobar [pkg version] ~/
  15-04-03
 3:33PM
foobar# pkg version -t 0.2.o.git20150311 0.2.o.20150402

foobar [pkg version -t 0.2.o.git20150311 0.2.o.20150402] ~/
  15-04-03
 3:33PM
pd#
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org