http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.cxx ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.cxx b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.cxx deleted file mode 100644 index a38ac73..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.cxx +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# -# C++ detection -# -# This script simply limits the checks of configure.cc - - -MKL_CC_WANT_CXX=1
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.fileversion ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.fileversion b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.fileversion deleted file mode 100644 index 9bea117..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.fileversion +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash -# -# Reads version from file and sets variables accordingly -# The first non-commented line in the file is expected to be the version string. -# Arguments: -# filename -# STR_VERSION_VARIABLE_NAME -# [ HEX_VERSION_VARIABLE_NAME ] -# -# Example: Set string version in variable named "MYVERSION_STR" and -# the hex representation in "MYVERSION" -# mkl_require VERSION.txt MYVERSION_STR MYVERSION - -if [[ -z "$2" ]]; then - mkl_fail "fileversion" "none" "fail" "Missing argument(s), expected: FILENAME STR_VER HEX_VER" - return 0 -fi - -fileversion_file="$1" -fileversion_strvar="$2" -fileversion_hexvar="$3" - -function checks { - mkl_check_begin "fileversion" "" "no-cache" "version from file $fileversion_file" - - if [[ ! -s $fileversion_file ]]; then - mkl_check_failed "fileversion" "" "fail" \ - "Version file $fileversion_file is not readable" - return 1 - fi - - local orig=$(grep -v ^\# "$fileversion_file" | grep -v '^$' | head -1) - # Strip v prefix if any - orig=${orig#v} - - # Try to decode version string into hex - # Supported format is "[v]NN.NN.NN[.NN]" - if [[ ! -z $fileversion_hexvar ]]; then - local hex="" - local s=${orig#v} # Strip v prefix, if any. - local ncnt=0 - local n= - for n in ${s//./ } ; do - if [[ ! ( "$n" =~ ^[0-9][0-9]?$ ) ]]; then - mkl_check_failed "fileversion" "" "fail" \ - "$fileversion_file: Could not decode '$orig' into hex version, expecting format 'NN.NN.NN[.NN]'" - return 1 - fi - hex="$hex$(printf %02x $n)" - ncnt=$(expr $ncnt + 1) - done - - if [[ ! -z $hex ]]; then - # Finish all four bytess - for n in {$ncnt..4} ; do - hex="$hex$(printf %02x 0)" - done - mkl_allvar_set "fileversion" "$fileversion_hexvar" "0x$hex" - fi - fi - - mkl_allvar_set "fileversion" "$fileversion_strvar" "$orig" - - mkl_check_done "fileversion" "" "cont" "ok" "${!fileversion_strvar}" -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.gitversion ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.gitversion b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.gitversion deleted file mode 100644 index b6ac486..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.gitversion +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# -# Sets version variable from git information. -# Optional arguments: -# "as" -# VARIABLE_NAME -# -# Example: Set version in variable named "MYVERSION": -# mkl_require gitversion as MYVERSION - -if [[ $1 == "as" ]]; then - __MKL_GITVERSION_VARNAME="$2" -else - __MKL_GITVERSION_VARNAME="VERSION" -fi - -function checks { - mkl_allvar_set "gitversion" "$__MKL_GITVERSION_VARNAME" "$(git describe --abbrev=6 --tags HEAD --always)" -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.good_cflags ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.good_cflags b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.good_cflags deleted file mode 100644 index c8587f2..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.good_cflags +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# -# Provides some known-good CFLAGS -# Sets: -# CFLAGS -# CXXFLAGS -# CPPFLAGS - - -function checks { - mkl_mkvar_append CPPFLAGS CPPFLAGS \ - "-Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align" - - if [[ $MKL_WANT_WERROR = "y" ]]; then - mkl_mkvar_append CPPFLAGS CPPFLAGS \ - "-Werror" - fi -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.host ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.host b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.host deleted file mode 100644 index 4dfdce8..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.host +++ /dev/null @@ -1,110 +0,0 @@ -#!/bin/bash -# -# Host OS support -# Sets: -# HOST -# BUILD -# TARGET - -# FIXME: No need for this right now -#mkl_require host_linux -#mkl_require host_osx -#mkl_require host_cygwin - -#mkl_option "Cross-compilation" "mk:HOST_OS" "--host-os=osname" "Host OS (linux,osx,cygwin,..)" "auto" - - -# autoconf compatibility - does nothing at this point -mkl_option "Cross-compilation" "mk:HOST" "--host=HOST" "Configure to build programs to run on HOST (no-op)" -mkl_option "Cross-compilation" "mk:BUILD" "--build=BUILD" "Configure for building on BUILD (no-op)" -mkl_option "Cross-compilation" "mk:TARGET" "--target=TARGET" "Configure for building cross-toolkits for platform TARGET (no-op)" - -function checks { - # Try to figure out what OS/distro we are running on. - mkl_check_begin "distro" "" "no-cache" "OS or distribution" - - solib_ext=.so - - # Try lsb_release - local sys - sys=$(lsb_release -is 2>/dev/null) - if [[ $? -gt 0 ]]; then - # That didnt work, try uname. - local kn=$(uname -s) - case $kn in - Linux) - sys=Linux - solib_ext=.so - ;; - Darwin) - sys=osx - solib_ext=.dylib - ;; - CYGWIN*) - sys=Cygwin - solib_ext=.dll - ;; - *) - sys="$kn" - solib_ext=.so - ;; - esac - fi - - if [[ -z $sys ]]; then - mkl_check_failed "distro" "" "ignore" "" - else - mkl_check_done "distro" "" "ignore" "ok" "$sys" - mkl_mkvar_set "distro" "MKL_DISTRO" "$sys" - mkl_allvar_set "distro" "SOLIB_EXT" "$solib_ext" - fi -} - -#function checks { -# mkl_check_begin "host" "HOST_OS" "no-cache" "host OS" -# -# # -# # If --host-os=.. was not specified then this is most likely not a -# # a cross-compilation and we can base the host-os on the native OS. -# # -# if [[ $HOST_OS != "auto" ]]; then -# mkl_check_done "host" "HOST_OS" "cont" "ok" "$HOST_OS" -# return 0 -# fi -# -# kn=$(uname -s) -# case $kn in -# Linux) -# hostos=linux -# ;; -# Darwin) -# hostos=osx -# ;; -# CYGWIN*) -# hostos=cygwin -# ;; -# *) -# hostos="$(mkl_lower $kn)" -# mkl_err "Unknown host OS kernel name: $kn" -# mkl_err0 " Will attempt to load module host_$hostos anyway." -# mkl_err0 " Please consider writing a configure.host_$hostos" -# ;; -# esac -# -# if ! mkl_require --try "host_$hostos"; then -# # Module not found -# mkl_check_done "host" "HOST_OS" "cont" "failed" "$kn?" -# else -# # Module loaded -# -# if mkl_func_exists "host_${hostos}_setup" ; then -# "host_${hostos}_setup" -# fi -# -# mkl_check_done "host" "HOST_OS" "cont" "ok" "$hostos" -# fi -# -# # Set HOST_OS var even if probing failed. -# mkl_mkvar_set "host" "HOST_OS" "$hostos" -#} - http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.lib ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.lib b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.lib deleted file mode 100644 index 49ed293..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.lib +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -# -# Module for building shared libraries -# Sets: -# WITH_GNULD | WITH_OSXLD -# WITH_LDS - linker script support -mkl_require pic - -function checks { - - mkl_mkvar_append LIB_LDFLAGS LIB_LDFLAGS '-shared' - - # Check what arguments to pass to CC or LD for shared libraries - mkl_meta_set gnulib name "GNU-compatible linker options" - mkl_meta_set osxlib name "OSX linker options" - - if mkl_compile_check gnulib WITH_GNULD cont CC \ - "-shared -Wl,-soname,mkltest.0" "" ; then - # GNU linker - mkl_mkvar_append LIB_LDFLAGS LIB_LDFLAGS '-Wl,-soname,$(LIBFILENAME)' - - elif mkl_compile_check osxlib WITH_OSXLD cont CC \ - "-dynamiclib -Wl,-install_name,/tmp/mkltest.so.0" ; then - # OSX linker - mkl_mkvar_append LIB_LDFLAGS LIB_LDFLAGS '-dynamiclib -Wl,-install_name,$(DESTDIR)$(libdir)/$(LIBFILENAME)' - fi - - # Check what argument is needed for passing linker script. - local ldsfile=$(mktemp _mkltmpXXXXXX) - echo "{ - global: - *; -}; -" > $ldsfile - - mkl_meta_set ldsflagvs name "GNU linker-script ld flag" - mkl_meta_set ldsflagm name "Solaris linker-script ld flag" - if mkl_compile_check ldsflagvs "" cont CC \ - "-shared -Wl,--version-script=$ldsfile"; then - mkl_mkvar_set ldsflagvs LDFLAG_LINKERSCRIPT "-Wl,--version-script=" - mkl_mkvar_set lib_lds WITH_LDS y - elif mkl_compile_check ldsflagm "" ignore CC \ - "-shared -Wl,-M$ldsfile"; then - mkl_mkvar_set ldsflagm LDFLAG_LINKERSCRIPT "-Wl,-M" - mkl_mkvar_set lib_lds WITH_LDS y - fi - - rm -f "$ldsfile" -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.parseversion ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.parseversion b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.parseversion deleted file mode 100644 index 0ee0f57..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.parseversion +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/bash -# -# Parses the provided version string and creates variables accordingly. -# [ "hex2str" <fmt> ] -- version-string is in hex (e.g., 0x00080300) -# version-string -# STR_VERSION_VARIABLE_NAME -# [ HEX_VERSION_VARIABLE_NAME ] -# -# Note: The version will also be set in MKL_APP_VERSION -# -# Example: Set string version in variable named "MYVERSION_STR" and -# the hex representation in "MYVERSION" -# mkl_require parseversion "$(head -1 VERSION.txt)" MYVERSION_STR MYVERSION - -if [[ $1 == "hex2str" ]]; then - parseversion_type="hex" - parseversion_fmt="${2}:END:%d%d%d%d" - shift - shift -else - parseversion_type="" - parseversion_fmt="%d.%d.%d.%d" -fi - -if [[ -z "$2" ]]; then - mkl_fail "parseversion" "none" "fail" "Missing argument(s)" - return 0 -fi - -parseversion_orig="$1" -parseversion_strvar="$2" -parseversion_hexvar="$3" - -function checks { - mkl_check_begin --verb "parsing" "parseversion" "" "no-cache" \ - "version '$parseversion_orig'" - - # Strip v prefix if any - orig=${parseversion_orig#v} - - if [[ $orig == 0x* ]]; then - parseversion_type="hex" - orig=${orig#0x} - fi - - if [[ -z $orig ]]; then - mkl_check_failed "parseversion" "" "fail" "Version string is empty" - return 1 - fi - - # If orig is in hex we construct a string format instead. - if [[ $parseversion_type == "hex" ]]; then - local s=$orig - local str="" - local vals="" - while [[ ! -z $s ]]; do - local n=${s:0:2} - s=${s:${#n}} - vals="${vals}$(printf %d 0x$n) " - done - str=$(printf "$parseversion_fmt" $vals) - orig=${str%:END:*} - fi - - - # Try to decode version string into hex - # Supported format is "[v]NN.NN.NN[.NN]" - if [[ ! -z $parseversion_hexvar ]]; then - local hex="" - local s=$orig - local ncnt=0 - local n= - for n in ${s//./ } ; do - if [[ ! ( "$n" =~ ^[0-9][0-9]?$ ) ]]; then - mkl_check_failed "parseversion" "" "fail" \ - "Could not decode '$parseversion_orig' into hex version, expecting format 'NN.NN.NN[.NN]'" - return 1 - fi - hex="$hex$(printf %02x $n)" - ncnt=$(expr $ncnt + 1) - done - - if [[ ! -z $hex ]]; then - # Finish all four bytess - while [[ ${#hex} -lt 8 ]]; do - hex="$hex$(printf %02x 0)" - done - mkl_allvar_set "parseversion" "$parseversion_hexvar" "0x$hex" - fi - fi - - mkl_allvar_set "parseversion" "$parseversion_strvar" "$orig" - mkl_allvar_set "parseversion" MKL_APP_VERSION "$orig" - mkl_check_done "parseversion" "" "cont" "ok" "${!parseversion_strvar}" -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.pic ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.pic b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.pic deleted file mode 100644 index 8f138f8..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.pic +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -# -# Checks if -fPIC is supported, and if so turns it on. -# -# Sets: -# HAVE_PIC -# CPPFLAGS -# - -function checks { - - if mkl_compile_check PIC HAVE_PIC disable CC "-fPIC" "" ; then - mkl_mkvar_append CPPFLAGS CPPFLAGS "-fPIC" - fi -} - http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/mklove/modules/configure.socket ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.socket b/thirdparty/librdkafka-0.11.1/mklove/modules/configure.socket deleted file mode 100644 index f0777ab..0000000 --- a/thirdparty/librdkafka-0.11.1/mklove/modules/configure.socket +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# Provides proper compiler flags for socket support, e.g. socket(3). - -function checks { - - local src=" -#include <sys/types.h> -#include <sys/socket.h> -#include <unistd.h> -void foo (void) { - int s = socket(0, 0, 0); - close(s); -}" - if ! mkl_compile_check socket "" cont CC "" "$src"; then - if mkl_compile_check --ldflags="-lsocket -lnsl" socket_nsl "" fail CC "" "$src"; then - mkl_mkvar_append socket_nsl LIBS "-lsocket -lnsl" - fi - fi -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/RELEASE.md ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/RELEASE.md b/thirdparty/librdkafka-0.11.1/packaging/RELEASE.md deleted file mode 100644 index 28b002d..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/RELEASE.md +++ /dev/null @@ -1,116 +0,0 @@ -# librdkafka release process - -This guide outlines the steps needed to release a new version of librdkafka -and publish packages to channels (NuGet, Homebrew, etc,..). - -Releases are done in two phases: - * release-candidate(s) - RC1 will be the first release candidate, and any - changes to the repository will require a new RC. - * final release - the final release is based directly on the last RC tag - followed by a single version-bump commit (see below). - -Release tag and version format: - * release-candidate: vA.B.C-RCn - * final release: vA.B.C - - - -## Run regression tests - -**Build tests:** - - $ cd tests - $ make -j build - -**Run the full regression test suite:** (requires Linux and the trivup python package) - - $ make full - - -If all tests pass, carry on, otherwise identify and fix bug and start over. - - -## Pre-release code tasks - -**Switch to the release branch which is of the format `A.B.C.x` or `A.B.x`.** - - $ git checkout 0.11.1.x - - -**Update in-code versions.** - -Change the RD_KAFKA_VERSION defines in src/rdkafka.h and src-cpp/rdkafkacpp.h -to the version to build, such as 0x000b01c9 for v0.11.1-RC1, or 0x000b01ff for -the final v0.11.1 release. - -The last octet in the version hex number is the pre-build/release-candidate -number, where 0xAABBCCff is the final release for version 0xAABBCC. -Release candidates start at 200, thus 0xAABBCCc9 is RC1, 0xAABBCCca is RC2, etc. - - -**Create tag.** - - $ git tag v0.11.1-RC1 # for an RC - # #git tag v0.11.1 # for the final release - - -**Push tags and commit to github** - - # Dry-run first to make sure things look correct. - $ git push --dry-run --tags origin v0.11.1-RC1 - - # Live - $ git push --tags origin v0.11.1-RC1 - - - -## Creating packages - -As soon as a tag is pushed the CI systems (Travis and AppVeyor) will -start their builds and eventually upload the packaging artifacts to S3. -Wait until this process is finished by monitoring the two CIs: - - * https://travis-ci.org/edenhill/librdkafka - * https://ci.appveyor.com/project/edenhill/librdkafka - - -### Create NuGet package - -On a Linux host with docker installed, this will also require S3 credentials -to be set up. - - $ cd package/nuget - $ pip install -r requirements.txt # if necessary - $ ./release.py v0.11.1-RC1 - -Test the generated librdkafka.redist.0.11.1-RC1.nupkg and -then upload it to NuGet manually: - - * https://www.nuget.org/packages/manage/upload - - -### Homebrew recipe update - -The brew-update-pr.sh script automatically pushes a PR to homebrew-core -with a patch to update the librdkafka version of the formula. -This should only be done for final releases and not release candidates. - -On a MacOSX host with homebrew installed: - - $ cd package/homebrew - # Dry-run first to see that things are okay. - $ ./brew-update-pr.sh v0.11.1 - # If everything looks good, do the live push: - $ ./brew-update-pr.sh --upload v0.11.1 - - -### Deb and RPM packaging - -Debian and RPM packages are generated by Confluent packaging in a separate -process and the resulting packages are made available on Confluent's -APT and YUM repositories. - -That process is outside the scope of this document. - -See the Confluent docs for instructions how to access these packages: -https://docs.confluent.io/current/installation.html http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/archlinux/PKGBUILD ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/archlinux/PKGBUILD b/thirdparty/librdkafka-0.11.1/packaging/archlinux/PKGBUILD deleted file mode 100644 index 9321698..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/archlinux/PKGBUILD +++ /dev/null @@ -1,5 +0,0 @@ -pkgname=librdkafka -pkgver=master -pkgrel=1 -pkgdesc=The Apache Kafka C/C++ client library -arch=('i686' 'x86_64') http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/Config.cmake.in ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/Config.cmake.in b/thirdparty/librdkafka-0.11.1/packaging/cmake/Config.cmake.in deleted file mode 100644 index ef9e067..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/Config.cmake.in +++ /dev/null @@ -1,20 +0,0 @@ -@PACKAGE_INIT@ - -include(CMakeFindDependencyMacro) - -if(@WITH_ZLIB@) - find_dependency(ZLIB) -endif() - -if(@WITH_SSL@) - if(@WITH_BUNDLED_SSL@) - # TODO: custom SSL library should be installed - else() - find_dependency(OpenSSL) - endif() -endif() - -find_dependency(Threads) - -include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") -check_required_components("@PROJECT_NAME@") http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_32_test.c ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_32_test.c b/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_32_test.c deleted file mode 100644 index de9738a..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_32_test.c +++ /dev/null @@ -1,8 +0,0 @@ -#include <inttypes.h> - -int32_t foo (int32_t i) { - return __atomic_add_fetch(&i, 1, __ATOMIC_SEQ_CST); -} - -int main() { -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_64_test.c ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_64_test.c b/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_64_test.c deleted file mode 100644 index a713c74..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/atomic_64_test.c +++ /dev/null @@ -1,8 +0,0 @@ -#include <inttypes.h> - -int64_t foo (int64_t i) { - return __atomic_add_fetch(&i, 1, __ATOMIC_SEQ_CST); -} - -int main() { -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/rdkafka_setup.cmake ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/rdkafka_setup.cmake b/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/rdkafka_setup.cmake deleted file mode 100644 index b5a3535..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/rdkafka_setup.cmake +++ /dev/null @@ -1,76 +0,0 @@ -try_compile( - HAVE_REGEX - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/regex_test.c" -) - -try_compile( - HAVE_STRNDUP - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/strndup_test.c" -) - -# Atomic 32 tests { -set(LINK_ATOMIC NO) -set(HAVE_ATOMICS_32 NO) -set(HAVE_ATOMICS_32_SYNC NO) - -try_compile( - _atomics_32 - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/atomic_32_test.c" -) - -if(_atomics_32) - set(HAVE_ATOMICS_32 YES) -else() - try_compile( - _atomics_32_lib - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/atomic_32_test.c" - LINK_LIBRARIES "-latomic" - ) - if(_atomics_32_lib) - set(HAVE_ATOMICS_32 YES) - set(LINK_ATOMIC YES) - else() - try_compile( - HAVE_ATOMICS_32_SYNC - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/sync_32_test.c" - ) - endif() -endif() -# } - -# Atomic 64 tests { -set(HAVE_ATOMICS_64 NO) -set(HAVE_ATOMICS_64_SYNC NO) - -try_compile( - _atomics_64 - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/atomic_64_test.c" -) - -if(_atomics_64) - set(HAVE_ATOMICS_64 YES) -else() - try_compile( - _atomics_64_lib - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/atomic_64_test.c" - LINK_LIBRARIES "-latomic" - ) - if(_atomics_64_lib) - set(HAVE_ATOMICS_64 YES) - set(LINK_ATOMIC YES) - else() - try_compile( - HAVE_ATOMICS_64_SYNC - "${CMAKE_CURRENT_BINARY_DIR}/try_compile" - "${TRYCOMPILE_SRC_DIR}/sync_64_test.c" - ) - endif() -endif() -# } http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/regex_test.c ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/regex_test.c b/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/regex_test.c deleted file mode 100644 index 1d6eeb3..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/regex_test.c +++ /dev/null @@ -1,10 +0,0 @@ -#include <stddef.h> -#include <regex.h> - -int main() { - regcomp(NULL, NULL, 0); - regexec(NULL, NULL, 0, NULL, 0); - regerror(0, NULL, NULL, 0); - regfree(NULL); - return 0; -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/strndup_test.c ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/strndup_test.c b/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/strndup_test.c deleted file mode 100644 index 9b62043..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/strndup_test.c +++ /dev/null @@ -1,5 +0,0 @@ -#include <string.h> - -int main() { - return strndup("hi", 2) ? 0 : 1; -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_32_test.c ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_32_test.c b/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_32_test.c deleted file mode 100644 index 44ba120..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_32_test.c +++ /dev/null @@ -1,8 +0,0 @@ -#include <inttypes.h> - -int32_t foo (int32_t i) { - return __sync_add_and_fetch(&i, 1); -} - -int main() { -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_64_test.c ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_64_test.c b/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_64_test.c deleted file mode 100644 index ad06204..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/cmake/try_compile/sync_64_test.c +++ /dev/null @@ -1,8 +0,0 @@ -#include <inttypes.h> - -int64_t foo (int64_t i) { - return __sync_add_and_fetch(&i, 1); -} - -int main() { -} http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/.gitignore ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/.gitignore b/thirdparty/librdkafka-0.11.1/packaging/debian/.gitignore deleted file mode 100644 index eb66d4d..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -*.log -files -librdkafka-dev -librdkafka1-dbg -librdkafka1 -tmp http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/changelog ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/changelog b/thirdparty/librdkafka-0.11.1/packaging/debian/changelog deleted file mode 100644 index c50cb5a..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/changelog +++ /dev/null @@ -1,66 +0,0 @@ -librdkafka (0.8.6-1) unstable; urgency=medium - - * New upstream release. - * Backport upstream commit f6fd0da, adding --disable-silent-rules - compatibility support to mklove. (Closes: #788742) - - -- Faidon Liambotis <[email protected]> Sun, 19 Jul 2015 01:36:18 +0300 - -librdkafka (0.8.5-2) unstable; urgency=medium - - * Install rdkafka.pc in the right, multiarch location. (Closes: #766759) - - -- Faidon Liambotis <[email protected]> Sun, 26 Oct 2014 06:47:07 +0200 - -librdkafka (0.8.5-1) unstable; urgency=medium - - * New upstream release. - - Fixes kFreeBSD FTBFS. - * Ship rdkafka.pc pkg-config in librdkafka-dev. - - -- Faidon Liambotis <[email protected]> Fri, 24 Oct 2014 18:03:22 +0300 - -librdkafka (0.8.4-1) unstable; urgency=medium - - * New upstream release, including a new build system. - - Add Build-Depends on perl, required by configure. - - Support multiarch library paths. - - Better detection of architecture atomic builtins, supporting more - architectures. (Closes: #739930) - - Various portability bugs fixed. (Closes: #730506) - - Update debian/librdkafka1.symbols. - * Convert to a multiarch package. - * Switch to Architecture: any, because of renewed upstream portability. - * Update debian/copyright to add src/ before Files: paths. - * Update Standards-Version to 3.9.6, no changes needed. - * Ship only the C library for now, not the new C++ library; the latter is - still in flux in some ways and will probably be shipped in a separate - package in a future release. - - -- Faidon Liambotis <[email protected]> Wed, 22 Oct 2014 23:57:24 +0300 - -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 <[email protected]> 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 <[email protected]> Thu, 05 Dec 2013 16:53:28 +0200 - -librdkafka (0.8.0-1) unstable; urgency=low - - * Initial release. (Closes: #710271) - - -- Faidon Liambotis <[email protected]> Mon, 04 Nov 2013 16:50:07 +0200 http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/compat ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/compat b/thirdparty/librdkafka-0.11.1/packaging/debian/compat deleted file mode 100644 index ec63514..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/control ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/control b/thirdparty/librdkafka-0.11.1/packaging/debian/control deleted file mode 100644 index 8274798..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/control +++ /dev/null @@ -1,49 +0,0 @@ -Source: librdkafka -Priority: optional -Maintainer: Faidon Liambotis <[email protected]> -Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, libsasl2-dev, python -Standards-Version: 3.9.6 -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 -Multi-Arch: same -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 -Multi-Arch: same -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 -Multi-Arch: same -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. http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/copyright ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/copyright b/thirdparty/librdkafka-0.11.1/packaging/debian/copyright deleted file mode 100644 index 20885d9..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/copyright +++ /dev/null @@ -1,84 +0,0 @@ -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-2015, Magnus Edenhill -License: BSD-2-clause - -Files: src/rdcrc32.c src/rdcrc32.h -Copyright: 2006-2012, Thomas Pircher <[email protected]> -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: src/snappy.c src/snappy.h src/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 <[email protected]> -License: BSD-2-clause http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/docs ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/docs b/thirdparty/librdkafka-0.11.1/packaging/debian/docs deleted file mode 100644 index 891afcd..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/docs +++ /dev/null @@ -1,3 +0,0 @@ -README.md -INTRODUCTION.md -CONFIGURATION.md http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/gbp.conf ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/gbp.conf b/thirdparty/librdkafka-0.11.1/packaging/debian/gbp.conf deleted file mode 100644 index b2a0f02..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/gbp.conf +++ /dev/null @@ -1,9 +0,0 @@ -[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 http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.dirs ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.dirs b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.dirs deleted file mode 100644 index 4418816..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.dirs +++ /dev/null @@ -1,2 +0,0 @@ -usr/lib -usr/include http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.examples ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.examples b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.examples deleted file mode 100644 index b45032e..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.examples +++ /dev/null @@ -1,2 +0,0 @@ -examples/rdkafka_example.c -examples/rdkafka_performance.c http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.install ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.install b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.install deleted file mode 100644 index 478f660..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.install +++ /dev/null @@ -1,6 +0,0 @@ -usr/include/*/rdkafka.h -usr/include/*/rdkafkacpp.h -usr/lib/*/librdkafka.a -usr/lib/*/librdkafka.so -usr/lib/*/librdkafka++.a -usr/lib/*/librdkafka++.so http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.substvars ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.substvars b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.substvars deleted file mode 100644 index abd3ebe..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka-dev.substvars +++ /dev/null @@ -1 +0,0 @@ -misc:Depends= http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka.dsc ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka.dsc b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka.dsc deleted file mode 100644 index 65826d4..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka.dsc +++ /dev/null @@ -1,16 +0,0 @@ -Format: 3.0 (quilt) -Source: librdkafka -Binary: librdkafka1, librdkafka-dev, librdkafka1-dbg -Architecture: any -Version: 0.9.1-1pre1 -Maintainer: Magnus Edenhill <[email protected]> -Homepage: https://github.com/edenhill/librdkafka -Standards-Version: 3.9.6 -Vcs-Browser: https://github.com/edenhill/librdkafka/tree/master -Vcs-Git: git://github.com/edenhill/librdkafka.git -b master -Build-Depends: debhelper (>= 9), zlib1g-dev, libssl-dev, libsasl2-dev, python -Package-List: - librdkafka-dev deb libdevel optional arch=any - librdkafka1 deb libs optional arch=any - librdkafka1-dbg deb debug extra arch=any -Original-Maintainer: Faidon Liambotis <[email protected]> http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1-dbg.substvars ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1-dbg.substvars b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1-dbg.substvars deleted file mode 100644 index abd3ebe..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1-dbg.substvars +++ /dev/null @@ -1 +0,0 @@ -misc:Depends= http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.dirs ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.dirs b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.dirs deleted file mode 100644 index 6845771..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.dirs +++ /dev/null @@ -1 +0,0 @@ -usr/lib http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.install ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.install b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.install deleted file mode 100644 index 7e86e5f..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.install +++ /dev/null @@ -1,2 +0,0 @@ -usr/lib/*/librdkafka.so.* -usr/lib/*/librdkafka++.so.* http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postinst.debhelper ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postinst.debhelper b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postinst.debhelper deleted file mode 100644 index 3d89d3e..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postinst.debhelper +++ /dev/null @@ -1,5 +0,0 @@ -# Automatically added by dh_makeshlibs -if [ "$1" = "configure" ]; then - ldconfig -fi -# End automatically added section http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postrm.debhelper ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postrm.debhelper b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postrm.debhelper deleted file mode 100644 index 7f44047..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.postrm.debhelper +++ /dev/null @@ -1,5 +0,0 @@ -# Automatically added by dh_makeshlibs -if [ "$1" = "remove" ]; then - ldconfig -fi -# End automatically added section http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.symbols ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.symbols b/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.symbols deleted file mode 100644 index 0ef576e..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/librdkafka1.symbols +++ /dev/null @@ -1,64 +0,0 @@ -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_dr_msg_cb@Base 0.8.4 - rd_kafka_conf_set_error_cb@Base 0.8.0 - rd_kafka_conf_set_log_cb@Base 0.8.4 - rd_kafka_conf_set_opaque@Base 0.8.0 - rd_kafka_conf_set_open_cb@Base 0.8.4 - rd_kafka_conf_set_socket_cb@Base 0.8.4 - 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_batch_queue@Base 0.8.4 - rd_kafka_consume_callback@Base 0.8.0 - rd_kafka_consume_callback_queue@Base 0.8.4 - rd_kafka_consume_queue@Base 0.8.4 - rd_kafka_consume_start@Base 0.8.0 - rd_kafka_consume_start_queue@Base 0.8.4 - 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_metadata@Base 0.8.4 - rd_kafka_metadata_destroy@Base 0.8.4 - 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_opaque@Base 0.8.4 - rd_kafka_outq_len@Base 0.8.0 - rd_kafka_poll@Base 0.8.0 - rd_kafka_produce@Base 0.8.0 - rd_kafka_produce_batch@Base 0.8.4 - rd_kafka_queue_destroy@Base 0.8.4 - rd_kafka_queue_new@Base 0.8.4 - 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 http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/rules ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/rules b/thirdparty/librdkafka-0.11.1/packaging/debian/rules deleted file mode 100755 index d8bfaa5..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/rules +++ /dev/null @@ -1,17 +0,0 @@ -#!/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 - -override_dh_auto_install: - dh_auto_install - install -D -m 0644 rdkafka.pc \ - debian/librdkafka-dev/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/rdkafka.pc - -.PHONY: override_dh_strip override_dh_auth_install http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/source/format ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/source/format b/thirdparty/librdkafka-0.11.1/packaging/debian/source/format deleted file mode 100644 index 163aaf8..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (quilt) http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/debian/watch ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/debian/watch b/thirdparty/librdkafka-0.11.1/packaging/debian/watch deleted file mode 100644 index fc9aec8..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/debian/watch +++ /dev/null @@ -1,2 +0,0 @@ -version=3 -http://github.com/edenhill/librdkafka/tags .*/(\d[\d\.]*)\.tar\.gz http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/get_version.py ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/get_version.py b/thirdparty/librdkafka-0.11.1/packaging/get_version.py deleted file mode 100755 index 3d98d21..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/get_version.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python - -import sys - -if len(sys.argv) != 2: - raise Exception('Usage: %s path/to/rdkafka.h' % sys.argv[0]) - -kafka_h_file = sys.argv[1] -f = open(kafka_h_file) -for line in f: - if '#define RD_KAFKA_VERSION' in line: - version = line.split()[-1] - break -f.close() - -major = int(version[2:4], 16) -minor = int(version[4:6], 16) -patch = int(version[6:8], 16) -version = '.'.join(str(item) for item in (major, minor, patch)) - -print version http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/homebrew/README.md ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/homebrew/README.md b/thirdparty/librdkafka-0.11.1/packaging/homebrew/README.md deleted file mode 100644 index a23a085..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/homebrew/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Update the Homebrew librdkafka package version - -The `./brew-update-pr.sh` script in this directory updates the -brew formula for librdkafka and pushes a PR to the homebrew-core repository. - -You should run it in two steps, first an implicit dry-run mode -to check that things seem correct, and if that checks out a -live upload mode which actually pushes the PR. - - # Do a dry-run first, v0.11.0 is the librdkafka tag: - $ ./brew-update-pr.sh v0.11.0 - - # If everything looks okay, run the live upload mode: - $ ./brew-update-pr.sh --upload v0.11.0 - http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/homebrew/brew-update-pr.sh ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/homebrew/brew-update-pr.sh b/thirdparty/librdkafka-0.11.1/packaging/homebrew/brew-update-pr.sh deleted file mode 100755 index f756159..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/homebrew/brew-update-pr.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -# -# Automatically pushes a PR to homebrew-core to update -# the librdkafka version. -# -# Usage: -# # Dry-run: -# ./brew-update-pr.sh v0.11.0 -# # if everything looks good: -# ./brew-update-pr.sh --upload v0.11.0 -# - - -DRY_RUN="--dry-run" -if [[ $1 == "--upload" ]]; then - DRY_RUN= - shift -fi - -TAG=$1 - -if [[ -z $TAG ]]; then - echo "Usage: $0 [--upload] <librdkafka-tag>" - exit 1 -fi - -set -eu - -brew bump-formula-pr $DRY_RUN --strict \ - --url=https://github.com/edenhill/librdkafka/archive/${TAG}.tar.gz \ - librdkafka http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/nuget/.gitignore ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/nuget/.gitignore b/thirdparty/librdkafka-0.11.1/packaging/nuget/.gitignore deleted file mode 100644 index 712f08d..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/nuget/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -dl-* -out-* -*.nupkg -*.pyc -__pycache__ http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/nuget/README.md ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/nuget/README.md b/thirdparty/librdkafka-0.11.1/packaging/nuget/README.md deleted file mode 100644 index 720a767..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/nuget/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# NuGet package assembly - -This set of scripts collect CI artifacts from S3 and assembles -them into a NuGet package structure staging directory. -The NuGet tool is then run (from within docker) on this staging directory -to create a proper NuGet package (with all the metadata). - -The finalized nuget package maybe uploaded manually to NuGet.org - -## Requirements - - * Requires Python 2.x (due to Python 3 compat issues with rpmfile) - * Requires Docker - * Requires private S3 access keys for the librdkafka-ci-packages bucket. - - - -## Usage - -1. Trigger CI builds by creating and pushing a new release (candidate) tag - in the librdkafka repo. Make sure the tag is created on the correct branch. - - $ git tag v0.11.0 - $ git push origin v0.11.0 - -2. Wait for CI builds to finish, monitor the builds here: - - * https://travis-ci.org/edenhill/librdkafka - * https://ci.appveyor.com/project/edenhill/librdkafka - -3. On a Linux host, run the release.py script to assemble the NuGet package - - $ cd packaging/nuget - # Specify the tag - $ ./release.py v0.11.0 - # Optionally, if the tag was moved and an exact sha is also required: - # $ ./release.py --sha <the-full-git-sha> v0.11.0 - -4. If all artifacts were available the NuGet package will be built - and reside in the current directory as librdkafka.redist.<v-less-tag>.nupkg - -5. Test the package manually - -6. Upload the package to NuGet - - * https://www.nuget.org/packages/manage/upload - - - - http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/nuget/artifact.py ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/nuget/artifact.py b/thirdparty/librdkafka-0.11.1/packaging/nuget/artifact.py deleted file mode 100755 index 61b1d80..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/nuget/artifact.py +++ /dev/null @@ -1,173 +0,0 @@ -#!/usr/bin/env python -# -# -# Collects CI artifacts from S3 storage, downloading them -# to a local directory. -# -# The artifacts' folder in the S3 bucket must have the following token -# format: -# <token>-[<value>]__ (repeat) -# -# Recognized tokens (unrecognized tokens are ignored): -# p - project (e.g., "confluent-kafka-python") -# bld - builder (e.g., "travis") -# plat - platform ("osx", "linux", ..) -# arch - arch ("x64", ..) -# tag - git tag -# sha - git sha -# bid - builder's build-id -# bldtype - Release, Debug (appveyor) -# -# Example: -# p-confluent-kafka-python__bld-travis__plat-linux__tag-__sha-112130ce297656ea1c39e7c94c99286f95133a24__bid-271588764__/confluent_kafka-0.11.0-cp35-cp35m-manylinux1_x86_64.whl - - -import re -import os -import argparse -import boto3 - -s3_bucket = 'librdkafka-ci-packages' -dry_run = False - -class Artifact (object): - def __init__(self, arts, path, info=None): - self.path = path - # Remove unexpanded AppVeyor $(..) tokens from filename - self.fname = re.sub(r'\$\([^\)]+\)', '', os.path.basename(path)) - slpath = os.path.join(os.path.dirname(path), self.fname) - if os.path.isfile(slpath): - # Already points to local file in correct location - self.lpath = slpath - else: - # Prepare download location in dlpath - self.lpath = os.path.join(arts.dlpath, slpath) - - if info is None: - self.info = dict() - else: - # Assign the map and convert all keys to lower case - self.info = {k.lower(): v for k, v in info.items()} - # Rename values, e.g., 'plat':'linux' to 'plat':'debian' - for k,v in self.info.items(): - rdict = packaging.rename_vals.get(k, None) - if rdict is not None: - self.info[k] = rdict.get(v, v) - - # Score value for sorting - self.score = 0 - - # AppVeyor symbol builds are of less value - if self.fname.find('.symbols.') != -1: - self.score -= 10 - - self.arts = arts - arts.artifacts.append(self) - - - def __repr__(self): - return self.path - - def __lt__ (self, other): - return self.score < other.score - - def download(self): - """ Download artifact from S3 and store in local directory .lpath. - If the artifact is already downloaded nothing is done. """ - if os.path.isfile(self.lpath) and os.path.getsize(self.lpath) > 0: - return - print('Downloading %s -> %s' % (self.path, self.lpath)) - if dry_run: - return - ldir = os.path.dirname(self.lpath) - if not os.path.isdir(ldir): - os.makedirs(ldir, 0o755) - self.arts.s3_bucket.download_file(self.path, self.lpath) - - -class Artifacts (object): - def __init__(self, match, dlpath): - super(Artifacts, self).__init__() - self.match = match - self.artifacts = list() - # Download directory (make sure it ends with a path separator) - if not dlpath.endswith(os.path.sep): - dlpath = os.path.join(dlpath, '') - self.dlpath = dlpath - if not os.path.isdir(self.dlpath): - if not dry_run: - os.makedirs(self.dlpath, 0o755) - - def collect_single(self, path, req_tag=True): - """ Collect single artifact, be it in S3 or locally. - :param: path string: S3 or local (relative) path - :param: req_tag bool: Require tag to match. - """ - - print('? %s' % path) - - # For local files, strip download path. - # Also ignore any parent directories. - if path.startswith(self.dlpath): - folder = os.path.basename(os.path.dirname(path[len(self.dlpath):])) - else: - folder = os.path.basename(os.path.dirname(path)) - - # The folder contains the tokens needed to perform - # matching of project, gitref, etc. - rinfo = re.findall(r'(?P<tag>[^-]+)-(?P<val>.*?)__', folder) - if rinfo is None or len(rinfo) == 0: - print('Incorrect folder/file name format for %s' % folder) - return None - - info = dict(rinfo) - - # Ignore AppVeyor Debug builds - if info.get('bldtype', '').lower() == 'debug': - print('Ignoring debug artifact %s' % folder) - return None - - tag = info.get('tag', None) - if tag is not None and (len(tag) == 0 or tag.startswith('$(')): - # AppVeyor doesn't substite $(APPVEYOR_REPO_TAG_NAME) - # with an empty value when not set, it leaves that token - # in the string - so translate that to no tag. - del info['tag'] - - # Match tag or sha to gitref - unmatched = list() - for m,v in self.match.items(): - if m not in info or info[m] != v: - unmatched.append(m) - - # Make sure all matches were satisfied, unless this is a - # common artifact. - if info.get('p', '') != 'common' and len(unmatched) > 0: - print(info) - print('%s: %s did not match %s' % (info.get('p', None), folder, unmatched)) - return None - - return Artifact(self, path, info) - - - def collect_s3(self): - """ Collect and download build-artifacts from S3 based on git reference """ - print('Collecting artifacts matching %s from S3 bucket %s' % (self.match, s3_bucket)) - self.s3 = boto3.resource('s3') - self.s3_bucket = self.s3.Bucket(s3_bucket) - self.s3_client = boto3.client('s3') - for item in self.s3_client.list_objects(Bucket=s3_bucket, Prefix='librdkafka/').get('Contents'): - self.collect_single(item.get('Key')) - - for a in self.artifacts: - a.download() - - def collect_local(self, path, req_tag=True): - """ Collect artifacts from a local directory possibly previously - collected from s3 """ - for f in [os.path.join(dp, f) for dp, dn, filenames in os.walk(path) for f in filenames]: - if not os.path.isfile(f): - continue - self.collect_single(f, req_tag) - - http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/nuget/nuget.sh ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/nuget/nuget.sh b/thirdparty/librdkafka-0.11.1/packaging/nuget/nuget.sh deleted file mode 100755 index 0323712..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/nuget/nuget.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# -# -# Front-end for nuget that runs nuget in a docker image. - -set -ex - -if [[ -f /.dockerenv ]]; then - echo "Inside docker" - - pushd $(dirname $0) - - nuget $* - - popd - -else - echo "Running docker image" - docker run -v $(pwd):/io mono:latest /io/$0 $* -fi - http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/nuget/packaging.py ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/nuget/packaging.py b/thirdparty/librdkafka-0.11.1/packaging/nuget/packaging.py deleted file mode 100755 index 71d5b29..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/nuget/packaging.py +++ /dev/null @@ -1,596 +0,0 @@ -#!/usr/bin/env python -# -# NuGet packaging script. -# Assembles a NuGet package using CI artifacts in S3 -# and calls nuget (in docker) to finalize the package. -# - -import sys -import re -import os -import tempfile -import shutil -import subprocess -import urllib -from string import Template -from collections import defaultdict -import boto3 -from zfile import zfile - -# File categories -categories = ['dynamic', # dynamic libraries - 'static', # static libraries - 'pc', # pkg-config - 'include'] # include files / headers - -win_ver = 'win7' -# Maps platform and category to expected files, or vice versa. -wanted_files = { - win_ver: { - 'dynamic': ['librdkafka.dll', 'librdkafkacpp.dll', - 'librdkafka.lib', 'librdkafkacpp.lib', - 'msvcr120.dll', 'zlib.dll'], - 'static': ['librdkafka.lib', 'librdkafkacpp.lib'], - 'include': ['rdkafka.h', 'rdkafkacpp.h'], - }, - - 'osx': { - 'dynamic': ['librdkafka.dylib', 'librdkafka++.dylib'], - 'static': ['librdkafka.a', 'librdkafka++.a'], - 'include': ['rdkafka.h', 'rdkafkacpp.h'], - 'pc': ['rdkafka.pc', 'rdkafka++.pc'], - }, - - 'debian': { - 'dynamic': ['librdkafka.so.1', 'librdkafka++.so.1'], - 'static': ['librdkafka.a', 'librdkafka++.a'], - 'include': ['rdkafka.h', 'rdkafkacpp.h'], - 'pc': ['rdkafka.pc', 'rdkafka++.pc'], - }, - - 'rhel': { - 'dynamic': ['librdkafka.so.1', 'librdkafka++.so.1'], - 'static': ['librdkafka.a', 'librdkafka++.a'], - 'include': ['rdkafka.h', 'rdkafkacpp.h'], - 'pc': ['rdkafka.pc', 'rdkafka++.pc'], - } -} - -# Supported platforms -platforms = wanted_files.keys() - - - -# Default documents to include in all packages -default_doc = ['../../README.md', - '../../CONFIGURATION.md', - '../../LICENSES.txt'] - -# Rename matching files -rename_files = {'librdkafka.so.1': 'librdkafka.so', - 'librdkafka++.so.1': 'librdkafka++.so'} - - -# Rename token values -rename_vals = {'plat': {'linux': 'debian', - 'windows': win_ver}, - 'arch': {'x86_64': 'x64', - 'i386': 'x86', - 'win32': 'x86'}} - - - -# Collects CI artifacts from S3 storage, downloading them -# to a local directory, or collecting already downloaded artifacts from -# local directory. -# -# The artifacts' folder in the S3 bucket must have the following token -# format: -# <token>-[<value>]__ (repeat) -# -# Recognized tokens (unrecognized tokens are ignored): -# p - project (e.g., "confluent-kafka-python") -# bld - builder (e.g., "travis") -# plat - platform ("osx", "linux", ..) -# arch - arch ("x64", ..) -# tag - git tag -# sha - git sha -# bid - builder's build-id -# bldtype - Release, Debug (appveyor) -# -# Example: -# librdkafka/p-librdkafka__bld-travis__plat-linux__arch-x64__tag-v0.0.62__sha-d051b2c19eb0c118991cd8bc5cf86d8e5e446cde__bid-1562.1/librdkafka.tar.gz - - -s3_bucket = 'librdkafka-ci-packages' -dry_run = False - -class Artifact (object): - def __init__(self, arts, path, info=None): - self.path = path - # Remove unexpanded AppVeyor $(..) tokens from filename - self.fname = re.sub(r'\$\([^\)]+\)', '', os.path.basename(path)) - slpath = os.path.join(os.path.dirname(path), self.fname) - if os.path.isfile(slpath): - # Already points to local file in correct location - self.lpath = slpath - else: - # Prepare download location in dlpath - self.lpath = os.path.join(arts.dlpath, slpath) - - if info is None: - self.info = dict() - else: - # Assign the map and convert all keys to lower case - self.info = {k.lower(): v for k, v in info.items()} - # Rename values, e.g., 'plat':'linux' to 'plat':'debian' - for k,v in self.info.items(): - rdict = rename_vals.get(k, None) - if rdict is not None: - self.info[k] = rdict.get(v, v) - - # Score value for sorting - self.score = 0 - - # AppVeyor symbol builds are of less value - if self.fname.find('.symbols.') != -1: - self.score -= 10 - - self.arts = arts - arts.artifacts.append(self) - - - def __repr__(self): - return self.path - - def __lt__ (self, other): - return self.score < other.score - - def download(self): - """ Download artifact from S3 and store in local directory .lpath. - If the artifact is already downloaded nothing is done. """ - if os.path.isfile(self.lpath) and os.path.getsize(self.lpath) > 0: - return - print('Downloading %s' % self.path) - if dry_run: - return - ldir = os.path.dirname(self.lpath) - if not os.path.isdir(ldir): - os.makedirs(ldir, 0o755) - self.arts.s3_bucket.download_file(self.path, self.lpath) - - -class Artifacts (object): - def __init__(self, match, dlpath): - super(Artifacts, self).__init__() - self.match = match - self.artifacts = list() - # Download directory (make sure it ends with a path separator) - if not dlpath.endswith(os.path.sep): - dlpath = os.path.join(dlpath, '') - self.dlpath = dlpath - if not os.path.isdir(self.dlpath): - if not dry_run: - os.makedirs(self.dlpath, 0o755) - - def collect_single(self, path, req_tag=True): - """ Collect single artifact, be it in S3 or locally. - :param: path string: S3 or local (relative) path - :param: req_tag bool: Require tag to match. - """ - - #print('? %s' % path) - - # For local files, strip download path. - # Also ignore any parent directories. - if path.startswith(self.dlpath): - folder = os.path.basename(os.path.dirname(path[len(self.dlpath):])) - else: - folder = os.path.basename(os.path.dirname(path)) - - # The folder contains the tokens needed to perform - # matching of project, gitref, etc. - rinfo = re.findall(r'(?P<tag>[^-]+)-(?P<val>.*?)__', folder) - if rinfo is None or len(rinfo) == 0: - print('Incorrect folder/file name format for %s' % folder) - return None - - info = dict(rinfo) - - # Ignore AppVeyor Debug builds - if info.get('bldtype', '').lower() == 'debug': - print('Ignoring debug artifact %s' % folder) - return None - - tag = info.get('tag', None) - if tag is not None and (len(tag) == 0 or tag.startswith('$(')): - # AppVeyor doesn't substite $(APPVEYOR_REPO_TAG_NAME) - # with an empty value when not set, it leaves that token - # in the string - so translate that to no tag. - del info['tag'] - - # Perform matching - unmatched = list() - for m,v in self.match.items(): - if m not in info or info[m] != v: - unmatched.append(m) - - # Make sure all matches were satisfied, unless this is a - # common artifact. - if info.get('p', '') != 'common' and len(unmatched) > 0: - # print('%s: %s did not match %s' % (info.get('p', None), folder, unmatched)) - return None - - return Artifact(self, path, info) - - - def collect_s3(self): - """ Collect and download build-artifacts from S3 based on git reference """ - print('Collecting artifacts matching %s from S3 bucket %s' % (self.match, s3_bucket)) - self.s3 = boto3.resource('s3') - self.s3_bucket = self.s3.Bucket(s3_bucket) - self.s3_client = boto3.client('s3') - for item in self.s3_client.list_objects(Bucket=s3_bucket, Prefix='librdkafka/').get('Contents'): - self.collect_single(item.get('Key')) - - for a in self.artifacts: - a.download() - - def collect_local(self, path, req_tag=True): - """ Collect artifacts from a local directory possibly previously - collected from s3 """ - for f in [os.path.join(dp, f) for dp, dn, filenames in os.walk(path) for f in filenames]: - if not os.path.isfile(f): - continue - self.collect_single(f, req_tag) - - - - -class Package (object): - """ Generic Package class - A Package is a working container for one or more output - packages for a specific package type (e.g., nuget) """ - - def __init__ (self, version, arts, ptype): - super(Package, self).__init__() - self.version = version - self.arts = arts - self.ptype = ptype - # These may be overwritten by specific sub-classes: - self.artifacts = arts.artifacts - self.platforms = platforms - # Staging path, filled in later. - self.stpath = None - self.kv = {'version': version} - self.files = dict() - - def add_file (self, file): - self.files[file] = True - - def categorize (self): - """ Categorize and arrange a Package's artifacts according to - its platforms. - Returns a fout map: - category: [(artifact,file)] - """ - - fout = defaultdict(list) - - # Flat lists of files to collect keyed by platform,category - collect_files = dict() - for platform in wanted_files: - for category, flist in wanted_files[platform].items(): - for f in flist: - collect_files[(platform,category,f)] = list() - - for a in self.artifacts: - try: - with zfile.ZFile(a.lpath, 'r') as zf: - if os.path.splitext(a.lpath)[-1] == '.rpm': - a.info['plat'] = 'rhel' - - platform = a.info['plat'] - if platform not in platforms: - continue - - zfiles = zf.getnames() - if len(zfiles) == 0: - print('No files in %s?' % a) - for category, flist in wanted_files[platform].items(): - for f in flist: - matches = [(a,x) for x in zfiles if os.path.basename(x) == f] - if len(matches) > 0: - collect_files[(platform,category,f)] += matches - fout[category] += matches - - except zfile.tarfile.ReadError as e: - print('ignoring artifact: %s: %s' % (a.lpath, str(e))) - - # Verify that all wanted combinations were matched - errors = 0 - for missing in [x for x in collect_files if len(collect_files[x]) == 0]: - errors += 1 - print('ERROR: No matching artifact files for', missing) - - if errors > 0: - raise Exception('Not all wanted files found in artifacts, see above.') - return fout - - - def layout (self, lydef): - """ - Layout categorized files according to provided - layout definition \p lydef. - - Returns a layout dict containing the matched artifacts. - """ - - # Categorize files - fout = self.categorize() - - ly = defaultdict(list) - - # For each template path, attempt to map all files in that category - # and add any files that renders completely to the layout. - for tmplsrc, category in lydef.items(): - tmpl = Template(tmplsrc) - for a, f in fout[category]: - # print('%s: Try %s matched to %s in %s' % (category, tmplsrc, f, a)) - try: - path = os.path.join(tmpl.substitute(a.info), - os.path.basename(f)) - ly[path].append((a, f)) - except KeyError as e: - print(' -- %s info key %s not found' % (a, e)) - pass - - # Sort providing sources for each path. - # E.g., prefer .redist. before .symbols., etc. - for path in ly: - ly[path].sort(reverse=True) - - return ly - - def build (self): - """ Build package output(s), return a list of paths to built packages """ - raise NotImplementedError - - def cleanup (self): - """ Optional cleanup routine for removing temporary files, etc. """ - pass - - def verify (self, path): - """ Optional post-build package verifier """ - pass - - def render (self, fname, destpath='.'): - """ Render template in file fname and save to destpath/fname, - where destpath is relative to stpath """ - - outf = os.path.join(self.stpath, destpath, fname) - - if not os.path.isdir(os.path.dirname(outf)): - os.makedirs(os.path.dirname(outf), 0o0755) - - with open(os.path.join('templates', fname), 'r') as tf: - tmpl = Template(tf.read()) - with open(outf, 'w') as of: - of.write(tmpl.substitute(self.kv)) - - self.add_file(outf) - - - def copy_template (self, fname, target_fname=None, destpath='.'): - """ Copy template file to destpath/fname - where destpath is relative to stpath """ - - if target_fname is None: - target_fname = fname - outf = os.path.join(self.stpath, destpath, target_fname) - - if not os.path.isdir(os.path.dirname(outf)): - os.makedirs(os.path.dirname(outf), 0o0755) - - shutil.copy(os.path.join('templates', fname), outf) - - self.add_file(outf) - - def extract_artifacts (self, layout): - """ Extract members from artifacts into staging path """ - print('Extracting artifacts according to layout:') - for path, afs in layout.items(): - artifact = afs[0][0] - member = afs[0][1] - print(' %s (from %s) -> %s' % (member, artifact, path)) - outf = os.path.join(self.stpath, path) - zfile.ZFile.extract(artifact.lpath, member, outf) - - self.add_file(outf) - - # Rename files, if needed. - for root, _, filenames in os.walk(self.stpath): - for filename in filenames: - fname = os.path.basename(filename) - if fname in rename_files: - bpath = os.path.join(root, os.path.dirname(filename)) - oldfile = os.path.join(bpath, fname) - newfile = os.path.join(bpath, rename_files[fname]) - print('Renaming %s -> %s' % (oldfile, newfile)) - os.rename(oldfile, newfile) - - # And rename them in the files map too - rename_these = [x for x in self.files.keys() if os.path.basename(x) in rename_files] - for oldfile in rename_these: - newfile = os.path.join(os.path.dirname(oldfile), - rename_files[os.path.basename(oldfile)]) - self.files[newfile] = self.files[oldfile] - del self.files[oldfile] - - - -class NugetPackage (Package): - """ All platforms, archs, et.al, are bundled into one set of - NuGet output packages: "main", redist and symbols """ - def __init__ (self, version, arts): - if version.startswith('v'): - version = version[1:] # Strip v prefix - super(NugetPackage, self).__init__(version, arts, "nuget") - - def cleanup(self): - if os.path.isdir(self.stpath): - shutil.rmtree(self.stpath) - - def build (self, buildtype): - """ Build single NuGet package for all its artifacts. """ - layout = self.xlayout() - - # NuGet removes the prefixing v from the version. - vless_version = self.kv['version'] - if vless_version[0] == 'v': - vless_version = vless_version[1:] - - - self.stpath = tempfile.mkdtemp(prefix="out-", suffix="-%s" % buildtype, - dir=".") - - self.render('librdkafka.redist.nuspec') - self.copy_template('librdkafka.redist.targets', - destpath=os.path.join('build', 'native')) - self.copy_template('librdkafka.redist.props', - destpath=os.path.join('build', 'native')) - self.copy_template('librdkafka.redist.props', - destpath=os.path.join('build', 'net')) - for f in default_doc: - shutil.copy(f, self.stpath) - - self.extract_artifacts(layout) - - print('Tree extracted to %s' % self.stpath) - - # After creating a bare-bone nupkg layout containing the artifacts - # and some spec and props files, call the 'nuget' utility to - # make a proper nupkg of it (with all the metadata files). - subprocess.check_call("./nuget.sh pack %s -BasePath '%s' -NonInteractive" % \ - (os.path.join(self.stpath, 'librdkafka.redist.nuspec'), - self.stpath), shell=True) - return ['librdkafka.redist.%s.nupkg' % vless_version] - - def xlayout (self): - """ Copy files from artifact nupkgs to new super-layout - - Buildtype: release, debug - - High-level requirements: - * provide build artifacts: -> build/ - - static libraries - - header files - - layout: - build/native/librdkafka.targets - build/native/lib/<plat>/<arch>/<variant>/<toolset>/{static} - build/native/include/librdkafka/*.h - - * provide runtime artifacts: -> runtimes/ - - dynamic libraries - - possibly symbol files - - layout: - runtimes/<plat>-<arch>/native/{dynamic} - * both cases: - - docs -> ./ - - runtimes from https://github.com/dotnet/corefx/blob/master/pkg/Microsoft.NETCore.Platforms/runtime.json - * win7-x86 - * win7-x64 - * osx - * osx-x64 - * debian-x64 - * rhel-x64 (rhel.7) - - This gives the following layout: - build/native/include/librdkafka/rdkafka.h.. - build/native/net/librdkafka.redist.props - - """ - - # Generate template tokens for artifacts - for a in self.arts.artifacts: - if 'bldtype' not in a.info: - a.info['bldtype'] = 'release' - - a.info['variant'] = '%s-%s-%s' % (a.info.get('plat'), - a.info.get('arch'), - a.info.get('bldtype')) - if 'toolset' not in a.info: - a.info['toolset'] = 'v120' - - nuget_layout = { - # Build - 'build/native/lib/${plat}/${arch}/${variant}/${toolset}/': 'static', - 'build/native/include/librdkafka/': 'include', - - # Runtime - 'runtimes/${plat}-${arch}/native/': 'dynamic', - - # All - 'content/docs/': 'doc' - } - - layout = self.layout(nuget_layout) - - errors = 0 - print(' %s layout:' % self) - for path, afs in layout.items(): - print(' %s provided by:' % path) - for a, f in afs: - print(' %s from artifact %s (and %d more)' % (f, a.fname, len(afs)-1)) - break - if len(afs) == 0: - print(' ERROR: no artifacts found') - errors += 1 - print('') - - if errors > 0: - raise Exception('Layout not satisfied by collected artifacts: %d missing' % errors) - - return layout - - - - - def verify (self, path): - """ Verify package """ - expect = ["librdkafka.redist.nuspec", - "LICENSES.txt", - "build/native/librdkafka.redist.props", - "build/native/librdkafka.redist.targets", - "build/native/include/librdkafka/rdkafka.h", - "build/native/include/librdkafka/rdkafkacpp.h", - "build/net/librdkafka.redist.props", - "runtimes/win7-x86/native/librdkafka.dll", - "runtimes/win7-x86/native/librdkafka.lib", - "runtimes/win7-x86/native/zlib.dll", - "runtimes/win7-x86/native/msvcr120.dll", - "runtimes/win7-x64/native/librdkafka.dll", - "runtimes/win7-x64/native/librdkafka.lib", - "runtimes/win7-x64/native/msvcr120.dll", - "runtimes/osx-x64/native/librdkafka++.dylib", - "runtimes/osx-x64/native/librdkafka.dylib", - "runtimes/debian-x64/native/librdkafka++.so", - "runtimes/debian-x64/native/librdkafka.so", - "runtimes/rhel-x64/native/librdkafka++.so", - "runtimes/rhel-x64/native/librdkafka.so"] - missing = list() - with zfile.ZFile(path, 'r') as zf: - print('Verifying %s:' % path) - - # Zipfiles may url-encode filenames, unquote them before matching. - pkgd = [urllib.unquote(x) for x in zf.getnames()] - missing = [x for x in expect if x not in pkgd] - - if len(missing) > 0: - print('Missing files in package %s:\n%s' % (path, '\n'.join(missing))) - return False - else: - print('OK - %d expected files found' % expect) - return True - http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/nuget/release.py ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/nuget/release.py b/thirdparty/librdkafka-0.11.1/packaging/nuget/release.py deleted file mode 100755 index 9deaed8..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/nuget/release.py +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env python -# -# -# NuGet release packaging tool. -# Creates a NuGet package from CI artifacts on S3. -# - - -import sys -import argparse -import packaging - - -dry_run = False - - - -if __name__ == '__main__': - - parser = argparse.ArgumentParser() - parser.add_argument("--no-s3", help="Don't collect from S3", action="store_true") - parser.add_argument("--dry-run", - help="Locate artifacts but don't actually download or do anything", - action="store_true") - parser.add_argument("--directory", help="Download directory (default: dl-<tag>)", default=None) - parser.add_argument("--no-cleanup", help="Don't clean up temporary folders", action="store_true") - parser.add_argument("--sha", help="Also match on this git sha1", default=None) - parser.add_argument("tag", help="Git tag to collect") - - args = parser.parse_args() - dry_run = args.dry_run - if not args.directory: - args.directory = 'dl-%s' % args.tag - - match = {'tag': args.tag} - if args.sha is not None: - match['sha'] = args.sha - - arts = packaging.Artifacts(match, args.directory) - - # Collect common local artifacts, such as support files. - arts.collect_local('common', req_tag=False) - - if not args.no_s3: - arts.collect_s3() - else: - arts.collect_local(arts.dlpath) - - if len(arts.artifacts) == 0: - raise ValueError('No artifacts found for %s' % match) - - print('Collected artifacts:') - for a in arts.artifacts: - print(' %s' % a.lpath) - print('') - - package_for = [packaging.NugetPackage] - packages = list() - - print('Packaging classes: %s' % package_for) - - for pcl in package_for: - p = pcl(match['tag'], arts) - packages.append(p) - print('') - - if dry_run: - sys.exit(0) - - # Build packages - print('Building packages:') - pkgfiles = [] - for p in packages: - paths = p.build(buildtype='release') - for path in paths: - # Verify package files - if p.verify(path): - pkgfiles.append(path) - if not args.no_cleanup: - p.cleanup() - else: - print(' --no-cleanup: leaving %s' % p.stpath) - print('') - - if len(pkgfiles) > 0: - print('Created packages:') - for pkg in pkgfiles: - print(pkg) - else: - print('No packages created') - sys.exit(1) http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/7528d23e/thirdparty/librdkafka-0.11.1/packaging/nuget/requirements.txt ---------------------------------------------------------------------- diff --git a/thirdparty/librdkafka-0.11.1/packaging/nuget/requirements.txt b/thirdparty/librdkafka-0.11.1/packaging/nuget/requirements.txt deleted file mode 100644 index c892afd..0000000 --- a/thirdparty/librdkafka-0.11.1/packaging/nuget/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -boto3 -rpmfile
