Re: [Fink-devel] bowtie2 giving help2man warnings(?) on Yosemite with exporter-pm installed
alexanderk.han...@gmail.com wrote: Hi. I saw this when building bowtie2 on Yosemite with exporter-pm-5.68-1 installed: make install PREFIX=/sw DESTDIR=/sw/src/fink.build/root-bowtie2-2.2.4-1 help2man --name=wrapper for bowtie2-align --no-info \ `pwd`/bowtie2 bowtie2.1 Constant subroutine main::LC_ALL redefined at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. Prototype mismatch: sub main::LC_ALL () vs none at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. help2man --name=building a colorspace index for bowtie2 --no-info \ `pwd`/bowtie2-build bowtie2-build.1 Constant subroutine main::LC_ALL redefined at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. Can you try this change to /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm (fix path to whatever system-perl is for you). This file belongs to locale-gettext-pm5XXX. Maintainer cc'd in case it works. --- /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm +++ /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm @@ -32,6 +32,7 @@ =cut use Carp; +use POSIX qw(:locale_h); require Exporter; require DynaLoader; Hanspeter [1] https://rt.cpan.org/Public/Bug/Display.html?id=35680 -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] daemonic - not working in Yosemite
On Nov 20, 2014, at 10:53 AM, Alexander Hansen alexanderk.han...@gmail.com wrote: Yeah, there’s no compelling reason not just to update daemonic appropriately for all supported OS X and avoid the potential pitfalls of creating the plists manually. I started looking into this. In case I get distracted before I make any progress: I just ran into this $PATH bug while trying to set up a launchd plist manually on 10.10: http://www.openradar.me/18945659 It looks like daemonic writes a script for StartupItems (including the configured Fink $prefix in the PATH), but I suspect that the intent was for launchd plists to not use a shell if they could help it. Maybe the script can exec the daemon instead. -- Charles Lepple clepple@gmail -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] bowtie2 giving help2man warnings(?) on Yosemite with exporter-pm installed
On Nov 24, 2014, at 4:06 AM, Hanspeter Niederstrasser f...@snaggledworks.com wrote: alexanderk.han...@gmail.com wrote: Hi. I saw this when building bowtie2 on Yosemite with exporter-pm-5.68-1 installed: make install PREFIX=/sw DESTDIR=/sw/src/fink.build/root-bowtie2-2.2.4-1 help2man --name=wrapper for bowtie2-align --no-info \ `pwd`/bowtie2 bowtie2.1 Constant subroutine main::LC_ALL redefined at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. Prototype mismatch: sub main::LC_ALL () vs none at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. help2man --name=building a colorspace index for bowtie2 --no-info \ `pwd`/bowtie2-build bowtie2-build.1 Constant subroutine main::LC_ALL redefined at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. Can you try this change to /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm (fix path to whatever system-perl is for you). This file belongs to locale-gettext-pm5XXX. Maintainer cc'd in case it works. --- /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm +++ /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm @@ -32,6 +32,7 @@ =cut use Carp; +use POSIX qw(:locale_h); require Exporter; require DynaLoader; Hanspeter [1] https://rt.cpan.org/Public/Bug/Display.html?id=35680 Works for me with Perl-5.18.2. -- Alexander Hansen, Ph.D. Fink User Liaison -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] bowtie2 giving help2man warnings(?) on Yosemitewith exporter-pm installed
On Mon, 24 Nov 2014 10:05:44 -0800, Alexander Hansen alexanderk.han...@gmail.com wrote: On Nov 24, 2014, at 4:06 AM, Hanspeter Niederstrasser f...@snaggledworks.com wrote: alexanderk.han...@gmail.com wrote: Hi. I saw this when building bowtie2 on Yosemite with exporter-pm-5.68-1 installed: make install PREFIX=/sw DESTDIR=/sw/src/fink.build/root-bowtie2-2.2.4-1 help2man --name=wrapper for bowtie2-align --no-info \ `pwd`/bowtie2 bowtie2.1 Constant subroutine main::LC_ALL redefined at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. Prototype mismatch: sub main::LC_ALL () vs none at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. help2man --name=building a colorspace index for bowtie2 --no-info \ `pwd`/bowtie2-build bowtie2-build.1 Constant subroutine main::LC_ALL redefined at /sw/lib/perl5/Exporter.pm line 66. at /sw/bin/help2man line 28. Can you try this change to /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm (fix path to whatever system-perl is for you). This file belongs to locale-gettext-pm5XXX. Maintainer cc'd in case it works. --- /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm +++ /sw/lib/perl5/5.16.2/darwin-thread-multi-2level/Locale/gettext.pm @@ -32,6 +32,7 @@ =cut use Carp; +use POSIX qw(:locale_h); require Exporter; require DynaLoader; Hanspeter [1] https://rt.cpan.org/Public/Bug/Display.html?id=35680 Works for me with Perl-5.18.2. Pushed in revision 4. Thanks for all the debugging legwork! dan -- Daniel Macks dma...@netspace.org -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] daemonic - not working in Yosemite
On Nov 24, 2014, at 9:21 AM, Charles Lepple clep...@gmail.com wrote: On Nov 20, 2014, at 10:53 AM, Alexander Hansen alexanderk.han...@gmail.com wrote: Yeah, there’s no compelling reason not just to update daemonic appropriately for all supported OS X and avoid the potential pitfalls of creating the plists manually. I started looking into this. In case I get distracted before I make any progress: I just ran into this $PATH bug while trying to set up a launchd plist manually on 10.10: http://www.openradar.me/18945659 It looks like daemonic writes a script for StartupItems (including the configured Fink $prefix in the PATH), but I suspect that the intent was for launchd plists to not use a shell if they could help it. Maybe the script can exec the daemon instead. I've been working on this too. Launchd is much more restrictive about what it can handle. Basically, it needs whatever it runs to be the actual executable so that it can track whether it's running. A script that runs another executable or one that does fork() and exec() (or runs daemon() which does the same thing) can't be used directly by launchd. Sometimes you can get around this by using the real executable instead. For example, starting postfix with postfix start is bad but running master directly is fine. Now MacPorts got around this issue with a utility program called daemondo. You have launchd run daemondo which then runs the program you need and it's responsible for keeping track of the program. Daemondo lets you specify a pid file if needed which can allow it to track things. It acts as an adaptor layer. I've made a daemondo fink package which you can find in experimental/danielj/daemondo.info in CVS. I've also started writing a replacement daemonic that writes launchd plist files. I ditched the old C-based daemonic code and rewrote it in Python. Conveniently, the Python standard library has everything needed, even a plistlib to read and write plists so it'll work with the system python without any dependencies. I'm also trying to make it work with existing fink packages with as little change as possible, but a few things will probably need tweaking. Hopefully I'll have something that can be tested soon. Daniel smime.p7s Description: S/MIME cryptographic signature -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] daemonic - not working in Yosemite
On Nov 24, 2014, at 6:43 PM, Daniel Johnson daniel.johnso...@gmail.com wrote: On Nov 24, 2014, at 9:21 AM, Charles Lepple clep...@gmail.com wrote: On Nov 20, 2014, at 10:53 AM, Alexander Hansen alexanderk.han...@gmail.com wrote: Yeah, there’s no compelling reason not just to update daemonic appropriately for all supported OS X and avoid the potential pitfalls of creating the plists manually. I started looking into this. In case I get distracted before I make any progress: I just ran into this $PATH bug while trying to set up a launchd plist manually on 10.10: http://www.openradar.me/18945659 It looks like daemonic writes a script for StartupItems (including the configured Fink $prefix in the PATH), but I suspect that the intent was for launchd plists to not use a shell if they could help it. Maybe the script can exec the daemon instead. I've been working on this too. Launchd is much more restrictive about what it can handle. Basically, it needs whatever it runs to be the actual executable so that it can track whether it's running. A script that runs another executable or one that does fork() and exec() (or runs daemon() which does the same thing) can't be used directly by launchd. Sometimes you can get around this by using the real executable instead. For example, starting postfix with postfix start is bad but running master directly is fine. Hmm, I think the only hard requirement is that the direct descendent of launchd (the first copy of the child process) can't exit. You're right that running daemon() breaks that rule, but I think a simple fork-and-exec is okay as long as the parent hangs around after the fork. Put another way, I used a script to get around that $PATH bug mentioned above, forgot to use exec at the end (so both the script and its child process are running, with an intervening nice) and nothing blew up :-) Now MacPorts got around this issue with a utility program called daemondo. You have launchd run daemondo which then runs the program you need and it's responsible for keeping track of the program. Daemondo lets you specify a pid file if needed which can allow it to track things. It acts as an adaptor layer. I've made a daemondo fink package which you can find in experimental/danielj/daemondo.info in CVS. I've also started writing a replacement daemonic that writes launchd plist files. I ditched the old C-based daemonic code and rewrote it in Python. Conveniently, the Python standard library has everything needed, even a plistlib to read and write plists so it'll work with the system python without any dependencies. I'm also trying to make it work with existing fink packages with as little change as possible, but a few things will probably need tweaking. Hopefully I'll have something that can be tested soon. Oh, cool. I'd be happy to help test. -- Charles Lepple clepple@gmail -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel