Hello,

> 
> libpcsclite-dev includes a Python 3 script: pcsc-spy. Hence the dependency on 
> python3.
> Since it is a Recommends: and not a Depends: you should be able to install 
> libpcsclite-dev:arm64 even if the dependency is not satisfied.
Ahh, that was the clue!
apt install --no-install-recommends works as expected:
   
   apt install libpcsclite-dev:arm64 --no-install-recommends 
   Reading package lists... Done
   Building dependency tree... Done
   Reading state information... Done
   The following additional packages will be installed:
     libpcsclite1:arm64
   Suggested packages:
     pcscd:arm64
   Recommended packages:
     python3:arm64
   The following NEW packages will be installed:
     libpcsclite-dev:arm64 libpcsclite1:arm64
   0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
   Need to get 135 kB of archives.
   After this operation, 312 kB of additional disk space will be used.
   Do you want to continue? [Y/n]

> But you will then have another problem since libpcsclite-dev and 
> libpcsclite-dev:arm64 will both try to install the same files:
> /usr/bin/pcsc-spy
> /usr/include/PCSC/debuglog.h
> /usr/include/PCSC/ifdhandler.h
> /usr/include/PCSC/pcsclite.h
> /usr/include/PCSC/reader.h
> /usr/include/PCSC/winscard.h
> /usr/include/PCSC/wintypes.h
> /usr/share/man/man1/pcsc-spy.1.gz
> 
> How do you propose to fix that?

You fix it by not fixing it. It is already fixed.
dpkg contains some magic that deals with it.
AFAIK, as long as the files are binary-identical between multiple architectures 
of the same packages, no conflict will occur.
Debian has some excellent multi-arch and cross compilation support!

From https://wiki.debian.org/Multiarch/Implementation:
> /!\ Note that any files in /usr/share or /etc must be byte-for-byte identical 
> across architectures, otherwise file conflicts will result! This means, in 
> particular, that any gzip-compressed files
> must be compressed with -n to avoid embedded timestamps. 
This seems to extend to other files, too.

To verify:
   dpkg -S /usr/include/PCSC/winscard.h
   libpcsclite-dev:armhf, libpcsclite-dev:i386, libpcsclite-dev:arm64, 
libpcsclite-dev:amd64: /usr/include/PCSC/winscard.h


The Recommends: was a bit unexpected as I thought it was a Depends:, so this 
one is not really a bug.
I was able to install the required packages now and compilation works :)
This one is not really a bug then.

Thanks a lot!

-- 
Mit freundlichen Grüßen / Best regards

Stephan Brunner

Matrix: @boomer41:boomer41.net
PGP: 5FB325E81E548282D458A65114A30C9CE3AE4CE2

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to