[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help needed to fix ruby-carrierware FTBFS



[adding pkg-mysql-maint]

On Monday 07 November 2016 06:51 PM, Scott Leggett wrote:
> On 2016-11-06.22:48, Pirate Praveen wrote:
>> With the recent upload of mysql-server 5.7, mysql_install_db is
>> deprecated, we are supposed to use mysqld --initialize.
>>
>> I tried replacing mysql_init_db with /usr/sbin/mysqld --initialize, but
>> the options are not a one to one map. Can anyone help with this?
>>
> 
> This patch seems to get it building (--no-defaults has to be the first
> argument):
> 
>   diff --git a/debian/start_mysqld_and_auto_install.sh b/debian/start_mysqld_and_auto_install.sh
>   index 93e5ff5..7090746 100755
>   --- a/debian/start_mysqld_and_auto_install.sh
>   +++ b/debian/start_mysqld_and_auto_install.sh
>   @@ -17,7 +17,7 @@ DO_MYSQL_PASS=
>    DO_MYSQL_DBNAME=carrierwave_test
>    DO_MYSQL_DATABASE=/${DO_MYSQL_DBNAME}
>    
>   -mysql_install_db --no-defaults --datadir=${MYTEMP_DIR} --force --skip-name-resolve --user=${DO_MYSQL_USER}
>   +/usr/sbin/mysqld --no-defaults --initialize-insecure --datadir=${MYTEMP_DIR} --skip-name-resolve --user=${DO_MYSQL_USER}
>    /usr/sbin/mysqld --no-defaults --user=${DO_MYSQL_USER} --socket=${MYSQL_UNIX_PORT} --datadir=${MYTEMP_DIR} --skip-networking &
>    echo -n pinging mysqld.
>    attempts=0

Thanks for figuring this out.

> But then lintian says:
> 
>   E: ruby-carrierwave source: build-depends-on-obsolete-package build-depends: mysql-server => default-mysql-server
> 
> I have no idea if that's the right solution for this package, and I
> couldn't get it building with default-mysql-server (which now pulls in
> mariadb-server-10.0)
> 

Hope someone from mysql maintainers team can help here.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: