Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: lua-dbi

lua-dbi (0.7.2-1ubuntu1) eoan; urgency=medium * Adjustments to allow build against MySQL 8.0 to fix FTBFS. -- Robie Basak <robie.basak@ubuntu.com> Tue, 16 Jul 2019 10:19:30 +0000

Modifications :
  1. Download patch debian/patches/mysql-8.0

    --- 0.7.2-1/debian/patches/mysql-8.0 1970-01-01 00:00:00.000000000 +0000 +++ 0.7.2-1ubuntu1/debian/patches/mysql-8.0 2019-07-16 10:19:30.000000000 +0000 @@ -0,0 +1,78 @@ +Description: Fix build against MySQL 8.0 + Use NULL instead of casting 0 to specific pointer types since the actual type + of is_null differs based on the version and variant in use now. This allows + the build to succeed against all current versions. + . + Use MYSQL_TIME as that's the actual API, unlike struct st_mysql_time which is + internal and is no longer available in MySQL 8. +Author: Robie Basak <robie.basak@canonical.com> +Origin: vendor +Forwarded: no +X-Not-Forwarded-Reason: work still in progress +Last-Update: 2018-07-16 + +--- a/dbd/mysql/statement.c ++++ b/dbd/mysql/statement.c +@@ -218,7 +218,7 @@ + switch(type) { + case LUA_TNIL: + bind[i].buffer_type = MYSQL_TYPE_NULL; +- bind[i].is_null = (int*)1; ++ bind[i].is_null = NULL; + break; + + case LUA_TBOOLEAN: +@@ -227,7 +227,7 @@ + *boolean = lua_toboolean(L, p); + + bind[i].buffer_type = MYSQL_TYPE_LONG; +- bind[i].is_null = (int*)0; ++ bind[i].is_null = NULL; + bind[i].buffer = (char *)boolean; + bind[i].length = 0; + break; +@@ -242,7 +242,7 @@ + *num = lua_tonumber(L, p); + + bind[i].buffer_type = MYSQL_TYPE_DOUBLE; +- bind[i].is_null = (int*)0; ++ bind[i].is_null = NULL; + bind[i].buffer = (char *)num; + bind[i].length = 0; + break; +@@ -253,7 +253,7 @@ + str = lua_tolstring(L, p, str_len); + + bind[i].buffer_type = MYSQL_TYPE_STRING; +- bind[i].is_null = (int*)0; ++ bind[i].is_null = NULL; + bind[i].buffer = (char *)str; + bind[i].length = str_len; + break; +@@ -424,7 +424,7 @@ + + if (fields[i].type == MYSQL_TYPE_TIMESTAMP || fields[i].type == MYSQL_TYPE_DATETIME) { + char str[20]; +- struct st_mysql_time *t = bind[i].buffer; ++ MYSQL_TIME *t = bind[i].buffer; + + snprintf(str, 20, "%d-%02d-%02d %02d:%02d:%02d", t->year, t->month, t->day, t->hour, t->minute, t->second); + +@@ -435,7 +435,7 @@ + } + } else if (fields[i].type == MYSQL_TYPE_TIME) { + char str[9]; +- struct st_mysql_time *t = bind[i].buffer; ++ MYSQL_TIME *t = bind[i].buffer; + + snprintf(str, 9, "%02d:%02d:%02d", t->hour, t->minute, t->second); + +@@ -446,7 +446,7 @@ + } + } else if (fields[i].type == MYSQL_TYPE_DATE) { + char str[20]; +- struct st_mysql_time *t = bind[i].buffer; ++ MYSQL_TIME *t = bind[i].buffer; + + snprintf(str, 11, "%d-%02d-%02d", t->year, t->month, t->day); +
  2. Download patch debian/control

    --- 0.7.2-1/debian/control 2019-05-21 10:35:55.000000000 +0000 +++ 0.7.2-1ubuntu1/debian/control 2019-07-16 10:19:30.000000000 +0000 @@ -1,7 +1,8 @@ Source: lua-dbi Section: interpreters Priority: optional -Maintainer: Enrico Tassi <gareuselesinge@debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Enrico Tassi <gareuselesinge@debian.org> Uploaders: Victor Seva <vseva@debian.org>, Build-Depends:
  3. Download patch debian/patches/series

    --- 0.7.2-1/debian/patches/series 2019-05-21 10:35:55.000000000 +0000 +++ 0.7.2-1ubuntu1/debian/patches/series 2019-07-16 10:19:30.000000000 +0000 @@ -1,3 +1,4 @@ # upstream # test.patch +mysql-8.0
  1. lua-dbi