Skip to content

Commit 457a6fc

Browse files
committed
Deb packaging: Add dbgsym packages for Ubuntu 16.04
Most Debian/Ubuntu platforms automatically generate debug symbol packages, but for Ubuntu 16.04 we have to do it manually
1 parent 394a798 commit 457a6fc

File tree

5 files changed

+75
-0
lines changed

5 files changed

+75
-0
lines changed

packaging/deb-in/CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,27 @@ ELSEIF(DEB_CODENAME STREQUAL "sid")
6666
SET (DEB_PLATFORMRELEASE "debianunstable")
6767
ELSEIF(DEB_CODENAME STREQUAL "xenial")
6868
SET (DEB_PLATFORMRELEASE "ubuntu16.04")
69+
# Generate debug symbol packages (this is done automatically in Debian9+)
70+
SET (DEB_RULES_STRIP
71+
"
72+
override_dh_strip:
73+
dh_strip -plibmysqlcppconn7 --dbg-package=libmysqlcppconn7-dbgsym
74+
dh_strip -plibmysqlcppconn8-2 --dbg-package=libmysqlcppconn8-2-dbgsym
75+
")
76+
SET (DEB_CONTROL_DBGSYM
77+
"
78+
Package: libmysqlcppconn7-dbgsym
79+
Architecture: any
80+
Section: debug
81+
Depends: libmysqlcppconn7 (=\${binary:Version}), \${misc:Depends}
82+
Description: Debugging symbols for compat library
83+
84+
Package: libmysqlcppconn8-2-dbgsym
85+
Architecture: any
86+
Section: debug
87+
Depends: libmysqlcppconn8-2 (= \${binary:Version}), \${misc:Depends}
88+
Description: Debugging symbols for main library
89+
")
6990
ELSEIF(DEB_CODENAME STREQUAL "bionic")
7091
SET (DEB_PLATFORMRELEASE "ubuntu18.04")
7192
ELSEIF(DEB_CODENAME STREQUAL "cosmic")

packaging/deb-in/control.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ Depends: libmysqlcppconn@JDBC_ABI_VERSION_MAJOR@ (= ${binary:Version}), libmysql
3535
Description: Development header files and libraries for MySQL C++ client applications
3636
This package contains the development header files and libraries necessary
3737
to develop MySQL client applications in C++.
38+
39+
@DEB_CONTROL_DBGSYM@
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License, version 2.0,
5+
# as published by the Free Software Foundation.
6+
#
7+
# This program is also distributed with certain software (including
8+
# but not limited to OpenSSL) that is licensed under separate terms,
9+
# as designated in a particular file or component or in included license
10+
# documentation. The authors of MySQL hereby grant you an additional
11+
# permission to link the program and your derivative works with the
12+
# separately licensed software that they have included with MySQL.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU General Public License, version 2.0, for more details.
18+
#
19+
# You should have received a copy of the GNU General Public License
20+
# along with this program; if not, write to the Free Software
21+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22+
23+
# Legal
24+
usr/LICENSE.txt /usr/share/doc/libmysqlcppconn7-dbgsym
25+
usr/README.txt /usr/share/doc/libmysqlcppconn7-dbgsym
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
#
3+
# This program is free software; you can redistribute it and/or modify
4+
# it under the terms of the GNU General Public License, version 2.0,
5+
# as published by the Free Software Foundation.
6+
#
7+
# This program is also distributed with certain software (including
8+
# but not limited to OpenSSL) that is licensed under separate terms,
9+
# as designated in a particular file or component or in included license
10+
# documentation. The authors of MySQL hereby grant you an additional
11+
# permission to link the program and your derivative works with the
12+
# separately licensed software that they have included with MySQL.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU General Public License, version 2.0, for more details.
18+
#
19+
# You should have received a copy of the GNU General Public License
20+
# along with this program; if not, write to the Free Software
21+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22+
23+
# Legal
24+
usr/LICENSE.txt /usr/share/doc/libmysqlcppconn8-2-dbgsym
25+
usr/README.txt /usr/share/doc/libmysqlcppconn8-2-dbgsym

packaging/deb-in/rules.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ override_dh_auto_test:
6969
make test || true
7070
touch $@
7171

72+
@DEB_RULES_STRIP@
73+
7274
override_dh_auto_install:
7375

7476
@echo "RULES.$@"

0 commit comments

Comments
 (0)