[SCM] qtbase packaging branch, master, updated. debian/5.0.2+dfsg1-4-7-g72cdc1e

Sune Vuorela pusling-guest at alioth.debian.org
Sat May 18 20:07:22 UTC 2013


Gitweb-URL: http://git.debian.org/?p=pkg-kde/qt/qtbase.git;a=commitdiff;h=e6f14c9

The following commit has been merged in the master branch:
commit e6f14c992d02ab66e465389bfc699e4398998b1a
Author: Sune Vuorela <sune at vuorela.dk>
Date:   Sat May 18 22:05:37 2013 +0200

    Create a script to mark symbols as private.
---
 debian/changelog               |    1 +
 debian/mark_private_symbols.sh |   30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 345c01d..6f3cdbd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ qtbase-opensource-src (5.0.2+dfsg1-5) UNRELEASED; urgency=low
   [ Sune Vuorela ]
   * Prepare symbol files to track private symbols.
   * Make libqt5core5 provide a virtual package to track the non-public api/abi.
+  * Create a script to mark symbols as private.
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sat, 18 May 2013 11:54:35 +0200
 
diff --git a/debian/mark_private_symbols.sh b/debian/mark_private_symbols.sh
new file mode 100755
index 0000000..ca10773
--- /dev/null
+++ b/debian/mark_private_symbols.sh
@@ -0,0 +1,30 @@
+#! /bin/sh
+
+PRIVATE_HEADERS=qtbase5-private-dev/usr/include
+
+error() {
+	echo $@
+	exit 1
+}
+
+debug() {
+	[ -n "${DEBUG}" ] && echo $@
+}
+
+if [ ! -e "${PRIVATE_HEADERS}" ] 
+then
+	error "Private headers not found"
+fi
+
+grep -rh class qtbase5-private-dev/usr/include | 
+	grep EXPORT | 
+	while read class export classname rest 
+	do
+		echo ${#classname}${classname} 
+	done | 
+	while read privateclass 
+	do
+		debug marking ${privateclass} as private
+		sed -i "s/\(.*${privateclass}[^ ]* *[^ ]*\)$/ 1/" *.symbols 
+	done 
+

-- 
qtbase packaging



More information about the pkg-kde-commits mailing list