[users] [Dries] perl-Config-General again (RHEL3 and FC1/RH9 and below)

Ralph Angenendt ra+rpmforge at br-online.de
Thu Jun 30 11:56:14 CEST 2005


Hi,

as already posted on the freshrpms list I had some problems with the
perl-Config-General rpm from the repository, as it has a dependency on
perl(Carp::Heavy) which perl in version 5.8.0 and below doesn't provide.

By looking at the code I found out that there is a debian specific
"patch" in General.pm, which causes this. So removing this makes the rpm
build with sane dependencies. The patches to the spec file and to the perl
module are attached.

Ralph
-- 
Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible
Bayerischer Rundfunk...HA-Multimedia | ....to right-justify any idea, even one
Rundfunkplatz 1........80300 München | .which cannot be justified on any other
Tl:089.5900.16023..Fx:089.5900.16240 | ..........grounds." -- J. Finnegan, USC
-------------- next part --------------
--- perl-Config-General.spec.old	2005-06-30 11:46:35.000000000 +0200
+++ perl-Config-General.spec	2005-06-30 11:43:38.000000000 +0200
@@ -10,7 +10,7 @@
 Summary: Generic config module
 Name: perl-Config-General
 Version: 2.29
-Release: 1.rf
+Release: 2.rf
 License: Artistic
 Group: Applications/CPAN
 URL: http://search.cpan.org/dist/Config-General/
@@ -19,6 +19,7 @@
 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
 
 Source: http://www.cpan.org/modules/by-module/Config/Config-General-%{version}.tar.gz
+Patch0: patch.carp-heavy
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildArch: noarch
@@ -47,6 +48,7 @@
 
 %prep
 %setup -n %{real_name}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
-------------- next part --------------
diff -Naur Config-General-2.29.old/General.pm Config-General-2.29/General.pm
--- Config-General-2.29.old/General.pm	2005-05-31 20:35:26.000000000 +0200
+++ Config-General-2.29/General.pm	2005-06-30 11:35:01.000000000 +0200
@@ -16,13 +16,6 @@
 use File::Spec::Functions qw(splitpath file_name_is_absolute catfile catpath);
 use strict;
 
-# on debian with perl > 5.8.4 croak() doesn't work anymore without this.
-# There is some require statement which dies 'cause it can't find Carp::Heavy,
-# I really don't understand, what the hell they made, but the debian perl
-# installation is definetly bullshit, damn!
-use Carp::Heavy;
-
-
 use Carp;
 use Exporter;
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.repoforge.org/pipermail/users/attachments/20050630/f0a15824/attachment.sig>


More information about the users mailing list