Skip to content

Commit e0b4d50

Browse files
committed
packaging/debian/CMakeLists.txt
- Set 'NOT_PRODUCT_SUFFIX' to be able to conflict between community and commercial package installs packaging/debian/control.in - Added "Conflicts:" between community and commercial package installs - Changed "Depends:" to use mysql-connector-odbc@PRODUCT_SUFFIX@ - Corrected placement of @PRODUCT_SUFFIX@
1 parent ed03fe1 commit e0b4d50

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

packaging/debian/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ option(COMMUNITY_BUILD "Set to true if this is a community build" ON)
5959

6060
if(NOT COMMUNITY_BUILD)
6161
set(PRODUCT_SUFFIX "-commercial")
62+
set(NOT_PRODUCT_SUFFIX "")
6263
set(VERSION "${CONNECTOR_VERSION}+commercial-${DEBIAN_REVISION}")
6364
else()
6465
set(PRODUCT_SUFFIX "")
66+
set(NOT_PRODUCT_SUFFIX "-commercial")
6567
set(VERSION "${CONNECTOR_VERSION}-${DEBIAN_REVISION}")
6668
endif()
6769

packaging/debian/control.in

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Architecture: any
1717
Multi-Arch: same
1818
Depends: ${misc:Depends}, ${shlibs:Depends}
1919
Recommends: libodbc1 | libiodbc2
20+
Conflicts: mysql-connector-odbc@NOT_PRODUCT_SUFFIX@
2021
Breaks: libiodbc2 (<< 3.52.7-2~),
2122
odbcinst1debian2 (<< 2.2.14p2-3),
2223
unixodbc (<< 2.2.14p2-3)
@@ -26,25 +27,27 @@ Description: MySQL ODBC driver
2627
understood by a variety of database tools that cannot talk to MySQL
2728
databases directly.
2829

29-
Package: mysql-connector-odbc-test@PRODUCT_SUFFIX@
30+
Package: mysql-connector-odbc@PRODUCT_SUFFIX@-test
3031
Section: libs
3132
Architecture: any
3233
Multi-Arch: same
33-
Depends: mysql-connector-odbc (= ${binary:Version}),
34+
Depends: mysql-connector-odbc@PRODUCT_SUFFIX@ (= ${binary:Version}),
3435
${misc:Depends},
3536
${shlibs:Depends}
37+
Conflicts: mysql-connector-odbc@NOT_PRODUCT_SUFFIX@-test
3638
Description: MySQL ODBC driver test files
3739
This package installs a tool "dltest" and some executables to
3840
test the MySQL ODBC driver.
3941

40-
Package: mysql-connector-odbc-setup@PRODUCT_SUFFIX@
42+
Package: mysql-connector-odbc@PRODUCT_SUFFIX@-setup
4143
Section: libs
4244
Architecture: any
4345
Multi-Arch: same
4446
Depends: libgtk2.0-0 (>= 2.20.1),
45-
mysql-connector-odbc (= ${binary:Version}),
47+
mysql-connector-odbc@PRODUCT_SUFFIX@ (= ${binary:Version}),
4648
${misc:Depends},
4749
${shlibs:Depends}
50+
Conflicts: mysql-connector-odbc@NOT_PRODUCT_SUFFIX@-setup
4851
Description: MySQL ODBC driver setup GUI
4952
This package allows you use a graphical interface to specify
5053
This package is the setup library for the MySQL ODBC package, it

0 commit comments

Comments
 (0)