debian/0000775000000000000000000000000012302516527007173 5ustar debian/librdkafka-dev.dirs0000664000000000000000000000002412300523661012713 0ustar usr/lib usr/include debian/librdkafka1.install0000664000000000000000000000002212300523661012723 0ustar usr/lib/lib*.so.* debian/copyright0000664000000000000000000001043312300523661011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: librdkafka Source: https://github.com/edenhill/librdkafka License: BSD-2-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. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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. Files: * Copyright: 2012-2013, Magnus Edenhill License: BSD-2-clause Files: rdcrc32.c rdcrc32.h Copyright: 2006-2012, Thomas Pircher License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: snappy.c snappy.h snappy_compat.h Copyright: 2005, Google Inc. 2011, Intel Corporation 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: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * 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. * Neither the name of Google Inc. 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 COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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. Files: debian/* Copyright: 2013 Faidon Liambotis License: BSD-2-clause debian/source/0000775000000000000000000000000012300523661010466 5ustar debian/source/format0000664000000000000000000000001412300523661011674 0ustar 3.0 (quilt) debian/changelog0000664000000000000000000000263612302516527011054 0ustar librdkafka (0.8.3-1ubuntu2) trusty; urgency=medium * link-atomic.patch: Fix s/__atmoic/__atomic/ typo in the previous patch. -- Adam Conrad Sun, 23 Feb 2014 18:15:37 -0700 librdkafka (0.8.3-1ubuntu1) trusty; urgency=medium * link-atomic.patch: Switch from __sync to __atomic to support more arches. * Switch back to arch:any instead of the Debian maintainer's shorter list. -- Adam Conrad Sat, 22 Feb 2014 16:59:19 -0700 librdkafka (0.8.3-1) unstable; urgency=medium * New upstream release. - Multiple internal symbols hidden; breaks ABI without a SONAME bump, but these were internal and should not break any applications, packaged or not. * Update Standards-Version to 3.9.5, no changes needed. -- Faidon Liambotis Tue, 18 Feb 2014 02:21:43 +0200 librdkafka (0.8.1-1) unstable; urgency=medium * New upstream release. - Multiple fixes to FTBFS on various architectures. (Closes: #730506) - Remove dh_auto_clean override, fixed upstream. * Limit the set of architectures: upstream currently relies on 64-bit atomic operations that several Debian architectures do not support. -- Faidon Liambotis Thu, 05 Dec 2013 16:53:28 +0200 librdkafka (0.8.0-1) unstable; urgency=low * Initial release. (Closes: #710271) -- Faidon Liambotis Mon, 04 Nov 2013 16:50:07 +0200 debian/compat0000664000000000000000000000000212300523661010364 0ustar 9 debian/rules0000775000000000000000000000026512300523661010251 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_strip: dh_strip --dbg-package=librdkafka1-dbg .PHONY: override_dh_strip debian/control0000664000000000000000000000351712302515516010601 0ustar Source: librdkafka Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Faidon Liambotis Build-Depends: debhelper (>= 9), zlib1g-dev Standards-Version: 3.9.5 Section: libs Homepage: https://github.com/edenhill/librdkafka Vcs-Git: git://github.com/edenhill/librdkafka.git -b debian Vcs-Browser: https://github.com/edenhill/librdkafka/tree/debian Package: librdkafka1 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: library implementing the Apache Kafka protocol librdkafka is a C implementation of the Apache Kafka protocol. It currently implements the 0.8 version of the protocol and can be used to develop both Producers and Consumers. . More information about Apache Kafka can be found at http://kafka.apache.org/ Package: librdkafka-dev Section: libdevel Architecture: any Depends: librdkafka1 (= ${binary:Version}), ${misc:Depends} Description: library implementing the Apache Kafka protocol (development headers) librdkafka is a C implementation of the Apache Kafka protocol. It currently implements the 0.8 version of the protocol and can be used to develop both Producers and Consumers. . More information about Apache Kafka can be found at http://kafka.apache.org/ . This package contains the development headers. Package: librdkafka1-dbg Section: debug Priority: extra Architecture: any Depends: librdkafka1 (= ${binary:Version}), ${misc:Depends} Description: library implementing the Apache Kafka protocol (debugging symbols) librdkafka is a C implementation of the Apache Kafka protocol. It currently implements the 0.8 version of the protocol and can be used to develop both Producers and Consumers. . More information about Apache Kafka can be found at http://kafka.apache.org/ . This package contains the debugging symbols. debian/librdkafka-dev.examples0000664000000000000000000000007212300523661013573 0ustar examples/rdkafka_example.c examples/rdkafka_performance.c debian/watch0000664000000000000000000000011512300523661010214 0ustar version=3 http://github.com/edenhill/librdkafka/tags .*/(\d[\d\.]*)\.tar\.gz debian/docs0000664000000000000000000000003212300523661010034 0ustar README.md INTRODUCTION.md debian/gbp.conf0000664000000000000000000000032312300523661010603 0ustar [git-buildpackage] upstream-tree=tag upstream-branch=master debian-branch=debian upstream-tag=%(version)s debian-tag=debian/%(version)s no-create-orig = True tarball-dir = ../tarballs export-dir = ../build-area debian/patches/0000775000000000000000000000000012302516465010623 5ustar debian/patches/link-atomic.patch0000664000000000000000000000600512302516465014054 0ustar Description: Switch from __sync functions to __atomic for better arch support Author: Adam Conrad Index: librdkafka-0.8.3/Makefile =================================================================== --- librdkafka-0.8.3.orig/Makefile 2014-02-10 09:37:21.000000000 -0700 +++ librdkafka-0.8.3/Makefile 2014-02-22 17:15:42.000000000 -0700 @@ -57,7 +57,7 @@ $(CC) $(LDFLAGS) \ -shared -Wl,-soname,$@ \ -Wl,--version-script=librdkafka.lds \ - $(OBJS) -o $@ -lpthread -lrt -lz -lc ; \ + $(OBJS) -o $@ -lpthread -lrt -lz -lc -latomic ; \ fi) $(LIBNAME).a: $(OBJS) Index: librdkafka-0.8.3/examples/Makefile =================================================================== --- librdkafka-0.8.3.orig/examples/Makefile 2014-02-10 09:37:21.000000000 -0700 +++ librdkafka-0.8.3/examples/Makefile 2014-02-22 17:15:57.648623936 -0700 @@ -6,7 +6,7 @@ LDFLAGS += ../librdkafka.a LDFLAGS += -lpthread -lz ifeq ($(shell uname -s), Linux) - LDFLAGS += -lrt + LDFLAGS += -lrt -latomic endif # Profiling Index: librdkafka-0.8.3/tests/Makefile =================================================================== --- librdkafka-0.8.3.orig/tests/Makefile 2014-02-10 09:37:21.000000000 -0700 +++ librdkafka-0.8.3/tests/Makefile 2014-02-22 17:16:59.336621754 -0700 @@ -8,7 +8,7 @@ LDFLAGS += -L../ -lrdkafka LDFLAGS += -lpthread -lz ifeq ($(shell uname -s), Linux) - LDFLAGS += -lrt + LDFLAGS += -lrt -latomic endif # Profiling Index: librdkafka-0.8.3/README.md =================================================================== --- librdkafka-0.8.3.orig/README.md 2014-02-22 17:17:42.672620221 -0700 +++ librdkafka-0.8.3/README.md 2014-02-22 17:18:06.864619365 -0700 @@ -91,7 +91,7 @@ See [examples/rdkafka_example.c](https://github.com/edenhill/librdkafka/blob/master/examples/rdkafka_example.c) for an example producer and consumer. -Link your program with `-lrdkafka -lz -lpthread -lrt`. +Link your program with `-lrdkafka -lz -lpthread -lrt -latomic`. ## Documentation Index: librdkafka-0.8.3/rd.h =================================================================== --- librdkafka-0.8.3.orig/rd.h 2014-02-10 09:37:21.000000000 -0700 +++ librdkafka-0.8.3/rd.h 2014-02-22 17:50:11.804551280 -0700 @@ -83,13 +83,13 @@ ((val) < (low) ? low : ((val) > (hi) ? (hi) : (val))) -#define rd_atomic_add(PTR,VAL) __sync_add_and_fetch(PTR,VAL) -#define rd_atomic_sub(PTR,VAL) __sync_sub_and_fetch(PTR,VAL) +#define rd_atomic_add(PTR,VAL) __atomic_add_fetch(PTR,VAL,__ATOMIC_SEQ_CST) +#define rd_atomic_sub(PTR,VAL) __atomic_sub_fetch(PTR,VAL,__ATOMIC_SEQ_CST) -#define rd_atomic_add_prev(PTR,VAL) __sync_fetch_and_add(PTR,VAL) -#define rd_atomic_sub_prev(PTR,VAL) __sync_fetch_and_sub(PTR,VAL) +#define rd_atomic_add_prev(PTR,VAL) __atomic_fetch_add(PTR,VAL,__ATOMIC_SEQ_CST) +#define rd_atomic_sub_prev(PTR,VAL) __atomic_fetch_sub(PTR,VAL,__ATOMIC_SEQ_CST) -#define rd_atomic_set(PTR,VAL) __sync_lock_test_and_set(PTR,VAL) +#define rd_atomic_set(PTR,VAL) __atomic_test_and_set(PTR,__ATOMIC_SEQ_CST) #ifndef be64toh debian/patches/series0000664000000000000000000000002212302235626012027 0ustar link-atomic.patch debian/librdkafka1.dirs0000664000000000000000000000001012300523661012213 0ustar usr/lib debian/librdkafka1.symbols0000664000000000000000000000326312300523661012757 0ustar librdkafka.so.1 librdkafka1 #MINVER# * Build-Depends-Package: librdkafka-dev rd_kafka_brokers_add@Base 0.8.0 rd_kafka_conf_destroy@Base 0.8.0 rd_kafka_conf_dump@Base 0.8.3 rd_kafka_conf_dump_free@Base 0.8.3 rd_kafka_conf_dup@Base 0.8.3 rd_kafka_conf_new@Base 0.8.0 rd_kafka_conf_properties_show@Base 0.8.0 rd_kafka_conf_set@Base 0.8.0 rd_kafka_conf_set_dr_cb@Base 0.8.0 rd_kafka_conf_set_error_cb@Base 0.8.0 rd_kafka_conf_set_opaque@Base 0.8.0 rd_kafka_conf_set_stats_cb@Base 0.8.0 rd_kafka_consume@Base 0.8.0 rd_kafka_consume_batch@Base 0.8.0 rd_kafka_consume_callback@Base 0.8.0 rd_kafka_consume_start@Base 0.8.0 rd_kafka_consume_stop@Base 0.8.0 rd_kafka_destroy@Base 0.8.0 rd_kafka_dump@Base 0.8.0 rd_kafka_err2str@Base 0.8.0 rd_kafka_errno2err@Base 0.8.3 rd_kafka_log_print@Base 0.8.0 rd_kafka_log_syslog@Base 0.8.0 rd_kafka_message_destroy@Base 0.8.0 rd_kafka_msg_partitioner_random@Base 0.8.0 rd_kafka_name@Base 0.8.0 rd_kafka_new@Base 0.8.0 rd_kafka_offset_store@Base 0.8.3 rd_kafka_outq_len@Base 0.8.0 rd_kafka_poll@Base 0.8.0 rd_kafka_produce@Base 0.8.0 rd_kafka_set_log_level@Base 0.8.0 rd_kafka_set_logger@Base 0.8.0 rd_kafka_thread_cnt@Base 0.8.0 rd_kafka_topic_conf_destroy@Base 0.8.0 rd_kafka_topic_conf_dump@Base 0.8.3 rd_kafka_topic_conf_dup@Base 0.8.3 rd_kafka_topic_conf_new@Base 0.8.0 rd_kafka_topic_conf_set@Base 0.8.0 rd_kafka_topic_conf_set_opaque@Base 0.8.0 rd_kafka_topic_conf_set_partitioner_cb@Base 0.8.0 rd_kafka_topic_destroy@Base 0.8.0 rd_kafka_topic_name@Base 0.8.0 rd_kafka_topic_new@Base 0.8.0 rd_kafka_topic_partition_available@Base 0.8.0 rd_kafka_version@Base 0.8.1 rd_kafka_version_str@Base 0.8.1 rd_kafka_wait_destroyed@Base 0.8.0 debian/librdkafka-dev.install0000664000000000000000000000005512300523661013424 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so