[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#872325: marked as done (qtdeclarative-opensource-src: packages shipping qmlc files should have a stricter dependency on libqt5qml5)



Your message dated Sat, 14 Oct 2017 07:34:52 +0000
with message-id <E1e3GyC-000J5j-1q@fasolo.debian.org>
and subject line Bug#872325: fixed in pkg-kde-tools 0.15.26
has caused the Debian Bug report #872325,
regarding qtdeclarative-opensource-src: packages shipping qmlc files should have a stricter dependency on libqt5qml5
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
872325: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872325
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: qtdeclarative-opensource-src
Version: 5.9.1-5
Severity: important

Some time ago I received a private message from Alexander Volkov mentioning
this problem, but it got lost in my mailbox and I remembered about it only
now (sorry for that).

Packages shipping the .qmlc files (such as qtgraphicaleffects, qtquickcontrols
and qtquickcontrols2 QML modules) work only when the same upstream version of
libqt5qml5 that they were built against.

I am attaching a script I received from Alexander which adds such dependency
to ${shlibs:Depends} if .qmlc files are present in the package.

--
Dmitry Shachnev
#!/usr/bin/perl

use strict;
use warnings;
use Cwd;
use Debian::Debhelper::Dh_Lib;
use Dpkg::Substvars;
use Dpkg::Version;

init(options => {});

foreach my $package (@{$dh{DOPACKAGES}}) {
	my $tmp=tmpdir($package);
	my $ext=pkgext($package);
	my (@filelist, $ff);

	foreach my $file (split(/\n/,`find $tmp -type f -name "*.qmlc" -print -quit`)) {
		push @filelist,$file;
	}

	if (@filelist) {
		my $substvars = Dpkg::Substvars->new();
		my $varnameprefix = 'shlibs';
		my $varlistfile = "debian/${ext}substvars";
		my $varlistfilenew = "$varlistfile.new";
		my $depfield = 'Depends';
		my $vs = Dpkg::Version->new(`dpkg-query -f='\${Version}' -W libqt5qml5 2>/dev/null`, check => 1);
		if (not defined $vs) {
			error(g_('libqt5qml5 is missing, can\'t calculate dependency for qmlc files'));
		}
		my $uvs = $vs->as_string(omit_revision => 1);
		my @uvsdigits = version_split_digits($uvs);
		my $uvsnext = join "", @uvsdigits[0 .. $#uvsdigits-1], $uvsdigits[-1] + 1;
		$substvars->load($varlistfile) if -e $varlistfile;
		my $oldshlibs = $substvars->get("$varnameprefix:$depfield");
		my $newshlibs = "libqt5qml5 (>= $uvs), libqt5qml5 (<< $uvsnext)" . ($oldshlibs eq "" ? "" : ", ") . $oldshlibs;
		$substvars->set_as_used("$varnameprefix:$depfield", $newshlibs);
		$substvars->save($varlistfilenew);
		rename $varlistfilenew, $varlistfile
			or syserr(g_("install new varlist file '%s'"), $varlistfile);
	}
}

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: pkg-kde-tools
Source-Version: 0.15.26

We believe that the bug you reported is fixed in the latest version of
pkg-kde-tools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 872325@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Shachnev <mitya57@debian.org> (supplier of updated pkg-kde-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 14 Oct 2017 10:16:06 +0300
Source: pkg-kde-tools
Binary: pkg-kde-tools libdlrestrictions1 libdlrestrictions-dev
Architecture: source
Version: 0.15.26
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Dmitry Shachnev <mitya57@debian.org>
Description:
 libdlrestrictions-dev - development files for the DLRestrictions library
 libdlrestrictions1 - library that implements library compatibility checks for dlopen()
 pkg-kde-tools - various packaging tools and scripts for KDE Applications
Closes: 872325
Changes:
 pkg-kde-tools (0.15.26) unstable; urgency=medium
 .
   * Add a new script, dh_qmlcdeps, for generating proper Qt dependencies
     for QML compiled data files (Closes: #872325).
   * Bump Standards-Version to 4.1.1, no changes needed.
   * Fix syntax error in pkgkde-symbolshelper.1 manpage.
Checksums-Sha1:
 87f32fd4e2df5328312d7fba4351e46e52846650 2033 pkg-kde-tools_0.15.26.dsc
 0925ce1af6842f9fbc0f899778c29239bec84ca3 99564 pkg-kde-tools_0.15.26.tar.xz
 d0a2c542532a1e18809733e433edefd895fc7861 6275 pkg-kde-tools_0.15.26_source.buildinfo
Checksums-Sha256:
 2ad762603c25e6d638814c889f3b5587de5a8e769510252702c189e7dcb60ceb 2033 pkg-kde-tools_0.15.26.dsc
 92ecd7e8c3ec4d58ffdbfd61346df482dedc1f71b7147406c6f84fa577ab7d63 99564 pkg-kde-tools_0.15.26.tar.xz
 3520c574b768d76dc2c87657e1c7e2836695c27eac000da7f9230ab16c886b9f 6275 pkg-kde-tools_0.15.26_source.buildinfo
Files:
 37ac8def2bc42e6e9ec3e7887d18bfc5 2033 devel optional pkg-kde-tools_0.15.26.dsc
 3b631ddae239d061efb662bd2e390997 99564 devel optional pkg-kde-tools_0.15.26.tar.xz
 94eed825546c88df4684ad213981328b 6275 devel optional pkg-kde-tools_0.15.26_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEbEPcK+5mZmLK5jNU1v5xA2P4XdMFAlnhuiIACgkQ1v5xA2P4
XdNcKBAAk8v5/qLf0WOu4FaWOE0JetzwudLkGyph5IA2yn8s3tAW7wRCuv8Wla1R
Ap0str+prrgYjyI3pSidY+mmRcPsot3/qTLqgOwa6ZM8ruKJTxRkCuXoKFOf/Eoo
YftcVClee2RvwWPv4+ypSPJHsFJEg1sQ7fajVeU93vOWq3B7x2o5v4UomM0LNOh2
CriUxz6IzX5JOrM1LSB13G7Fi/+2Ngy+xV1TQeh3oe9Hzolb/EXk23mDxZab2AjZ
MsU8glmpbIEtPJkPbo+YAjEkSJyoCCDUet/9DNG2NPjSjRCsRY5QMAtUdmHUpXmG
ks+3L85SosY3ZyzKgje4la8f6GP2mBfywuXvLSMLeBwYwc5F4WctJGkHbLYSKs2f
7FBhgOxVb6+SR+ZjqD084mJCrAAg7YNqT1OpuNB6Jc71b6MI3oNUG9ZyEXQBVUF3
PbHXy6g0am4lAcZEK/PzIPg9/9J99dToKdzeFxQtNiTcWJNgCRtmENjcXkwdlFFY
xD3n/FUDl64vu4/VpjKpHerVBsHvC5z/yGeBlfFAwsm2SJr6/62uGzoZVWikDTUL
P2R/AqC69xZzCtM5HPZ/AOG/XFHR0720IH7NUQEQFoQg00IKp2IEm+d5Rc3t5gH9
456RMWeYfsQWf5d/1/u4UkJtUblKdwds5k+y9DYdUnO8agNwOGI=
=TKzv
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: