Skip to contentSkip to conversation

configure patch for cross compilation

DISCUSSION Applied Paul Bender 2 participants 4 messages Jun 2, 2010

lore
Share & tools
lore
#0 lore raw

The message asking about cross compilation reminded me that I have a patch that is needed for cross compilation. Because autoconf's AC_CHECK_FILE fails when cross compiling, it use in location the pci.ids file needs to be surrounded in a conditional. Otherwise, the configure script never allows the --with-pci-ids-path to be used.

The patch adds informational messages related to checking for the pci.ids file.

#1 lore raw
Quoted 5 lines · Paul Bender

The message asking about cross compilation reminded me that I have a patch that is needed for cross compilation. Because autoconf's AC_CHECK_FILE fails when cross compiling, it use in location the pci.ids file needs to be surrounded in a conditional. Otherwise, the configure script never allows the --with-pci-ids-path to be used.

Why would that fail? There are 3 test in a row, two of them are expected to always fail. If all of them will fail, if you must specify the thing on the commandline. That seems to work fine here.

And please never send compressed patches, especially not when the patch is 2 kb in size. :)

Kay

#2 lore raw
In reply to Paul Bender
Quoted 10 lines · Kay Sievers
Quoted 5 lines · Paul Bender

The message asking about cross compilation reminded me that I have a patch that is needed for cross compilation. Because autoconf's AC_CHECK_FILE fails when cross compiling, it use in location the pci.ids file needs to be surrounded in a conditional. Otherwise, the configure script never allows the --with-pci-ids-path to be used.

Why would that fail? There are 3 test in a row, two of them are expected to always fail. If all of them will fail, if you must specify the thing on the commandline. That seems to work fine here.

I should not have used the term 'fail'. Rather, I should have used the term 'die'. The AC_CHECK_FILE macro checks to see whether or not the package is being cross compiled. If it is, then then it dies, causing the configure script to stop.

Quoted 2 lines

And please never send compressed patches, especially not when the patch is 2 kb in size. :)

No problem, I will try to remember in the future. Some mailing lists prefer compressing patches because of the mangling that some mail list archiving software does to text attachments. I have trouble keeping track of which list prefers which format.

Applied
#3 lore raw
In reply to Paul Bender
Quoted 5 lines · Paul Bender
Quoted 4 lines · Kay Sievers
Quoted 3 lines

when cross compiling, it use in location the pci.ids file needs to be surrounded in a conditional. Otherwise, the configure script never allows the --with-pci-ids-path to be used.

Quoted 8 lines
Quoted 3 lines

Why would that fail? There are 3 test in a row, two of them are expected to always fail. If all of them will fail, if you must specify the thing on the commandline. That seems to work fine here.

I should not have used the term 'fail'. Rather, I should have used the term 'die'. The AC_CHECK_FILE macro checks to see whether or not the package is being cross compiled. If it is, then then it dies, causing the configure script to stop.

Ah, great. It's a feature. :)

Applied. Thanks,
Kay