xdeb-org / xdeb

XDEB - Convert deb (Debian) packages to xbps (Void Linux)
MIT License
322 stars 16 forks source link

unmatched arch #2

Closed anjandev closed 4 years ago

anjandev commented 4 years ago

Certain packages like the brother generic driver only has an i386 version . As such, when I try making a package from it, I get the following error:

[+] Created Package
index: ignoring mfcl2700dwcupswrapper-3.2.0_1, unmatched arch (i386)
index: ignoring mfcl2700dwlpr-3.2.0_1, unmatched arch (i386)
index: 0 packages registered.

When you install the package on a 64 bit debian based computer, brother tells you to use the --force option with dpkg to ignore this mismatch of archs (source). Indeed, even after ignoring this mismatch of archs, the program works provided you have the correct multilib dependencies installed (see installation instructions from brother for the dependencies). I just installed dpkg on void and used brother's instructions. I understand how dangerous that is but I spent alot of time trying to fix it the proper way. The ideal solution would be having an option to ignore mismatching archs.

This program is great because it allows us to archive older programs that only have a .deb. However, alot of these older .deb programs only work with i386. As such it is wise to add this option.

toluschr commented 4 years ago

I would just add another option (--arch) to manually set the arch, as the official multilib repository adds a -32bit suffix and does the same.

Tell me if you are ok with this change.

anjandev commented 4 years ago

Ya, that sounds great! I'll be happy to test this change.

Thanks