On Mon, Jun 10, 2013 at 10:43 AM, Jonathan Rice <jrmaili...@gmail.com> wrote: > On Tue, Jun 4, 2013 at 11:58 AM, Thijs Alkemade <m...@thijsalkema.de> wrote: >> >> On 31 mei 2013, at 02:18, Jonathan Rice <jrmaili...@gmail.com> wrote: >> >>> Hi, I'm Jonathan. I previously created a Meanwhile patch to fix a Sametime >>> issue in Adium 1.5.4 (https://trac.adium.im/ticket/16114) Now, I'm working >>> on https://trac.adium.im/ticket/16345, where Sametime chat support is >>> completely broken in Adium 1.5.6. >>> >>> I've narrowed the issue to when Adium upgraded to libpurple 2.7.10. Sphynx >>> noted a libpurple commit that could be related, and I'd like to revert the >>> change and test again. However, I'm having trouble building libpurple for >>> Adium. >>> >>> What's the proper way to build libpurple for Adium? >>> >>> Following https://trac.adium.im/wiki/GettingLibpurpleSource, I'm running >>> ./build.sh from /Dependencies. >>> I've tried: >>> ./build.sh >>> ./build.sh --configure >>> ./build.sh --download-libpurple >>> ./build.sh --libpurple-only >>> >>> Is this the way to do it? It keeps erroring out at some place or another. >>> I'm running inside `brew sh`, installed many brew dependencies as they've >>> come up, but I'd like to know I'm on the right track before muddling >>> through any more errors. >>> >>> Thanks for your help, >>> Jonathan >> >> Hi Jonathan, >> >> The last couple of Adium builds haven't used the scripts in /Dependencies. >> The work necessary to ensure updated dependencies still worked correctly in >> 32 and 64 bits, on 10.6 to 10.8 was getting too much. Why waste effort on >> that when there are some package manages that specialize in that. >> >> So I've switched to using Homebrew to build the dependencies, with an extra >> script to copy them into Frameworks and prepare them for Adium. I haven't >> yet documented this elsewhere, which I really should've done a while ago. >> >> The steps to do this are now: >> >> cd Dependencies # it needs to be built here in the Adium tree, it needs to >> be able to find Dependencies/patches >> git clone https://github.com/adium/homebrew.git Brew >> cd Brew >> git checkout adium-1.5.5 # Didn't branch for 1.5.6... >> ./bin/brew frameworks --universal >> ./copy_frameworks.sh >> >> Changing the version of libpurple that's built can be done by editing >> Library/Formula/libpurple.rb. It currently grabs the tarball for the >> revision http://hg.adium.im/libpurple/rev/590f15aee045. >> >> I hope this helps, and let me know if you run into more problems, >> Thijs Alkemade > > Thanks! > > After updating pretty much everything on my computer, the dependencies > build went smoothly. Thanks for the new steps and for updating the > Adium site with the new steps as well. Next, I'll try building with > some libpurple patches, and hopefully it'll just be that easy. > > Jonathan Rice
Thijs, I've been looking at the Sametime issue (https://trac.adium.im/ticket/16345) over the last few days, and I'd really appreciate your input. I've found Sametime stopped working in the 1.5.5 branch with the upgrade to libpurple 2.7.0 and corresponding dependency updates. There's nothing in libpurple 2.7.0 that really messes with Sametime, except for the one commit you mentioned in the ticket. I reverted that change and still couldn't connect. Something interesting, I checked out the last working version of Adium (8dd0d808e092) and rebuilt the dependencies using the exact same version of libpurple it was already using (2.10.5r590f15aee045), and....Sametime wouldn't connect. Working code, rebuilt with the same libpurple, using whatever dependencies are in brew, doesn't work. Since none of the Adium or libpurple code was different, to me that indicates a possible dependency problem. Another dependency indicator is I'm running one of the meanwhile samples and it's failing to connect with the same error code. I tried tweaking brew and rebuilding everything with the older dependencies, but no luck. Perhaps some build options have changed since they were built last? Is it possible to know exactly what Adium brew revision the older dependencies in 8dd0d808e092 were built from ? Or do I just check the dates and find something close (sometime September 2012)? Also, do you remember what the build commands were before the frameworks stuff was added? WORKS: 5345:8dd0d808e092 Backport 87047401414b for #16101. References #16101 (using libpurple 2.10.5r590f15aee045) ...broken builds in between... NOT WORKING: 5360:d4826d930b65 libffi and libintl were not install_name_toolized properly in these frameworks Thanks, Jonathan