PaulHowarth/Blog/2008-03

Paul's Blog Entries for March 2008

Monday 3rd March 2008

Local Packages

  • Updated fetchyahoo to 2.11.3

  • Updated perl-Test-Tester to 0.107

Tuesday 4th March 2008

Local Packages

  • Updated dovecot to 1.0.11

  • Fixed ppp to write logs to /var/log/ppp instead of /etc/ppp as per the Rawhide package

I'm also working on some updated php-gtk packages, since the long-awaited version 2.0 release supporting PHP5 and GTK2 finally made it out last weekend. It requires PHP >= 5.1.2 but I found that it wouldn't build on anything older than Fedora 7 (including RHEL 5). This turned out to be because the ZEND_MN macro is used, and that only appeared in later versions of PHP. This patch fixed the build:

$ cat php-gtk-2.0.0-oldphp.patch
--- php-gtk-2.0.0/main/php_gtk.h        2008-02-29 19:05:53.000000000 +0000
+++ php-gtk-2.0.0/main/php_gtk.h        2008-03-04 11:08:30.000000000 +0000
@@ -60,6 +60,11 @@
 #include "zend_exceptions.h"
 #include "zend_extensions.h"
 
+/* for older php versions */
+#ifndef ZEND_MN
+#define ZEND_MN ZEND_FN
+#endif
+
 #define PHP_GTK_VERSION "2.0.0-dev"
 
 #ifdef PHP_WIN32

I've yet to try running pptpconfig with the new php-gtk; I'll leave that for another day.

Wednesday 5th March 2008

Local Packages

  • Updated dovecot to 1.0.12

Friday 7th March 2008

Local Packages

  • Updated perl-Array-Compare to 1.15

Sunday 9th March 2008

Allotment

Planted the early potatoes: 31 Pentland Javelin in three rows at the Harboro Road end, and 21 Arran Pilot in two rows at the Glebelands Road end.

Monday 10th March 2008

Local Packages

  • Built bw-whois for perl 5.10.0 on Fedora 9

  • Updated dovecot to 1.0.13

  • Built perl-Crypt-GPG for perl 5.10.0 on Fedora 9

  • Updated perl-FileHandle-Unget to fix license tag

  • Updated perl-FileHandle-Unget 0.14 packages for Red Hat Linux 9, Fedora Core 1, Fedora Core 2, and Red Hat Enterprise Linux 3 to current packaging standards (will build on Fedora 9, license tag fixed, dist tag fixed, etc.); current versions of perl-FileHandle-Unget won't build on these old distributions

  • Fixed perl-Jcode to build successfully on Fedora 9 (buildreq perl(Test::More))

  • Built perl-Mail-SRS for perl 5.10.0 on Fedora 9

  • Built perl-Net-CIDR for perl 5.10.0 on Fedora 9

  • Built perl-Sendmail-AccessDB for perl 5.10.0 on Fedora 9

  • Built perl-Sys-Hostname-Long for perl 5.10.0 on Fedora 9

  • Built perl-Test-Prereq for perl 5.10.0 on Fedora 9

  • Built perl-Text-Diff for perl 5.10.0 on Fedora 9

  • Updated python-twisted-core to build on Fedora 9 with egg-info file

From Fedora 9, python packages include an egg-info file that is installed directly under %{python_sitelib} or %{python_sitearch} for architecture-independent and architecture-specific packages respectively. This can present a problem when trying to maintain a single spec file that can be used to build a package for multiple target distribution releases. The approach taken in the official Fedora package for python-twisted-core is to use a distribution-based conditional in the %files list:

%files
...
%if 0%{?fedora} >= 9
  %{python_sitearch}/Twisted-%{version}-py2.5.egg-info
%endif

I'm not keen on this approach because it requires the presence of the %{fedora} macro to build successfully on Fedora 9 onwards (not a bad assumption really since it is defined from a file included in the fedora-release package, which everyone will have), but more importantly it will require a further edit to support different distributions such as Red Hat Enterprise Linux 6 when that appears. My preferred approach is to test directly for the actual significant differences between releases that affect a package, and handle things according to the results of this testing. This leads to a more portable source package. My approach to the egg-info issue in python-twisted-core is to check to see if an egg-info file has been generated, and include it in the %files list if present:

%install
...
# See if there's an egg-info file
if [ -f %{buildroot}%{python_sitearch}/Twisted-*.egg-info ]; then
        echo %{buildroot}%{python_sitearch}/Twisted-*.egg-info |
                sed -e 's|^%{buildroot}||'
fi > egg-file

%files -f egg-file

Tuesday 11th March 2008

Local Packages

  • Built grepmail for perl 5.10.0 in Fedora 9

  • Rebuilt perl-ConfigReader-Simple for perl 5.10.0 in Fedora 9

  • Rebuilt perl-Crypt-GPG for perl 5.10.0 in Fedora 9

  • Rebuilt perl-HTML-Lint for perl 5.10.0 in Fedora 9

  • Rebuilt perl-HTML-Tidy for perl 5.10.0 in Fedora 9

  • Rebuilt perl-HTML-SimpleLinkExtor for perl 5.10.0 in Fedora 9

  • Backported patch for CPAN RT#29593 (applies against perl-HTML-Tidy version 1.08 and fixes it to work with current libtidy) to perl-HTML-Tidy 1.06 and rebuilt that for RHL9, Fedora Core 1 and 2, and RHEL 3

  • Rebuilt perl-HTTP-SimpleLinkChecker for perl 5.10.0 in Fedora 9

  • Rebuilt perl-HTTP-Size for perl 5.10.0 in Fedora 9

  • Fixed perl-LMAP-CID2SPF to build OK on Fedora 9 (needed buildreq perl(Test::More))

  • Built perl-Mail-SPF-Query for perl 5.10.0 in Fedora 9

  • Resync-ed perl-Net-SSLeay with the Fedora package

  • Rebuilt perl-Test-HTML-Tidy against rebuilt perl-HTML-Tidy packages

  • Rebuilt perl-WeakRef for perl 5.10.0 in Fedora 9

  • Built torrentsniff for perl 5.10.0 in Fedora 9

  • Built weblint++ for perl 5.10.0 in Fedora 9

Fedora Project

  • Updated perl-MIME-tools to 5.425 in Rawhide; Fedora has been stuck with version 5.420 for quite some time but I couldn't update because later versions require File::Temp version 0.17 or later, and no upgrades of that particular module were going to happen because it's a core module shipped in the main perl package; the update to perl 5.10.0 in Rawhide has finally allowed this update to happen

Monday 17th March 2008

Local Packages

  • Updated nmap to 4.60; no Rawhide packages because the upstream repository is broken

Tuesday 18th March 2008

Local Packages

  • Built nmap for the development repo

  • Updated perl-Module-CoreList to 2.14

Wednesday 19th March 2008

Fedora Project

  • Updated perl-MIME-tools to 5.426 (Rawhide only)

Thursday 20th March 2008

Surgery

Had an operation today at the Day Surgery Unit at Trafford General Hospital to remove two sebaceous cysts from my scalp. This was elective surgery; I've had the cysts since I was in my teens and they haven't really grown any more but the larger one at the front was starting to show through my thinning hair and so I decided in Autumn last year that it was time to have them done.

It seemed that everyone passing through the unit in the morning session reported there for 8am and the surgical team just went through everybody in some order that no doubt made sense to them. I was the penultimate patient of the morning, not getting changed into the operating gown until 11am and not going to theatre until 11:15. It was all over by 11:45.

On the whole it was actually quite an enjoyable and relaxing morning, where I was able to catch up on some reading whilst waiting, and to find out what it's like to have an operation (albeit very minor) for the first time after nearly 43 years of my life!

My thanks to the staff at the unit for a pleasant morning!

Tuesday 25th March 2008

Local Packages

  • Updated gtkwave to 3.1.7

  • Updated libidn to 1.6

  • Updated moin to 1.6.2

Fedora Project

  • Updated gtkwave to 3.1.7 in Rawhide

  • Updated perl-Math-GMP in Rawhide to apply the 64-bit testsuite patch on the ia64 architecture as well as x86_64 and ppc64, which fixes Bug #436649. In order to test that this did actually fix the problem, I did a scratch build for ia64 in koji, but not the regular koji, since that one doesn't know about ia64:

$ koji --weburl=http://ia64.koji.fedoraproject.org/koji --server=http://ia64.koji.fedoraproject.org/kojihub build --scratch --arch-override=ia64 dist-f9 'cvs://cvs.fedoraproject.org/cvs/pkgs?rpms/perl-Math-GMP/devel#perl-Math-GMP-2_04-9_fc9'

Thursday 27th March 2008

Local Packages

  • Updated dkms to 2.0.19

  • Updated getmail to 4.8.1

  • Updated ppp to merge in recent Rawhide changes, most notably splitting out the header files into a separate ppp-devel package

Friday 28th March 2008

Local Packages

  • Updated bluefish-unstable to 1.1.6

  • Updated perl-BerkeleyDB to 0.34

  • Updated php-Smarty to 2.6.19

Monday 31st March 2008

Fedora Project

  • Updated rbldnsd to 0.996b in Rawhide

Local Packages

  • Updated curl to 7.18.1

  • Updated rbldnsd to 0.996b

  • Updated sendmail to resync with Rawhide

  • Updated python-zope-interface to 3.3.0

Previous Month: February 2008
Next Month: April 2008

Recent