Opened 10 months ago

#2133 new defect do not detect multi-arch correctly

Reported by: Roland Haas Owned by:
Priority: minor Milestone:
Component: Cactus Version: development version
Keywords: Cc:


Currently uses MACHINE:=`gcc -dumpmachine` to try and detect the multi-arch designation. This however is not correct as shown on the Debian wiki:

In a nutshell -dumpmachine is too specific for intel 386 CPUs and not specific enough for ARM cpus.

Instead one should try the two official ways listed on the wiki followed by the current one as a (not strictly correct but often working namely for the currently common x86_64-linux-gnu) fallback on old systems (gcc older than 4.9):

MACHINE:=$(dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || gcc -print-multiarch 2>/dev/null || gcc -dumpmachine 2>/dev/null)

where the last one is just a fallback that may work often but really is not official.

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from (none) to the specified user.
Next status will be 'confirmed'.
The owner will be changed from (none) to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.