Bug#863149: [pkg-gnupg-maint] Bug#863149: libgpgmepp-dev: please split the qtgpgme(pp) stuff out

2017-05-26 Thread Rene Engelhard
On Sat, May 27, 2017 at 01:02:24AM +0200, Sandro Knauß wrote:
> well why this has changed is that upstream imcluded  qtgpgme(pp) into 
> gpgmepp,> so a  developer can expect to install the gpgmepp-dev package to 
> have all
> language bindings to be installed (cpp, qt,...) . 

Honestly, this doesn't make sense to me. if it had Haskell, or D or Ada or
whatever else obscure binding, would it be there, too?

Besides, that, the python binding is not a dependency of that -dev either.
  
>I would recommend, when the gpgmepp-dev package depends on gpgmepp-cpp-dev and 
>> gpgmepp-qt-dev package etc. so your package can select gpgmepp-cpp-dev etc.

That would also work but IMHO is a over-abstraction.

> Qt4 is EOL and also stretch should not be released with it! But there was to 
> much depending on it, so we had to drop the plan to get rid of Qt4 . But this 
> won't happend for buster so please file a bug upstream to switch to Qt5 fast. 

Off-topic, but: won't work:

https://wiki.documentfoundation.org/Development/GSoC/Ideas#KDE5:_port_KDE4_plugin_to_KF5

Regards,

Rene



Bug#863149: [pkg-gnupg-maint] Bug#863149: libgpgmepp-dev: please split the qtgpgme(pp) stuff out

2017-05-26 Thread Sandro Knauß
Hey,

well why this has changed is that upstream imcluded  qtgpgme(pp) into gpgmepp, 
so a  developer can expect to install the gpgmepp-dev package to have all 
language bindings to be installed (cpp, qt,...) . 

I would recommend, when the gpgmepp-dev package depends on gpgmepp-cpp-dev and 
gpgmepp-qt-dev package etc. so your package can select gpgmepp-cpp-dev etc.

see also the old mail thread:
https://lists.alioth.debian.org/pipermail/pkg-kde-talk/2016-October/
002410.html

> but starting from LibreOffice 5.4 we have libreoffice-core having a
> build-dependency on libgpgmepp-dev and LibreOffice (still, yes, I consider
> that a bug, but..) uses Qt4/KDE for -kde, not Qt5.

Qt4 is EOL and also stretch should not be released with it! But there was to 
much depending on it, so we had to drop the plan to get rid of Qt4 . But this 
won't happend for buster so please file a bug upstream to switch to Qt5 fast. 
So forcing you to switch to Qt5 via gpgmepp is a nice side effect :)

Best regards,

sandro




signature.asc
Description: This is a digitally signed message part.


Bug#863149: libgpgmepp-dev: please split the qtgpgme(pp) stuff out

2017-05-26 Thread Rene Engelhard
tag 863149 + patch
thanks

Hi,

On Fri, May 26, 2017 at 04:45:05PM -0400, Daniel Kahn Gillmor wrote:
> On Mon 2017-05-22 20:32:48 +0200, Rene Engelhard wrote:
> > Can the qgpgme(pp) stuff split out to an own -dev (As was already done
> > with the library itself.) and only that one be made depedant on libqgpgme7?
> > ( This would probably require a transition and the above apps changing their
> > Build-Depends:, but..)
> 
> I think that makes sense, but don't have the time to work on it right
> now myself.  I'd be happy to review patches along these lines, though.

Attached. Based on experimental.

Pretty straightforward but I didn't test it yet (except that it builds,
packages and the files are where I would expect that). Should work, though.

Regards,

Rene
>From 16d127a52442af0c0be87c99c978e7b7a06a9c49 Mon Sep 17 00:00:00 2001
From: Rene Engelhard 
Date: Sat, 27 May 2017 00:53:35 +0200
Subject: [PATCH] split qgpgme into own -dev

---
 debian/changelog  |  7 +++
 debian/control| 29 +++--
 debian/libgpgmepp-dev.install |  6 +-
 debian/libgpgmepp-dev.links   |  1 -
 debian/libqgpgme-dev.install  |  5 +
 debian/libqgpgme-dev.links|  1 +
 6 files changed, 37 insertions(+), 12 deletions(-)
 create mode 100644 debian/libqgpgme-dev.install
 create mode 100644 debian/libqgpgme-dev.links

diff --git a/debian/changelog b/debian/changelog
index 3958fa81..b39a9b33 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gpgme1.0 (1.9.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * split qgpgme into own -dev
+
+ -- Rene Engelhard   Sat, 27 May 2017 00:22:10 +0200
+
 gpgme1.0 (1.9.0-2) experimental; urgency=medium
 
   * Remove Jose Carlos Garcia Sogo from Uploaders (Closes: #862622)
diff --git a/debian/control b/debian/control
index 233d53ea..d733f470 100644
--- a/debian/control
+++ b/debian/control
@@ -153,17 +153,34 @@ Priority: extra
 Architecture: any
 Depends:
  libgpgmepp6 (= ${binary:Version}),
- libqgpgme7 (= ${binary:Version}),
- qtbase5-dev,
  ${misc:Depends},
  ${shlibs:Depends},
 Recommends:
  libgpgmepp-doc (= ${binary:Version}),
+Description: C++ wrapper library for GPGME (development files)
+ GpgME++ (aka GpgMEpp) is a C++ wrapper (or C++ bindings) for the
+ GnuPG project's GPGME (GnuPG Made Easy) library.
+ .
+ This package contains the headers and other files needed to compile
+ against it.
+
+Package: libqgpgme-dev
+Section: libdevel
+Priority: extra
+Architecture: any
+Depends:
+ libgpgmepp-dev (= ${binary:Version}),
+ libqgpgme7 (= ${binary:Version}),
+ qtbase5-dev,
 Breaks:
- kdepimlibs5-dev
+ kdepimlibs5-dev,
+ libgpgmepp-dev (<< 1.9.0-3)
 Replaces:
- kdepimlibs5-dev
-Description: C++ and Qt bindings for GPGME (development files)
+ kdepimlibs5-dev,
+ libgpgmepp-dev (<< 1.9.0-3)
+Recommends:
+ libgpgmepp-doc (= ${binary:Version}),
+Description: Qt bindings for GPGME (development files)
  GpgME++ (aka GpgMEpp) is a C++ wrapper (or C++ bindings) for the
  GnuPG project's GPGME (GnuPG Made Easy) library.
  .
@@ -171,7 +188,7 @@ Description: C++ and Qt bindings for GPGME (development files)
  and some Qt datatypes (e.g. QByteArray).
  .
  This package contains the headers and other files needed to compile
- against either of these libraries.
+ against this library.
 
 Package: libgpgmepp-doc
 Section: doc
diff --git a/debian/libgpgmepp-dev.install b/debian/libgpgmepp-dev.install
index df13d706..813e1868 100644
--- a/debian/libgpgmepp-dev.install
+++ b/debian/libgpgmepp-dev.install
@@ -1,8 +1,4 @@
-usr/include/QGpgME
 usr/include/gpgme++
-usr/include/qgpgme
-usr/lib/*/cmake
+usr/lib/*/cmake/Gpgmepp
 usr/lib/*/libgpgmepp.a
 usr/lib/*/libgpgmepp.so
-usr/lib/*/libqgpgme.a
-usr/lib/*/libqgpgme.so
diff --git a/debian/libgpgmepp-dev.links b/debian/libgpgmepp-dev.links
index e08e7fd0..1a9fed5c 100644
--- a/debian/libgpgmepp-dev.links
+++ b/debian/libgpgmepp-dev.links
@@ -1,2 +1 @@
 usr/share/doc/libgpgmepp6/README usr/share/doc/libgpgmepp-dev/README.gpgmepp
-usr/share/doc/libqgpgme/README usr/share/doc/libgpgmepp-dev/README.qgpgme
diff --git a/debian/libqgpgme-dev.install b/debian/libqgpgme-dev.install
new file mode 100644
index ..01e98ce0
--- /dev/null
+++ b/debian/libqgpgme-dev.install
@@ -0,0 +1,5 @@
+usr/include/QGpgME
+usr/include/qgpgme
+usr/lib/*/cmake/QGpgme
+usr/lib/*/libqgpgme.a
+usr/lib/*/libqgpgme.so
diff --git a/debian/libqgpgme-dev.links b/debian/libqgpgme-dev.links
new file mode 100644
index ..ca7343a9
--- /dev/null
+++ b/debian/libqgpgme-dev.links
@@ -0,0 +1 @@
+usr/share/doc/libqgpgme/README usr/share/doc/libgpgmepp-dev/README.qgpgme
-- 
2.11.0



Bug#863149: libgpgmepp-dev: please split the qtgpgme(pp) stuff out

2017-05-26 Thread Daniel Kahn Gillmor
Hi Rene--

On Mon 2017-05-22 20:32:48 +0200, Rene Engelhard wrote:
> Can the qgpgme(pp) stuff split out to an own -dev (As was already done
> with the library itself.) and only that one be made depedant on libqgpgme7?
> ( This would probably require a transition and the above apps changing their
> Build-Depends:, but..)

I think that makes sense, but don't have the time to work on it right
now myself.  I'd be happy to review patches along these lines, though.

Thanks for making the suggestion,

--dkg



Bug#863149: libgpgmepp-dev: please split the qtgpgme(pp) stuff out

2017-05-22 Thread Rene Engelhard
Package: libgpgmepp-dev
Version: 1.8.0-3
Severity: wishlist

Hi,

# apt-cache show libgpgmepp-dev
Package: libgpgmepp-dev
Source: gpgme1.0 (1.8.0-3)
Version: 1.8.0-3+b2
Installed-Size: 3626
Maintainer: Debian GnuPG Maintainers 
Architecture: amd64
Replaces: kdepimlibs5-dev
Depends: libgpgmepp6 (= 1.8.0-3+b2), libqgpgme7 (= 1.8.0-3+b2), qtbase5-dev
 ^^
Recommends: libgpgmepp-doc (= 1.8.0-3+b2)
Breaks: kdepimlibs5-dev
Description: C++ and Qt bindings for GPGME (development files)
Description-md5: d409b90b546df24f9e29efdc20935e54
Homepage: https://www.gnupg.org/related_software/gpgme/
Tag: devel::library, role::devel-lib
Section: libdevel
Priority: optional
Filename: pool/main/g/gpgme1.0/libgpgmepp-dev_1.8.0-3+b2_amd64.deb
Size: 415202
MD5sum: 5509c6463400a5c90874e6aa47699a0b
SHA256: e8e5a6c4476097bf43ad92f27d50516c637d65d1e719dbd8ce865a3f436516e0

# apt-cache show libqgpgme7
Package: libqgpgme7
Source: gpgme1.0
Version: 1.9.0-2
Installed-Size: 1102
Maintainer: Debian GnuPG Maintainers 
Architecture: amd64
Depends: libassuan0 (>= 2.0.1), libc6 (>= 2.14), libgcc1 (>= 1:3.0), 
libgpg-error0 (>= 1.14), libgpgme11 (>= 1.1.2), libgpgmepp6 (>= 1.9.0), 
libqt5core5a (>= 5.9.0~beta), libstdc++6 (>= 5.2)
Description: library for GPGME integration with Qt
Description-md5: 0d569a713cd9a1fb2465f4dd9add5f06
Multi-Arch: same
Homepage: https://www.gnupg.org/related_software/gpgme/
Tag: role::shared-lib
Section: libs
Priority: optional
Filename: pool/main/g/gpgme1.0/libqgpgme7_1.9.0-2_amd64.deb
Size: 281176
MD5sum: 123161754815e3e54c9baf5dc7aee735
SHA256: 000b1416292629e33ba8e4be0e6ab9733cae93acc6f01af4c8d631820e6b37bb

Package: libqgpgme7
Source: gpgme1.0 (1.8.0-3)
Version: 1.8.0-3+b2
Installed-Size: 1071
Maintainer: Debian GnuPG Maintainers 
Architecture: amd64
Depends: libassuan0 (>= 2.0.1), libc6 (>= 2.14), libgcc1 (>= 1:3.0), 
libgpg-error0 (>= 1.14), libgpgme11 (>= 1.1.2), libgpgmepp6 (>= 1.8.0), 
libqt5core5a (>= 5.7.0), libstdc++6 (>= 5.2)

 
^^
Description: library for GPGME integration with Qt
Description-md5: 0d569a713cd9a1fb2465f4dd9add5f06
Multi-Arch: same
Homepage: https://www.gnupg.org/related_software/gpgme/
Tag: role::shared-lib
Section: libs
Priority: optional
Filename: pool/main/g/gpgme1.0/libqgpgme7_1.8.0-3+b2_amd64.deb
Size: 249492
MD5sum: 62848d7da08b6382fd4d9906b7e3da95
SHA256: a04c35af7517e72cf71865758659c2fd14a6efdbbb2c7e11927666556fea6422

I don't exactly like the Qt5 dependency.

While not being a problem per se it makes the build-dependency footprint of
stuff only using the non-Qt parts bigger than needed.

So far this was no issue since

# grep-dctrl -FDepends gpgmepp -sPackage 
/var/lib/apt/lists/httpredir.debian.org_debian_dists_unstable_main_binary-amd64_Packages
Package: libgpgmepp-dev
Package: libqgpgme7
Package: libkf5gpgmepp-dev
Package: libkf5qgpgme5
Package: kaddressbook
Package: kmail
Package: libkf5messagecomposer5
Package: libkf5messageviewer5
Package: kleopatra
Package: libkf5wallet-bin
Package: libkwalletbackend5-5
Package: libkf5libkleo-dev
Package: libkf5libkleo5

(only KDE5 stuff using Qt5 anyways.)

but starting from LibreOffice 5.4 we have libreoffice-core having a
build-dependency on libgpgmepp-dev and LibreOffice (still, yes, I consider
that a bug, but..) uses Qt4/KDE for -kde, not Qt5.

Can the qgpgme(pp) stuff split out to an own -dev (As was already done
with the library itself.) and only that one be made depedant on libqgpgme7?
( This would probably require a transition and the above apps changing their
Build-Depends:, but..)

Regards,

Rene