Import Debian changes 0.3.4-ok1

libgusb (0.3.4-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00 committed by Lu zhiping
parent 424be989ce
commit ffe083f8a7
19 changed files with 409 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
libgusb (0.3.4-ok1) yangtze; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
11

74
debian/control vendored Normal file
View File

@ -0,0 +1,74 @@
Source: libgusb
Maintainer: Michal Čihař <nijel@debian.org>
Section: libs
Priority: optional
Build-Depends: debhelper (>= 11),
libglib2.0-dev (>= 2.44.0),
libusb-1.0-0-dev,
gobject-introspection,
libgirepository1.0-dev,
gtk-doc-tools,
valac (>= 0.20),
meson (>= 0.46)
Build-Depends-Indep: libglib2.0-doc <!nodoc>
Standards-Version: 4.5.0
Homepage: http://www.hughski.com/downloads.html
Vcs-Git: https://salsa.debian.org/debian/libgusb.git
Vcs-Browser: https://salsa.debian.org/debian/libgusb
Package: libgusb-dev
Architecture: any
Section: libdevel
Depends: libgusb2 (= ${binary:Version}),
${shlibs:Depends},
${misc:Depends},
gir1.2-gusb-1.0 (= ${binary:Version}),
libglib2.0-dev (>= 2.44.0),
libusb-1.0-0-dev
Description: GLib wrapper around libusb1 - development files
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
.
This package contains header files needed for compiling programs with
GUsb and the gusbcmd debugging utility.
Package: libgusb-doc
Architecture: all
Section: doc
Depends: libgusb-dev,
${misc:Depends}
Suggests: devhelp
Build-Profiles: <!nodoc>
Description: GLib wrapper around libusb1 - documentation
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
.
This package contains the documentation.
Package: libgusb2
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends},
${misc:Depends}
Recommends: usb.ids
Pre-Depends: ${misc:Pre-Depends}
Description: GLib wrapper around libusb1
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.
.
This package contains the GUsb shared library.
Package: gir1.2-gusb-1.0
Architecture: any
Section: introspection
Multi-Arch: same
Depends: ${misc:Depends},
${gir:Depends}
Description: GObject introspection data for libgusb
This package contains the introspection data for GUsb.
.
It can be used by packages using the GIRepository format to generate
dynamic bindings.

50
debian/copyright vendored Normal file
View File

