bugGNU Screen - Bugs: bug #43223, Patches for cross-compilation...

 
 

bug #43223: Patches for cross-compilation support

Submitted by:  Maarten ter Huurne <maartenth>
Submitted on:  Mon 15 Sep 2014 02:17:52 AM UTC  
 
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.2.1
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 07 Aug 2015 12:43:16 PM UTC, comment #1:

As a followup after 4.3.1 release: this patchset still applies and works with small changes (patch configure.ac instead of configure.in, disable one more AC_TRY_RUN, etc). Thanks Maarten, your work saved quite a bit of time for me.

I'll try to attach the modified patches.

(file #34586, file #34587, file #34588, file #34589)

Jussi Kukkonen <jku>
Mon 15 Sep 2014 02:17:52 AM UTC, original submission:

To be able to cross-compile Screen, two restrictions must be applied to configure script:
- no compiled programs can be run, since they are probably for an incompatible architecture
- no information about the host file system must be used, since that information is not representative of the target

I modified the configure script (configure.in) to take these restrictions into account, see attached patches. I tried to provide sensible defaults for the information that can not be probed when cross-compiling.

Patch 0005 will also affect native builds, but I think it is for the better if Linux is not identified as SVR4. ;)

Note that patch 0003 relies on earlier patches being applied: there are AC_TRY_RUN instances removed by patch 0001 (see bug 43222) and patch 0002 (this bug). If for some reason you don't want to apply those patches, a cross-compile argument would have to be added to those AC_TRY_RUN instances in patch 0003.

Maarten ter Huurne <maartenth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #34586:  Remove-redundant-compiler-sanity-checks.patch added by jku (2KiB - text/x-patch - Maartens patchset updated for 4.3.1)
file #34587:  Skip-host-file-system-checks-when-cross-compiling.patch added by jku (4KiB - text/x-patch - Maartens patchset updated for 4.3.1)
file #34588:  Provide-cross-compile-alternatives-for-AC_TRY_RUN.patch added by jku (4KiB - text/x-patch - Maartens patchset updated for 4.3.1)
file #34589:  Avoid-mis-identifying-systems-as-SVR4.patch added by jku (2KiB - text/x-patch - Maartens patchset updated for 4.3.1)
file #32097:  0002-Removed-redundant-compiler-sanity-checks.patch added by maartenth (2KiB - application/octet-stream - git formatted patches)
file #32098:  0004-When-cross-compiling-skip-checks-that-look-in-the-ho.patch added by maartenth (4KiB - application/octet-stream - git formatted patches)
file #32099:  0003-Provide-cross-compilation-alternatives-for-all-AC_TR.patch added by maartenth (4KiB - application/octet-stream - git formatted patches)
file #32100:  0005-Avoid-mis-identifying-systems-as-SVR4.patch added by maartenth (2KiB - application/octet-stream - git formatted patches)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jku (Updated the item)
  • -unavailable- added by maartenth (Submitted the item)
  • -unavailable- added by maartenth
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 07 Aug 2015 12:43:16 PM UTCjkuAttached File-=>Added Remove-redundant-compiler-sanity-checks.patch, #34586
      Attached File-=>Added Skip-host-file-system-checks-when-cross-compiling.patch, #34587
      Attached File-=>Added Provide-cross-compile-alternatives-for-AC_TRY_RUN.patch, #34588
      Attached File-=>Added Avoid-mis-identifying-systems-as-SVR4.patch, #34589
    Mon 15 Sep 2014 02:17:52 AM UTCmaartenthAttached File-=>Added 0002-Removed-redundant-compiler-sanity-checks.patch, #32097
      Attached File-=>Added 0004-When-cross-compiling-skip-checks-that-look-in-the-ho.patch, #32098
      Attached File-=>Added 0003-Provide-cross-compilation-alternatives-for-all-AC_TR.patch, #32099
      Attached File-=>Added 0005-Avoid-mis-identifying-systems-as-SVR4.patch, #32100
      Carbon-Copy-=>Added maartenth

    Back to the top


    Powered by Savane 3.1-cleanup1