Source: dpkg
Severity: wishlist
Tags: upstream

Just to see what trickery I could get away with, I tried cross building dpkg
with MinGW. It fails due to lchown being missing, but it seems like this is
one of the only functions that dpkg dies on not finding:
AC_CHECK_FUNCS([memcpy lchown],
  [], [AC_MSG_ERROR([missing required function])])

I notice there's precedent for incorporating something into libcompat,
which actually looks a lot like Gnulib. From the outside it looks like
reinventing the wheel and I'm curious about that, but either way Gnulib
has a module that may help portability on other platforms.

It appears it just dies with ENOSYS on MinGW, at least for now, but I'll
take it :)
https://www.gnu.org/software/gnulib/manual/html_node/lchown.html

If you wish to avoid embedded code copies, the Gnulib Debian package has it.
Otherwise a similar libcompat function that dies might still be fun to try,
and if it bears serious consequences perhaps a flag could be required to
enable.

-- Package-specific info:
System tainted due to merged-usr-via-symlinks.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (2, 'unstable'), (1, 'testing-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-4-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_USER, TAINT_WARN, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

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

Reply via email to