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

Re: Determine DEB_HOST_MULTIARCH without requiring dpkg-dev



* Michael Wild <themiwi@gmail.com>, 2012-07-25, 11:50:
How can I reliably (from a user-program) determine the multiarch-triplet/quadlet without depending on dpkg-dev? I found some talk of a lsb_architecture utility, but so far have found no trace of it...

# gcc -print-multiarch
x86_64-linux-gnu

That's definitely better, but still not optimal since I don't want to require gcc either ;-)

Not only suboptimal, but most likely also wrong. :)

The whole idea of multi-arch is that you can have packages of different architectures installed on a single system. So there's no single "DEB_HOST_MULTIARCH" you could query at run-time.

Perhaps if you explained what exactly you're trying to do, I could give you a better answer. :)


p.s. Not subscribed.

--
Jakub Wilk


Reply to: