Skip to content

Commit

Permalink
Add thrift 0.13.0 as separate target
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 2, 2021
1 parent 5259af2 commit facf833
Show file tree
Hide file tree
Showing 35 changed files with 1,992 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rules/thrift_0_13_0.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

SPATH := $($(LIBTHRIFT_0_13_0)_SRC_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/thrift_0_13_0.mk rules/thrift_0_13_0.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
DEP_FILES += $(shell git ls-files $(SPATH))

$(LIBTHRIFT_0_13_0)_CACHE_MODE := GIT_CONTENT_SHA
$(LIBTHRIFT_0_13_0)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(LIBTHRIFT_0_13_0)_DEP_FILES := $(DEP_FILES)

16 changes: 16 additions & 0 deletions rules/thrift_0_13_0.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# thrift package

THRIFT_VERSION_0_13_0 = 0.13.0

LIBTHRIFT_0_13_0 = libthrift_$(THRIFT_VERSION_0_13_0)_$(CONFIGURED_ARCH).deb
$(LIBTHRIFT_0_13_0)_SRC_PATH = $(SRC_PATH)/thrift_0_13_0
SONIC_MAKE_DEBS += $(LIBTHRIFT_0_13_0)

LIBTHRIFT_DEV_0_13_0 = libthrift-dev_$(THRIFT_VERSION_0_13_0)_$(CONFIGURED_ARCH).deb
$(eval $(call add_derived_package,$(LIBTHRIFT_0_13_0),$(LIBTHRIFT_DEV_0_13_0)))

PYTHON_THRIFT_0_13_0 = python-thrift_$(THRIFT_VERSION_0_13_0)_$(CONFIGURED_ARCH).deb
$(eval $(call add_derived_package,$(LIBTHRIFT_0_13_0),$(PYTHON_THRIFT_0_13_0)))

THRIFT_COMPILER_0_13_0 = thrift-compiler_$(THRIFT_VERSION_0_13_0)_$(CONFIGURED_ARCH).deb
$(eval $(call add_derived_package,$(LIBTHRIFT_0_13_0),$(THRIFT_COMPILER_0_13_0)))
13 changes: 13 additions & 0 deletions src/thrift_0_13_0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
!**/debian/*
# Debian byproduct files
debian/stamp-*/
debian/*.log
debian/*.substvars
debian/.debhelper/
debian/tmp/
debian/autoreconf.*
debian/build/
debian/files
debian/stamp-autotools-files

thrift*
28 changes: 28 additions & 0 deletions src/thrift_0_13_0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
SHELL = /bin/bash
.ONESHELL:
.SHELLFLAGS += -e

THRIFT_VERSION = 0.13.0

MAIN_TARGET = libthrift_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb
DERIVED_TARGETS = libthrift-dev_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb \
python-thrift_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb \
thrift-compiler_$(THRIFT_VERSION)_$(CONFIGURED_ARCH).deb

THRIFT_ARCHIVE_URL = https://github.com/apache/thrift/archive/refs/tags/v$(THRIFT_VERSION).tar.gz

$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
rm -rf thrift-$(THRIFT_VERSION)*

wget "$(THRIFT_ARCHIVE_URL)" -O thrift-$(THRIFT_VERSION).tar.gz
tar -xf thrift-$(THRIFT_VERSION).tar.gz --exclude="debian"
cp -r debian thrift-$(THRIFT_VERSION)/debian

pushd thrift-$(THRIFT_VERSION)

DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -d -rfakeroot -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS) --admindir $(SONIC_DPKG_ADMINDIR)
popd

mv $(DERIVED_TARGETS) $* $(DEST)/

$(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)
41 changes: 41 additions & 0 deletions src/thrift_0_13_0/debian/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## Some tips on Debian Packaging

- Debian New Maintainers' Guide [http://www.debian.org/doc/debian-policy/]
- Debian Policy Manual [http://www.debian.org/doc/manuals/maint-guide/]
- Machine-readable debian/copyright file [http://dep.debian.net/deps/dep5/]
- DebSrc 3.0 guidelines [https://wiki.debian.org/Projects/DebSrc3.0]


## Build using dpkg-buildpackage:

```bash
$ dpkg-buildpackage -d -tc
-d # do not check build dependencies and conflicts.
-tc # clean source tree when finished.
```


## Update changelog:

```bash
$ date -R
```

One can also install `devscripts` package and run:

```bash
$ dch -i
```


## Check packages:

```bash
$ dpkg -c *.deb
$ lintian *.deb
```


## TODO

Make it perfect!
99 changes: 99 additions & 0 deletions src/thrift_0_13_0/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
thrift (0.13.0) stable; urgency=low

* update to 0.13.0

-- Apache Thrift Developers <[email protected]> Wed, 11 Nov 2019 12:00:00 -0500

thrift (0.12.0) stable; urgency=low

* update to 0.12.0

-- Apache Thrift Developers <[email protected]> Wed, 28 Dec 2018 12:00:00 -0500

thrift (0.11.0-4) unstable; urgency=medium

* Backport upstream security fix for CVE-2018-11798: Node.js Filesever
webroot fixed path (closes: #918734).
* Update Standards-Version to 4.3.0 .

-- Laszlo Boszormenyi (GCS) <[email protected]> Tue, 08 Jan 2019 21:31:07 +0000

thrift (0.11.0-3) unstable; urgency=medium

* Build with latest PHP package version.
* Provide PHP package without version number.
* Upload to Sid (closes: #835294).

-- Laszlo Boszormenyi (GCS) <[email protected]> Sat, 27 Oct 2018 20:57:18 +0000

thrift (0.11.0-2) experimental; urgency=medium

* Disable failing Python self-tests to fix mips and s390x FTBFS.

-- Laszlo Boszormenyi (GCS) <[email protected]> Fri, 12 Oct 2018 00:12:09 +0000

thrift (0.11.0-1) experimental; urgency=medium

* New major upstream release.
* Fixes CVE-2016-5397: command injection in format_go_output
(closes: #894577).
* Fix FTBFS problems (closes: #909067).
* Rename related packages to -0.11.0 suffix.
* Build with PHP 7.2 version.
* Remove libmaven-ant-tasks-java build dependency (closes: #877126).
* Update patches.
* Use auto-generated debug packages.
* Change package priority to optional.
* Update Standards-Version to 4.2.1 .

-- Laszlo Boszormenyi (GCS) <[email protected]> Thu, 20 Sep 2018 18:16:39 +0000

thrift (0.10.0-1) experimental; urgency=low

* New upstream release.
* Rename related packages to -0.10.0 suffix.
* Correct Perl install directory (closes: #859128).
* Fix building with Boost 1.62 version.
* Only build Go bindings on supported architectures.
* Add python{,3}-six build dependency for testing support.
* Disable failing TSimpleServer testing for Python.

-- Laszlo Boszormenyi (GCS) <[email protected]> Sat, 13 May 2017 08:15:21 +0000

thrift (0.9.3-2) experimental; urgency=low

* Build Go bindings.
* Update to build with Java Servlet API 3.1 .
* Fix build with GCC 6.2 .
* Fix build with Boost 1.61 .
* Update Standards-Version to 3.9.8 .

-- Laszlo Boszormenyi (GCS) <[email protected]> Sun, 17 Jul 2016 19:31:46 +0000

thrift (0.9.3-1) experimental; urgency=low

* New upstream release.
* Patch SSLv3 support to use SSLv23_method function (closes: #804668).
* Specify Qt version to build and move to version 5 of the library.
* This release contains TestValidators.thrift , remove its patch.
* Add debug package for Pyton bindings.
* Update OpenJDK build dependency to version 8.
* Update Perl build dependency.
* Update Standards-Version to 3.9.7 .
* Keep rebuildable.

-- Laszlo Boszormenyi (GCS) <[email protected]> Sun, 20 Mar 2016 11:10:27 +0000

thrift (0.9.2-2) experimental; urgency=low

* Specify openjdk-7-jdk to build with.
* Disable parallel testing.
* Update Boost build dependency to be version 1.58.0 at least.

-- Laszlo Boszormenyi (GCS) <[email protected]> Mon, 03 Aug 2015 20:09:47 +0200

thrift (0.9.2-1) experimental; urgency=low

* Use monolithic upstream source for Thrift packaging (closes: #792097).

-- Laszlo Boszormenyi (GCS) <[email protected]> Sat, 21 Mar 2015 17:45:29 +0000
1 change: 1 addition & 0 deletions src/thrift_0_13_0/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
Loading

0 comments on commit facf833

Please sign in to comment.