* [bug#27784] [PATCH] gnu: quassel: Enable SSL
@ 2017-07-21 20:12 Ryan Moe
2017-07-22 12:37 ` Marius Bakke
2017-07-22 14:18 ` Ryan Moe
0 siblings, 2 replies; 4+ messages in thread
From: Ryan Moe @ 2017-07-21 20:12 UTC (permalink / raw)
To: 27784; +Cc: Ryan Moe
This allows quasselclient to connect to SSL-enabled quasselcore
instances.
* gnu/packages/patches/quassel-fix-ssl-check.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/irc.scm (quassel)[arguments]: Use it.
---
gnu/local.mk | 1 +
gnu/packages/irc.scm | 3 ++-
gnu/packages/patches/quassel-fix-ssl-check.patch | 21 +++++++++++++++++++++
3 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/quassel-fix-ssl-check.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index 6d9e57062..f1f343b86 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -984,6 +984,7 @@ dist_patch_DATA = \
%D%/packages/patches/qt4-ldflags.patch \
%D%/packages/patches/qtscript-disable-tests.patch \
%D%/packages/patches/quagga-reproducible-build.patch \
+ %D%/packages/patches/quassel-fix-ssl-check.patch \
%D%/packages/patches/quickswitch-fix-dmenu-check.patch \
%D%/packages/patches/rapicorn-isnan.patch \
%D%/packages/patches/raptor2-heap-overflow.patch \
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index 011665d38..8bd877d28 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -68,7 +68,8 @@
version ".tar.bz2"))
(sha256
(base32
- "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k"))))
+ "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k"))
+ (patches (search-patches "quassel-fix-ssl-check.patch"))))
(build-system cmake-build-system)
(arguments
;; The three binaries are not mutually exlusive, and are all built
diff --git a/gnu/packages/patches/quassel-fix-ssl-check.patch b/gnu/packages/patches/quassel-fix-ssl-check.patch
new file mode 100644
index 000000000..f825cb77e
--- /dev/null
+++ b/gnu/packages/patches/quassel-fix-ssl-check.patch
@@ -0,0 +1,21 @@
+The check in qglobal.h requires -fPIC (not -fPIE as it
+is now). When this check fails SSL is disabled.
+
+This patch comes from upstream master and can be removed when
+the next version is packaged.
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -428,6 +428,11 @@ endif()
+ cmake_push_check_state(RESET)
+ set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS})
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
++
++if (USE_QT5 AND Qt5_POSITION_INDEPENDENT_CODE)
++ set(CMAKE_REQUIRED_FLAGS "-fPIC -DQT_NO_VERSION_TAGGING")
++endif()
++
+ check_cxx_source_compiles("
+ #include \"qglobal.h\"
+ #if defined QT_NO_SSL
+
--
2.13.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#27784] [PATCH] gnu: quassel: Enable SSL
2017-07-21 20:12 [bug#27784] [PATCH] gnu: quassel: Enable SSL Ryan Moe
@ 2017-07-22 12:37 ` Marius Bakke
2017-07-22 14:18 ` Ryan Moe
1 sibling, 0 replies; 4+ messages in thread
From: Marius Bakke @ 2017-07-22 12:37 UTC (permalink / raw)
To: Ryan Moe, 27784
[-- Attachment #1: Type: text/plain, Size: 859 bytes --]
Hello!
Ryan Moe <ryan.moe@gmail.com> writes:
> This allows quasselclient to connect to SSL-enabled quasselcore
> instances.
>
> * gnu/packages/patches/quassel-fix-ssl-check.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/irc.scm (quassel)[arguments]: Use it.
[...]
> diff --git a/gnu/packages/patches/quassel-fix-ssl-check.patch b/gnu/packages/patches/quassel-fix-ssl-check.patch
> new file mode 100644
> index 000000000..f825cb77e
> --- /dev/null
> +++ b/gnu/packages/patches/quassel-fix-ssl-check.patch
> @@ -0,0 +1,21 @@
> +The check in qglobal.h requires -fPIC (not -fPIE as it
> +is now). When this check fails SSL is disabled.
> +
> +This patch comes from upstream master and can be removed when
> +the next version is packaged.
Can you add the URL to the relevant upstream commit? Apart from that
this LGTM.
Thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#27784] [PATCH] gnu: quassel: Enable SSL
2017-07-21 20:12 [bug#27784] [PATCH] gnu: quassel: Enable SSL Ryan Moe
2017-07-22 12:37 ` Marius Bakke
@ 2017-07-22 14:18 ` Ryan Moe
2017-07-23 0:08 ` bug#27784: " Leo Famulari
1 sibling, 1 reply; 4+ messages in thread
From: Ryan Moe @ 2017-07-22 14:18 UTC (permalink / raw)
To: 27784
This allows quasselclient to connect to SSL-enabled quasselcore
instances.
* gnu/packages/patches/quassel-fix-ssl-check.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/irc.scm (quassel)[arguments]: Use it.
---
gnu/local.mk | 1 +
gnu/packages/irc.scm | 3 ++-
gnu/packages/patches/quassel-fix-ssl-check.patch | 23 +++++++++++++++++++++++
3 files changed, 26 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/patches/quassel-fix-ssl-check.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index 6d9e57062..f1f343b86 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -984,6 +984,7 @@ dist_patch_DATA = \
%D%/packages/patches/qt4-ldflags.patch \
%D%/packages/patches/qtscript-disable-tests.patch \
%D%/packages/patches/quagga-reproducible-build.patch \
+ %D%/packages/patches/quassel-fix-ssl-check.patch \
%D%/packages/patches/quickswitch-fix-dmenu-check.patch \
%D%/packages/patches/rapicorn-isnan.patch \
%D%/packages/patches/raptor2-heap-overflow.patch \
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index 011665d38..8bd877d28 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -68,7 +68,8 @@
version ".tar.bz2"))
(sha256
(base32
- "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k"))))
+ "0ka456fb8ha3w7g74xlzfg6w4azxjjxgrhl4aqpbwg3lnd6fbr4k"))
+ (patches (search-patches "quassel-fix-ssl-check.patch"))))
(build-system cmake-build-system)
(arguments
;; The three binaries are not mutually exlusive, and are all built
diff --git a/gnu/packages/patches/quassel-fix-ssl-check.patch b/gnu/packages/patches/quassel-fix-ssl-check.patch
new file mode 100644
index 000000000..14c57883f
--- /dev/null
+++ b/gnu/packages/patches/quassel-fix-ssl-check.patch
@@ -0,0 +1,23 @@
+The check in qglobal.h requires -fPIC (not -fPIE as it
+is now). When this check fails SSL is disabled.
+
+This patch comes from upstream master [0] and can be removed
+when the next version is packaged.
+
+[0] https://github.com/quassel/quassel/commit/4768c9e99
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -428,6 +428,11 @@ endif()
+ cmake_push_check_state(RESET)
+ set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS})
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
++
++if (USE_QT5 AND Qt5_POSITION_INDEPENDENT_CODE)
++ set(CMAKE_REQUIRED_FLAGS "-fPIC -DQT_NO_VERSION_TAGGING")
++endif()
++
+ check_cxx_source_compiles("
+ #include \"qglobal.h\"
+ #if defined QT_NO_SSL
+
--
2.13.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#27784: [PATCH] gnu: quassel: Enable SSL
2017-07-22 14:18 ` Ryan Moe
@ 2017-07-23 0:08 ` Leo Famulari
0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2017-07-23 0:08 UTC (permalink / raw)
To: Ryan Moe; +Cc: 27784-done
[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]
On Sat, Jul 22, 2017 at 07:18:42AM -0700, Ryan Moe wrote:
Thanks for this updated patch! I pushed as
36378bd57ec31ba2bbedbdbdbd77b5b0f82f3b8a with the following changes:
I changed all mention of SSL to TLS, which is (optimistically) more
accurate nowadays since all the SSL protocols have been broken and
deprecated.
> This allows quasselclient to connect to SSL-enabled quasselcore
> instances.
I moved this comment into the patch.
> * gnu/packages/patches/quassel-fix-ssl-check.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/irc.scm (quassel)[arguments]: Use it.
s/arguments/source
> diff --git a/gnu/packages/patches/quassel-fix-ssl-check.patch b/gnu/packages/patches/quassel-fix-ssl-check.patch
> new file mode 100644
> index 000000000..14c57883f
> --- /dev/null
> +++ b/gnu/packages/patches/quassel-fix-ssl-check.patch
> @@ -0,0 +1,23 @@
> +The check in qglobal.h requires -fPIC (not -fPIE as it
> +is now). When this check fails SSL is disabled.
> +
> +This patch comes from upstream master [0] and can be removed
> +when the next version is packaged.
> +
> +[0] https://github.com/quassel/quassel/commit/4768c9e99
I used the full commit hash here.
Plus various stylistic and cosmetic changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-23 0:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-21 20:12 [bug#27784] [PATCH] gnu: quassel: Enable SSL Ryan Moe
2017-07-22 12:37 ` Marius Bakke
2017-07-22 14:18 ` Ryan Moe
2017-07-23 0:08 ` bug#27784: " Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).