bugWeeChat - Bugs: bug #30701, Perl plugin doesn't compile with...

 
 

bug #30701: Perl plugin doesn't compile with OSX system Perl

Submitter:  None
Submitted:  Sun 08 Aug 2010 09:41:45 PM UTC
   
 
Category:  compilation Severity:  3 - Normal
Item Group:  compile/install Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Specimen Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.3.3
IRC nick:  Specimen
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 07 Apr 2012 09:32:42 AM UTC, comment #4: 

Fixed, feedback is welcome (I don't have OS X so I'm unable to test the fix).

Sebastien Helleu <flashcode>
Group administrator
Fri 06 Apr 2012 12:28:59 PM UTC, comment #3: 
Sebastien Helleu <flashcode>
Group administrator
Sun 18 Mar 2012 11:39:59 AM UTC, comment #2: 

Is is still a problem today?

Sebastien Helleu <flashcode>
Group administrator
Sun 08 Aug 2010 09:45:46 PM UTC, comment #1: 

Sorry, the site for Homebrew is: http://mxcl.github.com/homebrew/

Anonymous
Sun 08 Aug 2010 09:41:45 PM UTC, original submission:  

Context: Using Homebrew ( http://github.com/ashb/homebrew ), a popular package manager for OSX that uses the tools OSX already comes with to install Weechat (unlike Macports that duplicates everything).

Bug: Perl plugin fails to compile.

Cause: OSX System Perl is a fat binary with 32,64 and PPC compiles but our dependencies don't have that.

Fix:
ashb at #machomebrew found the cause and fixed the problem here via a patch in the package manager:
http://github.com/ashb/homebrew/commit/1b7f0b5cc0eeb62e7ccc23b22a66954f16d117d1


Possible fix for weechat:

In: src/plugins/scripts/perl/CMakeLists.txt

Add after 'IF(PERL_FOUND)':

STRING(REGEX REPLACE "-arch i386|-arch ppc|-arch x86_64" "" PERL_CFLAGS "${PERL_CFLAGS"})
STRING(REGEX REPLACE "-arch i386|-arch ppc|-arch x86_64" "" PERL_LFLAGS "${PERL_LFLAGS"})

This fix should probably be inside a psecific OSX block.

ashb also suggested for weechat dev to:
1) in FindPerl.cmake, and 2) inside an IF(APPLE) block

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-06-03 flashcode Open/ClosedOpen Closed
    2012-04-07 flashcode StatusConfirmed Fixed
    2012-04-06 flashcode StatusNeed Info Confirmed
    2012-03-18 flashcode StatusNone Need Info
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code