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

Bug#919298: libreoffice-mysql-connector: fails to upgrade from sid: dpkg-maintscript-helper errors out



tag 919298 - pending
thanks

Hi,


On Mon, Jan 14, 2019 at 07:35:53PM +0100, Andreas Beckmann wrote:
> during a test with piuparts I noticed your package fails to upgrade from
> 'sid' to 'experimental'.
> 
> >From the attached log (scroll to the bottom...):
> 
>   Preparing to unpack .../7-libreoffice-mysql-connector_1%3a6.2.0~rc2-1_all.deb ...
>   dpkg-query: no packages found matching $DPKG_MAINTSCRIPT_PACKAGE
>   dpkg-query: error: --listfiles needs a valid package name but '$DPKG_MAINTSCRIPT_PACKAGE' is not: illegal package name in specifier '$DPKG_MAINTSCRIPT_PACKAGE': must start with an alphanumeric character
>   
>   Use --help for help about querying packages.
>   dpkg-maintscript-helper: error: file '/usr/share/doc/libreoffice-mysql-connector' not owned by package '$DPKG_MAINTSCRIPT_PACKAGE'
>   dpkg-query: error: --listfiles needs a valid package name but '$DPKG_MAINTSCRIPT_PACKAGE' is not: illegal package name in specifier '$DPKG_MAINTSCRIPT_PACKAGE': must start with an alphanumeric character
>   
>   Use --help for help about querying packages.
>   dpkg-maintscript-helper: error: file '/usr/share/doc/libreoffice-mysql-connector/copyright' not owned by package '$DPKG_MAINTSCRIPT_PACKAGE'
>   dpkg-query: error: --listfiles needs a valid package name but '$DPKG_MAINTSCRIPT_PACKAGE' is not: illegal package name in specifier '$DPKG_MAINTSCRIPT_PACKAGE': must start with an alphanumeric character
>   
>   Use --help for help about querying packages.
>   dpkg-maintscript-helper: error: file '/usr/share/doc/libreoffice-mysql-connector/changelog.Debian.gz' not owned by package '$DPKG_MAINTSCRIPT_PACKAGE'
>   dpkg-query: error: --listfiles needs a valid package name but '$DPKG_MAINTSCRIPT_PACKAGE' is not: illegal package name in specifier '$DPKG_MAINTSCRIPT_PACKAGE': must start with an alphanumeric character
>   
>   Use --help for help about querying packages.
>   dpkg-maintscript-helper: error: file '/usr/share/doc/libreoffice-mysql-connector/changelog.Debian.amd64.gz' not owned by package '$DPKG_MAINTSCRIPT_PACKAGE'
>   dpkg-maintscript-helper: error: directory '/usr/share/doc/libreoffice-mysql-connector' contains files not owned by package $DPKG_MAINTSCRIPT_PACKAGE, cannot switch to symlink
>   dpkg: error processing archive /tmp/apt-dpkg-install-w3OdOs/7-libreoffice-mysql-connector_1%3a6.2.0~rc2-1_all.deb (--unpack):
>    new libreoffice-mysql-connector package pre-installation script subprocess returned error exit status 1
>   Errors were encountered while processing:
>    /tmp/apt-dpkg-install-w3OdOs/7-libreoffice-mysql-connector_1%3a6.2.0~rc2-1_all.deb
> 
> 
> Without looking at the code I'd suspect you have a redundant

There's no code (except maybe in dh), just a .maintscript:

$ cat libreoffice-mysql-connector.maintscript
dir_to_symlink /usr/share/doc/libreoffice-mysql-connector
/usr/share/doc/libreoffice-common 1:6.2.0~alpha-1

Which was added after your http://bugs.debian.org/915019 ... :(

>   $DPKG_MAINTSCRIPT_PACKAGE
> in libreoffice-mysql-connector.maintscript. Current debhelper compat
> levels properly escape the '$' character.

No, that may be the cause of this exact instance, but after removing that one it still fails.

Preparing to unpack .../11-libreoffice-mysql-connector_6.2.0~rc3-1_all.deb ...
dpkg-query: no packages found matching libreoffice-mysql-connector:all
dpkg-query: package 'libreoffice-mysql-connector' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
dpkg-maintscript-helper: error: file '/usr/share/doc/libreoffice-mysql-connector' not owned by package 'libreoffice-mysql-connector:all'
dpkg-query: package 'libreoffice-mysql-connector' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
dpkg-maintscript-helper: error: file '/usr/share/doc/libreoffice-mysql-connector/changelog.Debian.gz' not owned by package 'libreoffice-mysql-connector:all'
dpkg-query: package 'libreoffice-mysql-connector' is not installed
Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
dpkg-maintscript-helper: error: file '/usr/share/doc/libreoffice-mysql-connector/copyright' not owned by package 'libreoffice-mysql-connector:all'
dpkg-maintscript-helper: error: directory '/usr/share/doc/libreoffice-mysql-connector' contains files not owned by package libreoffice-mysql-connector:all, cannot switch to symlink
dpkg: error processing archive /tmp/apt-dpkg-install-Cmo0nn/11-libreoffice-mysql-connector_6.2.0~rc3-1_all.deb (--unpack):
 new libreoffice-mysql-connector package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /tmp/apt-dpkg-install-Cmo0nn/11-libreoffice-mysql-connector_6.2.0~rc3-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

the package changed any (well, arch-specific) to all (transitional package), maybe
that confuses dpkg-maintscript-helper? Any suggestion to get out of this?

Regards,

Rene


Reply to: