From owner-freebsd-gecko@FreeBSD.ORG Wed Jul 25 10:12:14 2012 Return-Path: Delivered-To: freebsd-gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 45709106564A for ; Wed, 25 Jul 2012 10:12:14 +0000 (UTC) (envelope-from svn-freebsd-gecko@chruetertee.ch) Received: from trillian.chruetertee.ch (trillian.chruetertee.ch [217.150.245.56]) by mx1.freebsd.org (Postfix) with ESMTP id A898D8FC08 for ; Wed, 25 Jul 2012 10:12:13 +0000 (UTC) Received: from trillian.chruetertee.ch (trillian [217.150.245.56]) by trillian.chruetertee.ch (8.14.4/8.14.3) with ESMTP id q6PACCHh074028 for ; Wed, 25 Jul 2012 10:12:12 GMT (envelope-from svn-freebsd-gecko@chruetertee.ch) Received: (from www@localhost) by trillian.chruetertee.ch (8.14.4/8.14.3/Submit) id q6PAC7mf072422 for freebsd-gecko@freebsd.org; Wed, 25 Jul 2012 10:12:07 GMT (envelope-from svn-freebsd-gecko@chruetertee.ch) Date: Wed, 25 Jul 2012 10:12:07 GMT Message-Id: <201207251012.q6PAC7mf072422@trillian.chruetertee.ch> X-Authentication-Warning: trillian.chruetertee.ch: www set sender to svn-freebsd-gecko@chruetertee.ch using -f From: svn-freebsd-gecko@chruetertee.ch To: freebsd-gecko@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [SVN-Commit] r893 - in branches/experimental: mail/thunderbird-esr/files mail/thunderbird/files www/firefox-esr/files www/firefox-nightly/files www/firefox/files www/libxul/files www/seamonkey/files X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-gecko@freebsd.org List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 10:12:14 -0000 Author: jbeich Date: Wed Jul 25 10:12:06 2012 New Revision: 893 Log: - switch back to getdents(2), getdirentries(2) is obsolete on NetBSD and basep is of different type on OpenBSD - link against -lkvm on OpenBSD, for consistency Modified: branches/experimental/mail/thunderbird-esr/files/patch-bug753046 branches/experimental/mail/thunderbird/files/patch-bug753046 branches/experimental/www/firefox-esr/files/patch-bug753046 branches/experimental/www/firefox-nightly/files/patch-bug753046 branches/experimental/www/firefox/files/patch-bug753046 branches/experimental/www/libxul/files/patch-bug753046 branches/experimental/www/seamonkey/files/patch-bug753046 Modified: branches/experimental/mail/thunderbird-esr/files/patch-bug753046 ============================================================================== --- branches/experimental/mail/thunderbird-esr/files/patch-bug753046 Tue Jul 24 19:30:45 2012 (r892) +++ branches/experimental/mail/thunderbird-esr/files/patch-bug753046 Wed Jul 25 10:12:06 2012 (r893) @@ -260,7 +260,7 @@ index 0000000..3fc1a87 --- /dev/null +++ mozilla/ipc/chromium/src/base/dir_reader_bsd.h -@@ -0,0 +1,98 @@ +@@ -0,0 +1,108 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -318,11 +318,19 @@ + if (offset_ != size_) + return true; + ++#ifdef OS_OPENBSD + const int r = getdirentries(fd_, buf_, sizeof(buf_), basep_); ++#else ++ const int r = getdents(fd_, buf_, sizeof(buf_)); ++#endif + if (r == 0) + return false; + if (r == -1) { ++#ifdef OS_OPENBSD + DLOG(ERROR) << "getdirentries returned an error: " << errno; ++#else ++ DLOG(ERROR) << "getdents returned an error: " << errno; ++#endif + return false; + } + size_ = r; @@ -350,7 +358,9 @@ + private: + const int fd_; + char buf_[512]; -+ long *basep_; ++#ifdef OS_OPENBSD ++ off_t *basep_; ++#endif + size_t offset_, size_; + + DISALLOW_COPY_AND_ASSIGN(DirReaderBSD); @@ -1247,7 +1257,7 @@ endif endif -+ifneq (,$(filter DragonFly FreeBSD NetBSD,$(OS_ARCH))) ++ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) +endif + Modified: branches/experimental/mail/thunderbird/files/patch-bug753046 ============================================================================== --- branches/experimental/mail/thunderbird/files/patch-bug753046 Tue Jul 24 19:30:45 2012 (r892) +++ branches/experimental/mail/thunderbird/files/patch-bug753046 Wed Jul 25 10:12:06 2012 (r893) @@ -260,7 +260,7 @@ index 0000000..3fc1a87 --- /dev/null +++ mozilla/ipc/chromium/src/base/dir_reader_bsd.h -@@ -0,0 +1,98 @@ +@@ -0,0 +1,108 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -318,11 +318,19 @@ + if (offset_ != size_) + return true; + ++#ifdef OS_OPENBSD + const int r = getdirentries(fd_, buf_, sizeof(buf_), basep_); ++#else ++ const int r = getdents(fd_, buf_, sizeof(buf_)); ++#endif + if (r == 0) + return false; + if (r == -1) { ++#ifdef OS_OPENBSD + DLOG(ERROR) << "getdirentries returned an error: " << errno; ++#else ++ DLOG(ERROR) << "getdents returned an error: " << errno; ++#endif + return false; + } + size_ = r; @@ -350,7 +358,9 @@ + private: + const int fd_; + char buf_[512]; -+ long *basep_; ++#ifdef OS_OPENBSD ++ off_t *basep_; ++#endif + size_t offset_, size_; + + DISALLOW_COPY_AND_ASSIGN(DirReaderBSD); @@ -1252,7 +1262,7 @@ endif endif -+ifneq (,$(filter DragonFly FreeBSD NetBSD,$(OS_ARCH))) ++ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) +endif + Modified: branches/experimental/www/firefox-esr/files/patch-bug753046 ============================================================================== --- branches/experimental/www/firefox-esr/files/patch-bug753046 Tue Jul 24 19:30:45 2012 (r892) +++ branches/experimental/www/firefox-esr/files/patch-bug753046 Wed Jul 25 10:12:06 2012 (r893) @@ -260,7 +260,7 @@ index 0000000..3fc1a87 --- /dev/null +++ ipc/chromium/src/base/dir_reader_bsd.h -@@ -0,0 +1,98 @@ +@@ -0,0 +1,108 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -318,11 +318,19 @@ + if (offset_ != size_) + return true; + ++#ifdef OS_OPENBSD + const int r = getdirentries(fd_, buf_, sizeof(buf_), basep_); ++#else ++ const int r = getdents(fd_, buf_, sizeof(buf_)); ++#endif + if (r == 0) + return false; + if (r == -1) { ++#ifdef OS_OPENBSD + DLOG(ERROR) << "getdirentries returned an error: " << errno; ++#else ++ DLOG(ERROR) << "getdents returned an error: " << errno; ++#endif + return false; + } + size_ = r; @@ -350,7 +358,9 @@ + private: + const int fd_; + char buf_[512]; -+ long *basep_; ++#ifdef OS_OPENBSD ++ off_t *basep_; ++#endif + size_t offset_, size_; + + DISALLOW_COPY_AND_ASSIGN(DirReaderBSD); @@ -1247,7 +1257,7 @@ endif endif -+ifneq (,$(filter DragonFly FreeBSD NetBSD,$(OS_ARCH))) ++ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) +endif + Modified: branches/experimental/www/firefox-nightly/files/patch-bug753046 ============================================================================== --- branches/experimental/www/firefox-nightly/files/patch-bug753046 Tue Jul 24 19:30:45 2012 (r892) +++ branches/experimental/www/firefox-nightly/files/patch-bug753046 Wed Jul 25 10:12:06 2012 (r893) @@ -260,7 +260,7 @@ index 0000000..3fc1a87 --- /dev/null +++ ipc/chromium/src/base/dir_reader_bsd.h -@@ -0,0 +1,98 @@ +@@ -0,0 +1,108 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -318,11 +318,19 @@ + if (offset_ != size_) + return true; + ++#ifdef OS_OPENBSD + const int r = getdirentries(fd_, buf_, sizeof(buf_), basep_); ++#else ++ const int r = getdents(fd_, buf_, sizeof(buf_)); ++#endif + if (r == 0) + return false; + if (r == -1) { ++#ifdef OS_OPENBSD + DLOG(ERROR) << "getdirentries returned an error: " << errno; ++#else ++ DLOG(ERROR) << "getdents returned an error: " << errno; ++#endif + return false; + } + size_ = r; @@ -350,7 +358,9 @@ + private: + const int fd_; + char buf_[512]; -+ long *basep_; ++#ifdef OS_OPENBSD ++ off_t *basep_; ++#endif + size_t offset_, size_; + + DISALLOW_COPY_AND_ASSIGN(DirReaderBSD); @@ -1223,7 +1233,7 @@ endif endif -+ifneq (,$(filter DragonFly FreeBSD NetBSD,$(OS_ARCH))) ++ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) +endif + Modified: branches/experimental/www/firefox/files/patch-bug753046 ============================================================================== --- branches/experimental/www/firefox/files/patch-bug753046 Tue Jul 24 19:30:45 2012 (r892) +++ branches/experimental/www/firefox/files/patch-bug753046 Wed Jul 25 10:12:06 2012 (r893) @@ -260,7 +260,7 @@ index 0000000..3fc1a87 --- /dev/null +++ ipc/chromium/src/base/dir_reader_bsd.h -@@ -0,0 +1,98 @@ +@@ -0,0 +1,108 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -318,11 +318,19 @@ + if (offset_ != size_) + return true; + ++#ifdef OS_OPENBSD + const int r = getdirentries(fd_, buf_, sizeof(buf_), basep_); ++#else ++ const int r = getdents(fd_, buf_, sizeof(buf_)); ++#endif + if (r == 0) + return false; + if (r == -1) { ++#ifdef OS_OPENBSD + DLOG(ERROR) << "getdirentries returned an error: " << errno; ++#else ++ DLOG(ERROR) << "getdents returned an error: " << errno; ++#endif + return false; + } + size_ = r; @@ -350,7 +358,9 @@ + private: + const int fd_; + char buf_[512]; -+ long *basep_; ++#ifdef OS_OPENBSD ++ off_t *basep_; ++#endif + size_t offset_, size_; + + DISALLOW_COPY_AND_ASSIGN(DirReaderBSD); @@ -1252,7 +1262,7 @@ endif endif -+ifneq (,$(filter DragonFly FreeBSD NetBSD,$(OS_ARCH))) ++ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) +endif + Modified: branches/experimental/www/libxul/files/patch-bug753046 ============================================================================== --- branches/experimental/www/libxul/files/patch-bug753046 Tue Jul 24 19:30:45 2012 (r892) +++ branches/experimental/www/libxul/files/patch-bug753046 Wed Jul 25 10:12:06 2012 (r893) @@ -260,7 +260,7 @@ index 0000000..3fc1a87 --- /dev/null +++ ipc/chromium/src/base/dir_reader_bsd.h -@@ -0,0 +1,98 @@ +@@ -0,0 +1,108 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -318,11 +318,19 @@ + if (offset_ != size_) + return true; + ++#ifdef OS_OPENBSD + const int r = getdirentries(fd_, buf_, sizeof(buf_), basep_); ++#else ++ const int r = getdents(fd_, buf_, sizeof(buf_)); ++#endif + if (r == 0) + return false; + if (r == -1) { ++#ifdef OS_OPENBSD + DLOG(ERROR) << "getdirentries returned an error: " << errno; ++#else ++ DLOG(ERROR) << "getdents returned an error: " << errno; ++#endif + return false; + } + size_ = r; @@ -350,7 +358,9 @@ + private: + const int fd_; + char buf_[512]; -+ long *basep_; ++#ifdef OS_OPENBSD ++ off_t *basep_; ++#endif + size_t offset_, size_; + + DISALLOW_COPY_AND_ASSIGN(DirReaderBSD); @@ -1247,7 +1257,7 @@ endif endif -+ifneq (,$(filter DragonFly FreeBSD NetBSD,$(OS_ARCH))) ++ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) +endif + Modified: branches/experimental/www/seamonkey/files/patch-bug753046 ============================================================================== --- branches/experimental/www/seamonkey/files/patch-bug753046 Tue Jul 24 19:30:45 2012 (r892) +++ branches/experimental/www/seamonkey/files/patch-bug753046 Wed Jul 25 10:12:06 2012 (r893) @@ -260,7 +260,7 @@ index 0000000..3fc1a87 --- /dev/null +++ mozilla/ipc/chromium/src/base/dir_reader_bsd.h -@@ -0,0 +1,98 @@ +@@ -0,0 +1,108 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -318,11 +318,19 @@ + if (offset_ != size_) + return true; + ++#ifdef OS_OPENBSD + const int r = getdirentries(fd_, buf_, sizeof(buf_), basep_); ++#else ++ const int r = getdents(fd_, buf_, sizeof(buf_)); ++#endif + if (r == 0) + return false; + if (r == -1) { ++#ifdef OS_OPENBSD + DLOG(ERROR) << "getdirentries returned an error: " << errno; ++#else ++ DLOG(ERROR) << "getdents returned an error: " << errno; ++#endif + return false; + } + size_ = r; @@ -350,7 +358,9 @@ + private: + const int fd_; + char buf_[512]; -+ long *basep_; ++#ifdef OS_OPENBSD ++ off_t *basep_; ++#endif + size_t offset_, size_; + + DISALLOW_COPY_AND_ASSIGN(DirReaderBSD); @@ -1252,7 +1262,7 @@ endif endif -+ifneq (,$(filter DragonFly FreeBSD NetBSD,$(OS_ARCH))) ++ifneq (,$(filter DragonFly FreeBSD NetBSD OpenBSD,$(OS_ARCH))) +OS_LIBS += $(call EXPAND_LIBNAME,kvm) +endif +