Archive for the ‘perl’ Category

When Perl and RPM don’t get along.

Wednesday, August 13th, 2008

Sometimes when building rpm packages you will get an rpm that requires a file that it already contains. This seems pretty lame (which it is) but here is an example and a workaround. Building a package for freepbx we see this output: rpmbuild -ba freepbx.spec --------snip----------------- Provides: config(freepbx) = 2.4.0-0 Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames)

Our contribution to the community: CPAN PowerDNS modules released.

Tuesday, June 24th, 2008

We have released several PowerDNS modules to CPAN: http://search.cpan.org/~augie/ PowerDNS::Backend::MySQL Provides an interface to manipulate PowerDNS data in the MySQL Backend. PowerDNS::Control::Client Provides an interface to control the PowerDNS daemon. PowerDNS::Control::Server Provides an interface to control the PowerDNS daemon.

Perl , $SIG{CHLD} = ‘IGNORE’ , system() and you.

Tuesday, June 24th, 2008

At first blush you probably would not expect the following to print “-1″; as you probably expect “system” to execute and return the return code from “echo”. $SIG{CHLD} = 'IGNORE'; print system('echo'); This stumped me too, so I did some research. From the Perl PIC Documentation: On most Unix platforms, the CHLD (sometimes also known ...