@ -0,0 +1,50 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libgusb
Source: http://people.freedesktop.org/~hughsient/releases/
Files: *
Copyright: Copyright (C) 2011 Richard Hughes <richard@hughsie.com>
Copyright (C) 2011 Hans de Goede <hdegoede@redhat.com>
License: LGPL-2.1+
Files: tools/*
Copyright: Copyright (C) 2011 Richard Hughes <richard@hughsie.com>
License: GPL-2.0+
Files: debian/*
Copyright: 2012 Michal Čihař <nijel@debian.org>
License: LGPL-2.1+
License: GPL-2.0+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
License: LGPL-2.1+
This package is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU Lesser General
Public License can be found in "/usr/share/common-licenses/LGPL-2.1".

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
README.md

5
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,5 @@
# Configuration file for git-buildpackage and friends
[DEFAULT]
sign-tags = True
pristine-tar = True

1
debian/gir1.2-gusb-1.0.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/girepository-1.0

2
debian/libgusb-dev.dirs vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib
usr/include

6
debian/libgusb-dev.install vendored Normal file
View File

@ -0,0 +1,6 @@
usr/include/*
usr/lib/*/lib*.so
usr/lib/*/pkgconfig/*
usr/share/gir-*
usr/share/vala/vapi
usr/bin/gusbcmd

1
debian/libgusb-doc.install vendored Normal file
View File

@ -0,0 +1 @@
usr/share/gtk-doc/html/gusb/*

1
debian/libgusb2.dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/lib

1
debian/libgusb2.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/lib*.so.*

98
debian/libgusb2.symbols vendored Normal file
View File

@ -0,0 +1,98 @@
libgusb.so.2 libgusb2 #MINVER#
* Build-Depends-Package: libgusb-dev
LIBGUSB_0.1.0@LIBGUSB_0.1.0 0.1.0
LIBGUSB_0.1.1@LIBGUSB_0.1.1 0.1.1
LIBGUSB_0.1.7@LIBGUSB_0.1.7 0.1.7
LIBGUSB_0.2.11@LIBGUSB_0.2.11 0.2.11
LIBGUSB_0.2.2@LIBGUSB_0.2.2 0.2.2
LIBGUSB_0.2.4@LIBGUSB_0.2.4 0.2.4
LIBGUSB_0.2.5@LIBGUSB_0.2.5 0.2.5
LIBGUSB_0.3.1@LIBGUSB_0.3.1 0.3.1
LIBGUSB_0.3.3@LIBGUSB_0.3.3 0.3.3
g_usb_context_enumerate@LIBGUSB_0.2.2 0.2.2
g_usb_context_error_quark@LIBGUSB_0.1.0 0.1.0
g_usb_context_find_by_bus_address@LIBGUSB_0.2.2 0.2.2
g_usb_context_find_by_platform_id@LIBGUSB_0.2.4 0.2.4
g_usb_context_find_by_vid_pid@LIBGUSB_0.2.2 0.2.2
g_usb_context_get_devices@LIBGUSB_0.2.2 0.2.2
g_usb_context_get_flags@LIBGUSB_0.2.11 0.2.11
g_usb_context_get_main_context@LIBGUSB_0.1.0 0.1.0
g_usb_context_get_source@LIBGUSB_0.1.0 0.1.0
g_usb_context_get_type@LIBGUSB_0.1.0 0.1.0
g_usb_context_new@LIBGUSB_0.1.0 0.1.0
g_usb_context_set_debug@LIBGUSB_0.1.0 0.1.0
g_usb_context_set_flags@LIBGUSB_0.2.11 0.2.11
g_usb_context_set_main_context@LIBGUSB_0.1.0 0.1.0
g_usb_context_wait_for_replug@LIBGUSB_0.1.0 0.2.10
g_usb_device_bulk_transfer@LIBGUSB_0.1.0 0.1.0
g_usb_device_bulk_transfer_async@LIBGUSB_0.1.0 0.1.0
g_usb_device_bulk_transfer_finish@LIBGUSB_0.1.0 0.1.0
g_usb_device_claim_interface@LIBGUSB_0.1.0 0.1.0
g_usb_device_close@LIBGUSB_0.1.0 0.1.0
g_usb_device_control_transfer@LIBGUSB_0.1.0 0.1.0
g_usb_device_control_transfer_async@LIBGUSB_0.1.0 0.1.0
g_usb_device_control_transfer_finish@LIBGUSB_0.1.0 0.1.0
g_usb_device_error_quark@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_address@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_bus@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_children@LIBGUSB_0.2.4 0.2.4
g_usb_device_get_configuration@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_custom_index@LIBGUSB_0.2.5 0.2.5
g_usb_device_get_device_class@LIBGUSB_0.1.7 0.1.7
g_usb_device_get_device_protocol@LIBGUSB_0.2.4 0.2.4
g_usb_device_get_device_subclass@LIBGUSB_0.2.4 0.2.4
g_usb_device_get_interface@LIBGUSB_0.1.0 0.2.8
g_usb_device_get_interfaces@LIBGUSB_0.1.0 0.2.8
g_usb_device_get_manufacturer_index@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_parent@LIBGUSB_0.2.4 0.2.4
g_usb_device_get_pid@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_pid_as_str@LIBGUSB_0.2.4 0.2.4
g_usb_device_get_platform_id@LIBGUSB_0.1.1 0.1.1
g_usb_device_get_port_number@LIBGUSB_0.2.4 0.2.4
g_usb_device_get_product_index@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_release@LIBGUSB_0.1.0 0.2.8
g_usb_device_get_serial_number_index@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_spec@LIBGUSB_0.3.1 0.3.1
g_usb_device_get_string_descriptor@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_type@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_vid@LIBGUSB_0.1.0 0.1.0
g_usb_device_get_vid_as_str@LIBGUSB_0.2.4 0.2.4
g_usb_device_interrupt_transfer@LIBGUSB_0.1.0 0.1.0
g_usb_device_interrupt_transfer_async@LIBGUSB_0.1.0 0.1.0
g_usb_device_interrupt_transfer_finish@LIBGUSB_0.1.0 0.1.0
g_usb_device_list_coldplug@LIBGUSB_0.1.0 0.1.0
g_usb_device_list_find_by_bus_address@LIBGUSB_0.1.0 0.1.0
g_usb_device_list_find_by_vid_pid@LIBGUSB_0.1.0 0.1.0
g_usb_device_list_get_devices@LIBGUSB_0.1.0 0.1.0
g_usb_device_list_get_type@LIBGUSB_0.1.0 0.1.0
g_usb_device_list_new@LIBGUSB_0.1.0 0.1.0
g_usb_device_open@LIBGUSB_0.1.0 0.1.0
g_usb_device_release_interface@LIBGUSB_0.1.0 0.1.0
g_usb_device_reset@LIBGUSB_0.1.0 0.1.0
g_usb_device_set_configuration@LIBGUSB_0.1.0 0.1.0
g_usb_device_set_interface_alt@LIBGUSB_0.1.0 0.2.8
g_usb_endpoint_get_address@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_direction@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_extra@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_kind@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_maximum_packet_size@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_number@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_polling_interval@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_refresh@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_synch_address@LIBGUSB_0.3.3 0.3.3
g_usb_endpoint_get_type@LIBGUSB_0.3.3 0.3.3
g_usb_interface_get_alternate@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_class@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_endpoints@LIBGUSB_0.3.3 0.3.3
g_usb_interface_get_extra@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_index@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_kind@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_length@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_number@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_protocol@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_subclass@LIBGUSB_0.1.0 0.2.8
g_usb_interface_get_type@LIBGUSB_0.1.0 0.2.8
g_usb_source_error_quark@LIBGUSB_0.1.0 0.1.0
g_usb_source_set_callback@LIBGUSB_0.1.0 0.1.0
g_usb_strerror@LIBGUSB_0.1.0 0.1.0
g_usb_version_string@LIBGUSB_0.3.1 0.3.1

View File

@ -0,0 +1,47 @@
From: Simon McVittie <smcv@debian.org>
Date: Wed, 4 Mar 2020 10:21:37 +0000
Subject: generate-version-script: Don't skip methods on plain structs
This resulted in losing g_usb_source_set_callback@LIBGUSB_0.1.0 from
the ABI in version 0.3.4.
Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://github.com/hughsie/libgusb/pull/31
---
contrib/generate-version-script.py | 7 ++++---
gusb/libgusb.ver | 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
--- a/contrib/generate-version-script.py
+++ b/contrib/generate-version-script.py
@@ -50,9 +50,6 @@ class LdVersionScript:
# choose the lowest version method for the _get_type symbol
version_lowest = None
- if '{http://www.gtk.org/introspection/glib/1.0}get-type' not in cls.attrib:
- return
- type_name = cls.attrib['{http://www.gtk.org/introspection/glib/1.0}get-type']
# add all class methods
for node in cls.findall(XMLNS + 'method'):
@@ -68,6 +65,10 @@ class LdVersionScript:
if not version_lowest or version_tmp < version_lowest:
version_lowest = version_tmp
+ if '{http://www.gtk.org/introspection/glib/1.0}get-type' not in cls.attrib:
+ return
+ type_name = cls.attrib['{http://www.gtk.org/introspection/glib/1.0}get-type']
+
# finally add the get_type symbol
if version_lowest:
self.releases[version_lowest].append(type_name)
--- a/gusb/libgusb.ver
+++ b/gusb/libgusb.ver
@@ -40,6 +40,7 @@ LIBGUSB_0.1.0 {
g_usb_device_reset;
g_usb_device_set_configuration;
g_usb_source_error_quark;
+ g_usb_source_set_callback;
g_usb_strerror;
# LIBGUSB_0.2.5
g_usb_context_get_main_context;

84
debian/patches/revert-versioning.patch vendored Normal file
View File

@ -0,0 +1,84 @@
Subject: Revert versioning changes
From: Michal Čihař <michal@cihar.com>
Upstream commit
https://github.com/hughsie/libgusb/commit/cfaab3e523c11800b6d77c1d10ce0c71799a4482
has changed versions for symbols which were already made public in previous
release. This patch reverts it so that the ABI doesn't change between 0.2.9 and 0.2.10.
This patch should be temporary until resolved upstream:
https://github.com/hughsie/libgusb/issues/9
--- a/gusb/libgusb.ver
+++ b/gusb/libgusb.ver
@@ -41,6 +41,26 @@ LIBGUSB_0.1.0 {
g_usb_device_set_configuration;
g_usb_source_error_quark;
g_usb_strerror;
+# LIBGUSB_0.2.5
+ g_usb_context_get_main_context;
+ g_usb_context_set_main_context;
+# LIBGUSB_0.2.8
+ g_usb_device_get_interface;
+ g_usb_device_get_interfaces;
+ g_usb_device_get_release;
+ g_usb_device_set_interface_alt;
+ g_usb_interface_get_alternate;
+ g_usb_interface_get_class;
+ g_usb_interface_get_extra;
+ g_usb_interface_get_index;
+ g_usb_interface_get_kind;
+ g_usb_interface_get_length;
+ g_usb_interface_get_number;
+ g_usb_interface_get_protocol;
+ g_usb_interface_get_subclass;
+ g_usb_interface_get_type;
+# LIBGUSB_0.2.9
+ g_usb_context_wait_for_replug;
local: *;
};
@@ -80,43 +100,16 @@ LIBGUSB_0.2.4 {
LIBGUSB_0.2.5 {
global:
- g_usb_context_get_main_context;
- g_usb_context_set_main_context;
g_usb_device_get_custom_index;
local: *;
} LIBGUSB_0.2.4;
-LIBGUSB_0.2.8 {
- global:
- g_usb_device_get_interface;
- g_usb_device_get_interfaces;
- g_usb_device_get_release;
- g_usb_device_set_interface_alt;
- g_usb_interface_get_alternate;
- g_usb_interface_get_class;
- g_usb_interface_get_extra;
- g_usb_interface_get_index;
- g_usb_interface_get_kind;
- g_usb_interface_get_length;
- g_usb_interface_get_number;
- g_usb_interface_get_protocol;
- g_usb_interface_get_subclass;
- g_usb_interface_get_type;
- local: *;
-} LIBGUSB_0.2.5;
-
-LIBGUSB_0.2.9 {
- global:
- g_usb_context_wait_for_replug;
- local: *;
-} LIBGUSB_0.2.8;
-
LIBGUSB_0.2.11 {
global:
g_usb_context_get_flags;
g_usb_context_set_flags;
local: *;
-} LIBGUSB_0.2.9;
+} LIBGUSB_0.2.5;
LIBGUSB_0.3.1 {
global:

2
debian/patches/series vendored Normal file
View File

@ -0,0 +1,2 @@
revert-versioning.patch
generate-version-script-Don-t-skip-methods-on-plain-struc.patch

27
debian/rules vendored Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
override_dh_missing:
dh_missing --fail-missing
override_dh_installchangelogs:
dh_installchangelogs NEWS
override_dh_auto_test:
# dh_auto_test
echo "Skipping tests as they fail in build environment due to USB bus not available"
override_dh_auto_configure:
dh_auto_configure -- -Dusb_ids=/usr/share/misc/usb.ids
%:
dh $@ --with gir

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
version=3
https://people.freedesktop.org/~hughsient/releases/ libgusb-(.*)\.tar\.xz