<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildroot/package/snappy, branch 2017.08</title>
<subtitle>OpenPOWER buildroot sources</subtitle>
<id>https://git.raptorcs.com/git/buildroot/atom?h=2017.08</id>
<link rel='self' href='https://git.raptorcs.com/git/buildroot/atom?h=2017.08'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/'/>
<updated>2017-08-09T20:42:58+00:00</updated>
<entry>
<title>package/snappy: remove pthread handling for static builds</title>
<updated>2017-08-09T20:42:58+00:00</updated>
<author>
<name>Bernd Kuhls</name>
<email>bernd.kuhls@t-online.de</email>
</author>
<published>2017-08-04T04:02:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=6e6208ea794262e4e629efb7c1bbb601d1fa2abc'/>
<id>urn:sha1:6e6208ea794262e4e629efb7c1bbb601d1fa2abc</id>
<content type='text'>
Commit 0e2ee0e6e8076 (package.snappy: fix static builds with threads)
added LIBS=-pthread to configure options to fix static build with
threads on some architectures. This works for autotools packages. Then,
commit d26282b3aa14cb (package/snappy: bump version, switch to cmake)
switched to cmake that does not understand the 'LIBS' parameter.

As pointed out by Thomas[1] the special handling of libpthread for
static builds is not needed anymore: it was needed only to build the
tests, and these are no longer built. Note that packages that link
statically with snappy will still need to link with -pthread. Only
two in-tree packages currently depend on snappy: lua-csnappy depends
on !BR2_STATIC_LIBS and leveldb adds -pthread from its build system.

Tested with the following musl &amp; uclibc defconfigs which also fix build
errors:
http://autobuild.buildroot.net/results/39f/39f9fc4300ddca19e8a533765b46838003752000/
http://autobuild.buildroot.net/results/886/8860b9259f7a3aecb2ddbfa787be048072bd347b/

[1] http://lists.busybox.net/pipermail/buildroot/2017-July/199549.html

Signed-off-by: Bernd Kuhls &lt;bernd.kuhls@t-online.de&gt;
Acked-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
[Baruch: improved commit message]
Signed-off-by: Baruch Siach &lt;baruch@tkos.co.il&gt;
[Arnout: improved commit message more, based on Yann's input]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) &lt;arnout@mind.be&gt;
</content>
</entry>
<entry>
<title>package/snappy: bump version, switch to cmake</title>
<updated>2017-07-31T18:46:28+00:00</updated>
<author>
<name>Bernd Kuhls</name>
<email>bernd.kuhls@t-online.de</email>
</author>
<published>2017-07-30T14:47:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=d26282b3aa14cb46d378857200e74204c5ce912c'/>
<id>urn:sha1:d26282b3aa14cb46d378857200e74204c5ce912c</id>
<content type='text'>
Upstream switched to CMake, host-pkgconf is not needed anymore.

Instead of using the latest release 1.1.6 we use current git HEAD
because it contains important patches:

"Support both static and shared library CMake builds."
https://github.com/google/snappy/commit/c756f7f5d90ad7591d4f96bb0da8159634943359

"Redo CMake configuration", this commit allows to disable building
Snappy's own tests.
https://github.com/google/snappy/commit/be6dc3db83c4701e3e79694dcbfd1c3da03b91dd

Signed-off-by: Bernd Kuhls &lt;bernd.kuhls@t-online.de&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/snappy: fix typo</title>
<updated>2017-07-31T18:46:23+00:00</updated>
<author>
<name>Bernd Kuhls</name>
<email>bernd.kuhls@t-online.de</email>
</author>
<published>2017-07-30T14:47:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=662b830dd702f085bc0473a469e893ec9e59149e'/>
<id>urn:sha1:662b830dd702f085bc0473a469e893ec9e59149e</id>
<content type='text'>
Signed-off-by: Bernd Kuhls &lt;bernd.kuhls@t-online.de&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>boot, package: use SPDX short identifier for BSD-3c</title>
<updated>2017-04-01T13:26:57+00:00</updated>
<author>
<name>Rahul Bedarkar</name>
<email>rahulbedarkar89@gmail.com</email>
</author>
<published>2017-03-30T13:43:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=9f59b378a36ae81db2672b417a68c7358b41ccc3'/>
<id>urn:sha1:9f59b378a36ae81db2672b417a68c7358b41ccc3</id>
<content type='text'>
We want to use SPDX identifier for license string as much as possible.
SPDX short identifier for BSD-3c is BSD-3-Clause.

This change is done using following command.
find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/BSD-3c/BSD-3-Clause/g'

Signed-off-by: Rahul Bedarkar &lt;rahulbedarkar89@gmail.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>snappy: update homepage link</title>
<updated>2017-03-03T07:40:21+00:00</updated>
<author>
<name>Baruch Siach</name>
<email>baruch@tkos.co.il</email>
</author>
<published>2017-03-03T05:40:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=355b0336d52a5473a0535af40afa6892d9fcd2f1'/>
<id>urn:sha1:355b0336d52a5473a0535af40afa6892d9fcd2f1</id>
<content type='text'>
Cc: Yann E. MORIN &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: Baruch Siach &lt;baruch@tkos.co.il&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/snappy: bump version</title>
<updated>2016-10-02T19:22:27+00:00</updated>
<author>
<name>Yann E. MORIN</name>
<email>yann.morin.1998@free.fr</email>
</author>
<published>2016-10-01T19:04:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=31024e349262d2dbf4af1ed46c9c991c793d5823'/>
<id>urn:sha1:31024e349262d2dbf4af1ed46c9c991c793d5823</id>
<content type='text'>
Signed-off-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>package.snappy: fix static builds with threads</title>
<updated>2016-10-02T19:21:22+00:00</updated>
<author>
<name>Yann E. MORIN</name>
<email>yann.morin.1998@free.fr</email>
</author>
<published>2016-10-01T19:04:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=0e2ee0e6e8076d233402766086aa4c6297c62cb9'/>
<id>urn:sha1:0e2ee0e6e8076d233402766086aa4c6297c62cb9</id>
<content type='text'>
For some toolchains, libstdc++ uses pthread symbols:

    .../lib/libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::lock()':
    eh_alloc.cc:(.text._ZN9__gnu_cxx7__mutex4lockEv[_ZN9__gnu_cxx7__mutex4lockEv]+0x2):
    undefined reference to `pthread_mutex_lock'

and a lot of other pthread symbols...

However, when doing a static build, there is no way for the linker to know
what library to link in, so the build fails miserably if -pthread is not
specified at link time.

Fixes:
    http://autobuild.buildroot.org/results/15e/15ecaa23f0116e8120b3d62e553c838f0303df35/
    http://autobuild.buildroot.org/results/f0a/f0abe301816e39eb4ae26d3e8cd42d90901d5ac5/

[Peter: only perform workaround if toolchain has threads support, tweak comment]
Signed-off-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>package/snappy: add .hash file</title>
<updated>2016-06-18T20:54:27+00:00</updated>
<author>
<name>Romain Naour</name>
<email>romain.naour@gmail.com</email>
</author>
<published>2016-06-18T16:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=f928ec3f76561f4fa6abdc50f8c45c39d7ecc1cb'/>
<id>urn:sha1:f928ec3f76561f4fa6abdc50f8c45c39d7ecc1cb</id>
<content type='text'>
Similar to jquery-keyboard, it seems the snappy tarball on the
autobuilder is corrupt.  Fix it by adding a .hash file so it falls back to
our s.b.o mirror.

Signed-off-by: Romain Naour &lt;romain.naour@gmail.com&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>snappy: disable tests</title>
<updated>2015-07-14T11:55:13+00:00</updated>
<author>
<name>Vicente Olivert Riera</name>
<email>Vincent.Riera@imgtec.com</email>
</author>
<published>2015-07-14T11:31:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=e9818c94945bb882e0544d452d1d789d3fecfc57'/>
<id>urn:sha1:e9818c94945bb882e0544d452d1d789d3fecfc57</id>
<content type='text'>
This will also fix an unsafe header path problem:

/br/output/host/usr/bin/mips-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64   -Os  -c -o snappy_unittest-snappy-test.o `test
-f 'snappy-test.cc' || echo './'`snappy-test.cc
mips-linux-gnu-g++: ERROR: unsafe header/library path used in
cross-compilation: '/usr/include'
Makefile:730: recipe for target 'snappy_unittest-snappy_unittest.o'
failed

Signed-off-by: Vicente Olivert Riera &lt;Vincent.Riera@imgtec.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/snappy: add dependency on host-pkgconf</title>
<updated>2014-12-18T21:59:57+00:00</updated>
<author>
<name>Steve James</name>
<email>ste@junkomatic.net</email>
</author>
<published>2014-12-17T12:25:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=3a56d1b4a9fd8fa6fb8bd701ea065bb03079ef96'/>
<id>urn:sha1:3a56d1b4a9fd8fa6fb8bd701ea065bb03079ef96</id>
<content type='text'>
Snappy doesn't configure without host pkg-config, causing this totally
unhelpful diagnostic from autoconf:

  configure.ac:42: error: possibly undefined macro: AC_DEFINE
        If this token and others are legitimate, please use m4_pattern_allow.
        See the Autoconf documentation.
  configure.ac:44: error: possibly undefined macro: AC_MSG_FAILURE

So add host-pkgconf to the package's DEPENDENCIES list.

Signed-off-by: Steve James &lt;ste@junkomatic.net&gt;
Acked-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
</feed>
