2014-05-30 14:37 GMT+01:00 Jakub Wilk <[email protected]>:

> * Ghislain Vaillant <[email protected]>, 2014-05-30, 09:44:
>
>  Now say I want to rename the -foo suffix into -bar for both package
>> python-foo and python-foo-dbg. The debian developer's reference suggests to
>> Conflicts/Replaces/Provides the old name and change the name of the package
>> to the new name in the corresponding d/control entries. I tried it and it
>> worked well for python-foo to python-bar. However, dpkg does not handle the
>> transition from python-foo-dbg to python-bar-dbg properly. You can find
>> more information about the dpkg commands and modifications to d/control of
>> the package in the original post linked above.
>>
>
> The modifications you made look all right too me:
>
> Package: python-pyfftw-dbg
> Architecture: any
> Priority: extra
> Section: debug
> Depends:
> ${misc:Depends},
> ${python:Depends},
> ${shlibs:Depends},
> python-pyfftw (= ${binary:Version})
> Recommends:
> python-dbg,
> python-numpy-dbg
> Provides: python-fftw3-dbg
> Conflicts: python-fftw3-dbg
> Replaces: python-fftw3-dbg
>
> We probably need more information about this. You only wrote that "dpkg
> fails to perform the upgrade". But what exactly did you do, and how did it
> fail?
>
> --
> Jakub Wilk
>
>
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact
> [email protected]
> Archive: https://lists.debian.org/[email protected]
>
>

Basically, if I install python-fftw3 and call `dpkg -i python-pyfftw.deb`,
then dpkg figures out the replacement, uninstall python-fftw3 and configure
and install python-pyfftw.

If I install python-fftw3-dbg, and python-fftw3 automatically as a result
the dependency, then `dpkg -i python-pyfftw.deb python-pyfftw-dbg.deb` does
figure out the replacement of the -dbg package but fails on the main
package. Then calling the same command a second time, dpkg works out the
replacement of the main package. So essentially, I need to first call `dpkg
-i` on the -dbg package and then call it a second time on the main package

I would expect dpkg to be smart and figure out that both the -dbg and main
package should be replaced at once, and though this was not happening
because something is wrong in my d/control. Maybe this is beyond dpkg's job
and apt or aptitude would handle that just fine.

Thoughts ?

Ghis

Reply via email to