debian/0000755000000000000000000000000012120365326007166 5ustar debian/libgoogle-glog0.lintian-overrides0000644000000000000000000000026212120365212015511 0ustar package-name-doesnt-match-sonames # This warning is reported when build without optimization. # But glog doesn't work correctly with optimization. hardening-no-fortify-functions debian/control0000644000000000000000000000265712120365212010575 0ustar Source: google-glog Section: libs Priority: optional Maintainer: Daigo Moriwaki Uploaders: Laszlo Boszormenyi (GCS) Build-Depends: debhelper (>= 9.0.0), autotools-dev, dh-autoreconf, libgflags-dev, libunwind8-dev [i386 amd64] Standards-Version: 3.9.3 Homepage: http://code.google.com/p/google-glog/ Vcs-Browser: http://git.debian.org/?p=collab-maint/google-glog.git;a=summary Vcs-Git: git://git.debian.org/collab-maint/google-glog.git Package: libgoogle-glog-dev Section: libdevel Architecture: any Depends: libgoogle-glog0 (= ${binary:Version}), libgflags-dev, ${misc:Depends} Description: library that implements application-level logging. This library provides logging APIs based on C++-style streams and various helper macros. . This package contains static and debug libraries and header files for developing applications. Package: libgoogle-glog0 Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: library that implements application-level logging. This library provides logging APIs based on C++-style streams and various helper macros. . This package contains shared libraries. Package: libgoogle-glog-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: documentation of gloogle-glog This library provides logging APIs based on C++-style streams and various helper macros. . This package contains documentation files. debian/rules0000755000000000000000000000055112120365212010241 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_BUILD_OPTIONS=noopt %: dh $@ --with autoreconf override_dh_installchangelogs: dh_installchangelogs ChangeLog override_dh_auto_test: if [ -f /proc/version ]; then $(MAKE) check; fi get-orig-source: uscan --verbose --force-download --rename debian/changelog0000644000000000000000000000602512120365212011035 0ustar google-glog (0.3.3-1) unstable; urgency=low * New upstream release. (Closes: #702483) * Replaces debian/patches/debian/patches/20120617_fix_test_on_ppc.diff with debian/patches/20130313_fix_test_on_ports.diff. Some test should be run only on x86 and x86_64. Thanks to Michael Terry for a patch. (Closes: #699444, #702985) -- Daigo Moriwaki Fri, 15 Mar 2013 00:05:54 +0900 google-glog (0.3.2-4) unstable; urgency=low * debian/control: Build-Depends on libunwind-dev on i386 as well. Thanks to Matthias Klose for the fix. (Closes: #690229) * Uses dh-autoreconf to fix FTBFS on hurd-i386, which was degraded by the previous release. Thanks to Pino Toscano for the patch. (Closes: #690252) -- Daigo Moriwaki Sat, 13 Oct 2012 20:59:46 +0900 google-glog (0.3.2-3) unstable; urgency=low * debian/control: - Adds Laszlo Boszormenyi (GCS) into Uploaders. - Build-Depends on libunwind8 as before. - Corrected descriptions. - libgoogle-glog-dev depends on libgflags-dev as well. (Closes: #676605) * Adds debian/patches/20120617_fix_test_on_ppc.diff: Fixes to make a test run on powerpc. (Closes: #645744) * debian/rules: Freshens autotools by using autotools-dev. -- Daigo Moriwaki Thu, 21 Jun 2012 21:07:21 +0900 google-glog (0.3.2-2) unstable; urgency=low * Put back Daigo Moriwaki as maintainer and add myself as uploader. * Correct doc-base paths. * Fix FTBFS on Hurd with debian/patches/20120617_fix_for_hurd.diff. (http://code.google.com/p/google-glog/issues/detail?id=124) * Only run testsuite if /proc is mounted, fixes FTBFS on several archs. Also add debian/patches/20120621_errnos.diff to fix tests on Hurd. -- Laszlo Boszormenyi (GCS) Thu, 07 Jun 2012 08:50:15 +0000 google-glog (0.3.2-1) unstable; urgency=low * Initial release (Closes: #673241) * Fix FTBFS on several architectures (Closes: #644602, #645744) -- Koichi Akabe Thu, 31 May 2012 20:57:32 +0900 google-glog (0.3.1-2) unstable; urgency=low * Added patches to fix test errors. - debian/patches/20110923-r91-demangle.diff fixes a test error caused by src/demangle_unittest.sh. - debian/patches/20110923-r92-reduce-stack-consumpution.diff fixes a test caused by src/symbolize_unittest.cc. (Closes: #621385) * debian/control: - Bumped up Standards-Version to 3.9.2. - Fixed lintian errors: description-synopsis-starts-with-article -- Daigo Moriwaki Fri, 23 Sep 2011 22:53:12 +0900 google-glog (0.3.1-1) unstable; urgency=low * New upstream release. * debian/copyright: replaced "debianized". * debian/control: Bumped up Standards-Version to 3.9.1. -- Daigo Moriwaki Sat, 05 Mar 2011 16:43:39 +0900 google-glog (0.3.0-1) unstable; urgency=low * Initial release. (Closes: #555329: ITP: google-glog -- application- level logging APIs based on C++-style) -- Daigo Moriwaki Sat, 24 Jul 2010 23:04:29 +0900 debian/compat0000644000000000000000000000000212120365212010356 0ustar 9 debian/libgoogle-glog-doc.docs0000644000000000000000000000003212120365212013461 0ustar doc/* AUTHORS NEWS README debian/libgoogle-glog-doc.doc-base0000644000000000000000000000047212120365212014216 0ustar Document: google-glog Title: How To Use Google Logging Library (google-glog) Author: Shinichiro Hamaji Abstract: Manual for google-glog Section: Programming/C++ Format: HTML Index: /usr/share/doc/libgoogle-glog-doc/glog.html Files: /usr/share/doc/libgoogle-glog-doc/*.html /usr/share/doc/libgoogle-glog-doc/*.css debian/patches/0000755000000000000000000000000012120365212010607 5ustar debian/patches/20120621_errnos.diff0000644000000000000000000001121312120365212013724 0ustar Index: pkg-google-glog/src/googletest.h =================================================================== --- pkg-google-glog.orig/src/googletest.h 2012-06-21 17:15:22.000000000 +0900 +++ pkg-google-glog/src/googletest.h 2012-06-21 17:17:30.000000000 +0900 @@ -437,6 +437,18 @@ } } +static inline void IntReplace(string* str, + const string& oldsub, + int newsub) { + size_t pos = str->find(oldsub); + if (pos != string::npos) { + std::ostringstream ss; + ss << newsub; + const std::string x = ss.str(); + str->replace(pos, oldsub.size(), x.c_str()); + } +} + static inline string Munge(const string& filename) { FILE* fp = fopen(filename.c_str(), "rb"); CHECK(fp != NULL) << filename << ": couldn't open"; @@ -460,9 +472,13 @@ StringReplace(&line, "__SUCCESS__", errmsg_buf); } StringReplace(&line, "__ENOENT__", strerror(ENOENT)); + IntReplace(&line, "__ENOENT_NUM__", ENOENT); StringReplace(&line, "__EINTR__", strerror(EINTR)); + IntReplace(&line, "__EINTR_NUM__", EINTR); StringReplace(&line, "__ENXIO__", strerror(ENXIO)); + IntReplace(&line, "__ENXIO_NUM__", ENXIO); StringReplace(&line, "__ENOEXEC__", strerror(ENOEXEC)); + IntReplace(&line, "__ENOEXEC_NUM__", ENOEXEC); result += line + "\n"; } fclose(fp); Index: pkg-google-glog/src/logging_unittest.cc =================================================================== --- pkg-google-glog.orig/src/logging_unittest.cc 2012-06-21 17:15:22.000000000 +0900 +++ pkg-google-glog/src/logging_unittest.cc 2012-06-21 17:17:30.000000000 +0900 @@ -234,6 +234,17 @@ return 0; } +static int errnoForIteration(int i) { + switch (i) { + case 0: return 0; + case 2: return ENOENT; + case 4: return EINTR; + case 6: return ENXIO; + case 8: return ENOEXEC; + } + return -1; +} + void TestLogging(bool check_counts) { int64 base_num_infos = LogMessage::num_messages(GLOG_INFO); int64 base_num_warning = LogMessage::num_messages(GLOG_WARNING); @@ -242,7 +253,7 @@ LOG(INFO) << string("foo ") << "bar " << 10 << ' ' << 3.4; for ( int i = 0; i < 10; ++i ) { int old_errno = errno; - errno = i; + errno = errnoForIteration(i); PLOG_EVERY_N(ERROR, 2) << "Plog every 2, iteration " << COUNTER; errno = old_errno; Index: pkg-google-glog/src/logging_unittest.err =================================================================== --- pkg-google-glog.orig/src/logging_unittest.err 2012-06-21 17:15:22.000000000 +0900 +++ pkg-google-glog/src/logging_unittest.err 2012-06-21 17:17:30.000000000 +0900 @@ -51,21 +51,21 @@ IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 1 EDATE TIME__ THREADID logging_unittest.cc:LINE] Log if less than 3 every 2, iteration 1 IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 2 -EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 3: __ENOENT__ [2] +EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 3: __ENOENT__ [__ENOENT_NUM__] IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 3 EDATE TIME__ THREADID logging_unittest.cc:LINE] Log if less than 3 every 2, iteration 3 EDATE TIME__ THREADID logging_unittest.cc:LINE] Log every 3, iteration 4 IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 4 -EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 5: __EINTR__ [4] +EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 5: __EINTR__ [__EINTR_NUM__] EDATE TIME__ THREADID logging_unittest.cc:LINE] Log every 4, iteration 5 IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 5 WDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 5, iteration 6 IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 6 -EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 7: __ENXIO__ [6] +EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 7: __ENXIO__ [__ENXIO_NUM__] EDATE TIME__ THREADID logging_unittest.cc:LINE] Log every 3, iteration 7 IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 7 IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 8 -EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 9: __ENOEXEC__ [8] +EDATE TIME__ THREADID logging_unittest.cc:LINE] Plog every 2, iteration 9: __ENOEXEC__ [__ENOEXEC_NUM__] EDATE TIME__ THREADID logging_unittest.cc:LINE] Log every 4, iteration 9 IDATE TIME__ THREADID logging_unittest.cc:LINE] Log if every 1, iteration 9 EDATE TIME__ THREADID logging_unittest.cc:LINE] Log every 3, iteration 10 debian/patches/20130313_fix_test_on_ports.diff0000644000000000000000000000144412120365212016170 0ustar Index: google-glog-0.3.2/src/signalhandler_unittest.sh =================================================================== --- google-glog-0.3.2.orig/src/signalhandler_unittest.sh 2013-03-13 13:49:37.820188111 -0400 +++ google-glog-0.3.2/src/signalhandler_unittest.sh 2013-03-13 14:07:11.980204520 -0400 @@ -65,10 +65,10 @@ exit 0 fi -# The PC cannot be obtained in signal handlers on PowerPC correctly. -# We just skip the test for PowerPC. -if [ x`uname -p` = x"powerpc" ]; then - echo "PASS (We don't test the signal handler on PowerPC.)" +# This test only works correctly on i386 and amd64. +# We just skip the test when not on those platforms. +if [ x`uname -m` != x"x86_64" -a x`uname -m` != x"i686" ]; then + echo "PASS (We only test the signal handler on i386 or amd64.)" exit 0 fi debian/patches/series0000644000000000000000000000012012120365212012015 0ustar 20120617_fix_for_hurd.diff 20120621_errnos.diff 20130313_fix_test_on_ports.diff debian/patches/20120617_fix_for_hurd.diff0000644000000000000000000000244512120365212015106 0ustar Index: pkg-google-glog/configure.ac =================================================================== --- pkg-google-glog.orig/configure.ac 2012-06-17 21:48:33.000000000 +0900 +++ pkg-google-glog/configure.ac 2012-06-17 22:37:32.000000000 +0900 @@ -32,8 +32,16 @@ AC_CHECK_HEADER(sys/types.h, ac_cv_have_systypes_h=1, ac_cv_have_systypes_h=0) AC_CHECK_HEADER(inttypes.h, ac_cv_have_inttypes_h=1, ac_cv_have_inttypes_h=0) AC_CHECK_HEADERS(unistd.h, ac_cv_have_unistd_h=1, ac_cv_have_unistd_h=0) -AC_CHECK_HEADERS(syscall.h) -AC_CHECK_HEADERS(sys/syscall.h) +# Do not check for syscall.h on GNU/Hurd, as it is available but not +# the way to do "syscalls" +case "$host_os" in + gnu*) + ;; + *) + AC_CHECK_HEADERS(syscall.h) + AC_CHECK_HEADERS(sys/syscall.h) + ;; +esac # For backtrace with glibc. AC_CHECK_HEADERS(execinfo.h) # For backtrace with libunwind. Index: pkg-google-glog/src/utilities.h =================================================================== --- pkg-google-glog.orig/src/utilities.h 2012-06-17 21:48:33.000000000 +0900 +++ pkg-google-glog/src/utilities.h 2012-06-17 22:36:56.000000000 +0900 @@ -48,6 +48,8 @@ # define OS_NETBSD #elif defined(__OpenBSD__) # define OS_OPENBSD +#elif defined(__GNU__) +# define OS_HURD #else // TODO(hamaji): Add other platforms. #endif debian/watch0000644000000000000000000000014012120365212010204 0ustar version=3 http://code.google.com/p/google-glog/downloads/list?can=1 .*/glog-(\d[\d.]*)\.tar\.gz debian/source/0000755000000000000000000000000012120365212010460 5ustar debian/source/format0000644000000000000000000000001412120365212011666 0ustar 3.0 (quilt) debian/libgoogle-glog-dev.install0000644000000000000000000000011312120365212014210 0ustar usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig/lib*.pc usr/include debian/copyright0000644000000000000000000000346712120365212011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: google-glog Source: http://code.google.com/p/google-glog/ Files: * Copyright: 2008 Google Inc. License: BSD-3-Clause Files: debian/* Copyright: 2008 Google Inc. 2012 Koichi Akabe 2010-2012 Daigo Moriwaki License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/libgoogle-glog0.install0000644000000000000000000000002412120365212013515 0ustar usr/lib/*/lib*.so.*