bugWeeChat - Bugs: bug #38321, The charset plugin doesn't build...


bug #38321: The charset plugin doesn't build on OS X

Submitter:  None
Submitted:  Tue 12 Feb 2013 11:46:09 PM UTC
Category:  compilation Severity:  3 - Normal
Item Group:  compile/install Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Øyvind Ingebrigtsen Øvergaard Originator Email:  * -email is unavailable-
Open/Closed:  Closed Release:  * 0.4.0
IRC nick:  oyvindio
* Mandatory Fields

Add a New Comment Rich Markup

Thu 14 Feb 2013 01:43:00 PM UTC, comment #1: 

Thanks for the patch, committed.

Sebastien Helleu <flashcode>
Group administrator
Tue 12 Feb 2013 11:46:09 PM UTC, original submission:  

The charset plugin is not built on OS X because cmake thinks libiconv isn't available, which it is (on 10.8.2 at least, it is in /usr/lib).

I was trying to figure this out a while ago, and discovered that swapping the order of the CHECK_LIBRARY_EXISTS calls in cmake/FindIconv.cmake (oddly) caused cmake to find libiconv like it should.
I took a closer look at this today, and discovered that if the first CHECK_LIBRARY_EXISTS call fails, the second call doesn't actually set ICONV_FOUND to true for some reason (which causes cmake to think that the library isn't available).
I have attached a patch (fix-libiconv-checks.patch) that resolves this problem by altering the check logic such that both checks actually matter.



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

Attach Files:

Attached Files
file #27455:  fix-libiconv-checks.patch added by None (912B - application/octet-stream)


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
    2013-05-20 flashcode Open/ClosedOpen Closed
    2013-02-14 flashcode Categoryplugins compilation
        StatusNone Fixed
        Assigned toNone flashcode
    2013-02-12 None Attached File- Added fix-libiconv-checks.patch, #27455

    Back to the top

    Powered by Savane 3.12