[Slackbuilds-users] Updates - 20200328.1

Luiz Carlos Ramos lramos.prof at yahoo.com.br
Sat Mar 28 15:35:32 UTC 2020


Hello,

I just had an issue here with snappy. The build wasn't successful: it
stopped with a lot of errors when linking a unitttest.

I could find a solution googling a little and so I'm offering a patch
which hopefully may prevent this issue happening in other environments.

Many thanks, and stay safe!

Luiz Ramos
lramos dot prof at yahoo dot com dot br


>From 67e14aeffa26a59caaeb08a918ada15a5c563031 Mon Sep 17 00:00:00 2001
From: Luiz Ramos <lramos.prof at yahoo.com.br>
Date: Sat, 28 Mar 2020 12:19:57 -0300
Subject: [PATCH] development/snappy: fix build

For an unknown reason, the build of development/snappy gave errors when
linking the unittest.

Googling a little, a fix was found (adding the variable
${GTEST_LIBRARIES} to the build statement in CMakeLists.txt; check
https://github.com/google/snappy/pull/40 for details). The concept was
implemented in the SlackBuild and the change fixed the problem.
---
 development/snappy/01-add-flag-to-linker.patch | 12 ++++++++++++
 development/snappy/snappy.SlackBuild           |  3 +++
 2 files changed, 15 insertions(+)
 create mode 100644 development/snappy/01-add-flag-to-linker.patch

diff --git a/development/snappy/01-add-flag-to-linker.patch b/development/snappy/01-add-flag-to-linker.patch
new file mode 100644
index 0000000000000000000000000000000000000000..c275e7672859b80a0ea16cf2fa8755e20cafb11a
--- /dev/null
+++ b/development/snappy/01-add-flag-to-linker.patch
@@ -0,0 +1,12 @@
+diff -urpN a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt	2020-03-28 12:11:45.488255295 -0300
++++ b/CMakeLists.txt	2020-03-28 12:10:53.359253439 -0300
+@@ -212,7 +212,7 @@ if(SNAPPY_BUILD_TESTS)
+       "snappy-test.cc"
+   )
+   target_compile_definitions(snappy_unittest PRIVATE -DHAVE_CONFIG_H)
+-  target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES})
++  target_link_libraries(snappy_unittest snappy ${GFLAGS_LIBRARIES} ${GTEST_LIBRARIES})
+ 
+   if(HAVE_LIBZ)
+     target_link_libraries(snappy_unittest z)
diff --git a/development/snappy/snappy.SlackBuild b/development/snappy/snappy.SlackBuild
index fcaa12847c14925ab440fb2ffc32db706db42d94..5ce0b6dd1bc9b7eea67b2cf58def8c6dab16ac93 100644
--- a/development/snappy/snappy.SlackBuild
+++ b/development/snappy/snappy.SlackBuild
@@ -52,6 +52,9 @@ find -L . \
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+# check: https://github.com/google/snappy/pull/40
+patch -p1 -i $CWD/01-add-flag-to-linker.patch
+
 mkdir -p build
 cd build
 cmake \
-- 
2.14.5

On Sat, Mar 28, 2020 at 01:37:52PM +0700, Willy Sudiarto Raharjo wrote:
> Hi
> 
> Just a tip for those who wants to orphaned a script, please make sure to
> keep the MAINTAINER and EMAIL field filled (use a non existent email is
> fine)
> 
> For maintainers, please make sure to have the properly git hooks that
> checks the permissions. All scripts must have 644 instead of 755.
> 
> Stay safe everyone
> 
> 
> Sat Mar 28 06:21:53 UTC 2020
> desktop/Qogir-icon-theme: Added (A colorful design icon theme).
> desktop/neofetch: Updated for version 7.0.0.
> desktop/numix-icon-theme-circle: Updated for version 19.12.27.
> desktop/numix-icon-theme: Updated for version 20.03.20.
> development/composer: Updated for version 1.10.1
> development/dart: Updated for version 2.7.2.
> development/eclipse-cpp: Updated for version 4.15.
> development/eclipse-java: Updated for version 4.15.
> development/eclipse-jee: Updated for version 4.15.
> development/fly: Updated for version 6.0.0.
> development/gede: Updated for version 2.15.4.
> development/hexinator: Updated for version 1.12.
> development/kotlin: Updated for version 1.3.71.
> development/lepton-eda: Updated for version 1.9.10.
> development/snappy: Updated for version 1.1.8.
> development/tea: Updated for version 50.0.4.
> development/universal-ctags: Updated for version 09b7cc5
> development/velero: Added (Backup and migrate Kubernetes resources).
> development/vscode-bin: Updated for version 1.43.2.
> games/steam: Add desktop file
> gis/qgis: Updated for version 3.12.1.
> graphics/vuescan: Updated for version 9.7.26.
> libraries/libwacom: Updated for version 1.3.
> libraries/stfl: Support builds on current.
> libraries/t38modem-opal: Added (Open Phone Abstraction Library).
> libraries/t38modem-ptlib: Added (Portable Tools Library).
> libraries/tbb: Cleanup temp file.
> misc/ghostpcl: Updated for version 9.52.
> misc/par2cmdline-tbb: Updated for version 0.4_20150503.
> multimedia/plexmediaserver: Updated for v 1.18.9.2571_e106a8a91.
> network/asterisk: Updated for version 16.9.0.
> network/emailrelay: Updated HOMEPAGE.
> network/insync: Updated for version 3.1.0.40756.
> network/onedrive: Updated for version 2.4.0.
> network/opera-developer: Updated for version 69.0.3638.0.
> network/opera: Updated for version 67.0.3575.115.
> network/palemoon-bin: Updated for version 28.8.4.
> network/palemoon: Updated for version 28.8.4.
> network/speedtest-cli: Updated script.
> network/teamviewer: Updated for version 15.4.4445.
> network/tor-browser: Updated for version 9.0.7.
> network/zoom-linux: Updated for version 3.5.374815.0324.
> office/calibre-bin: Updated for version 4.13.0.
> perl/perl-Sidef: Updated for version 3.95.
> perl/perl-xml-libxml: Updated for version 2.0134.
> python/DVR-Scan: Added (Motion Events Detector).
> python/python3-aiohttp-socks: Updated for version 0.3.6.
> system/bat: Updated for version 0.13.0.
> system/duplicity: Updated for version 0.7.19.
> system/fd: Updated for version 7.5.0.
> system/fzf: Updated for version 0.21.0.
> system/nvidia-driver: Fix permission.
> system/nvidia-driver: fix scripts; updated for version 440.64
> system/nvidia-kernel: updated for version 440.64
> system/nvidia-legacy340-driver: corrected maintainer
> system/nvidia-legacy390-driver: unmaintained
> system/nvidia-legacy390-kernel: unmaintained
> system/ranger: Updated for version 1.9.3.
> system/ripgrep: Updated for version 12.0.0.
> system/slpkg: Updated for version 3.8.6.
> system/splix: Updated for version 2.0.0_76268c4.
> system/unison: Updated HOMEPAGE.
> system/wine: Updated for version 4.0.3.
> +--------------------------+
> 
> 
> 
> -- 
> Willy Sudiarto Raharjo
> 




> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
> 



More information about the SlackBuilds-users mailing list