URL:
<http://savannah.nongnu.org/bugs/?30701>
Summary: Perl plugin doesn't compile with OSX system Perl
Project: WeeChat
Submitted by: None
Submitted on: Sun 08 Aug 2010 09:41:45 PM UTC
Category: compilation
Severity: 3 - Normal
Item Group: compile/install
Status: None
Privacy: Public
Assigned to: None
Originator Name: Specimen
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
Release: 0.3.3
IRC nick: Specimen
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?30701>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev