rpms/bc/devel bc-1.06.95-memleak.patch, NONE, 1.1 .cvsignore, 1.5, 1.6 bc.spec, 1.43, 1.44 sources, 1.5, 1.6 bc-1.06-info_exp_bessel.patch, 1.1, NONE bc-1.06-readline42.patch, 1.1, NONE bc-1.06-s390.patch, 1.1, NONE bc-1.06-string.patch, 1.1, NONE

Ondrej Vasik ovasik at fedoraproject.org
Thu Sep 24 07:42:06 UTC 2009


Author: ovasik

Update of /cvs/extras/rpms/bc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29975

Modified Files:
	.cvsignore bc.spec sources 
Added Files:
	bc-1.06.95-memleak.patch 
Removed Files:
	bc-1.06-info_exp_bessel.patch bc-1.06-readline42.patch 
	bc-1.06-s390.patch bc-1.06-string.patch 
Log Message:
update to upstream alpha 1.06.95 (in use in Gentoo, Slackware for quite a long time, marked stable there), removed already applied patches, fix small memory leak (gentoo patch)

bc-1.06.95-memleak.patch:
 bc.y   |    1 +
 util.c |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE bc-1.06.95-memleak.patch ---
diff --git a/bc/bc.y b/bc/bc.y
index 14dc4be..bd91c38 100644
--- a/bc/bc.y
+++ b/bc/bc.y
@@ -569,6 +569,7 @@ expression		:  named_expression ASSIGN_OP
 				    generate (">");
 				  break;
 				}
+			      free($2);
 			    }
 			| expression '+' expression
 			    {
diff --git a/bc/util.c b/bc/util.c
index 30beaf9..26e2e85 100644
--- a/bc/util.c
+++ b/bc/util.c
@@ -602,8 +602,7 @@ lookup (name, namekind)
     case FUNCTDEF:
       if (id->f_name != 0)
 	{
-	  if (namekind != FUNCT)
-	    free(name);
+	  free(name);
 	  /* Check to see if we are redefining a math lib function. */ 
 	  if (use_math && namekind == FUNCTDEF && id->f_name <= 6)
 	    id->f_name = next_func++;


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/bc/devel/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- .cvsignore	18 Sep 2007 08:11:50 -0000	1.5
+++ .cvsignore	24 Sep 2009 07:42:06 -0000	1.6
@@ -1 +1 @@
-bc-1.06.tar.gz
+bc-1.06.95.tar.bz2


Index: bc.spec
===================================================================
RCS file: /cvs/extras/rpms/bc/devel/bc.spec,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -p -r1.43 -r1.44
--- bc.spec	20 Aug 2009 07:38:00 -0000	1.43
+++ bc.spec	24 Sep 2009 07:42:06 -0000	1.44
@@ -1,16 +1,13 @@
 Summary: GNU's bc (a numeric processing language) and dc (a calculator)
 Name: bc
-Version: 1.06
-Release: 36%{?dist}
+Version: 1.06.95
+Release: 1%{?dist}
 License: GPLv2+
 URL: http://www.gnu.org/software/bc/
 Group: Applications/Engineering
-Source: ftp://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
-Patch1: bc-1.06-readline42.patch
-Patch2: bc-1.06-s390.patch
-Patch3: bc-1.06-info_exp_bessel.patch
-Patch5: bc-1.06-string.patch
-Patch6: bc-1.06-dc_ibase.patch
+Source: ftp://alpha.gnu.org/pub/gnu/bc/bc-%{version}.tar.bz2
+Patch1: bc-1.06-dc_ibase.patch
+Patch2: bc-1.06.95-memleak.patch
 Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -27,11 +24,8 @@ if you would like to use its text mode c
 
 %prep
 %setup -q
-%patch1 -p1 -b .rl22
-%patch2 -p1 -b .s390
-%patch3 -p1 -b .info_exp_bessel
-%patch5 -p1 -b .string
-%patch6 -p1 -b .dc_ibase
+%patch1 -p1 -b .dc_ibase
+%patch2 -p1 -b .memleak
 
 %build
 %configure --with-readline
@@ -71,6 +65,12 @@ fi
 %{_infodir}/*
 
 %changelog
+* Thu Sep 24 2009 Ondrej Vasik <ovasik at redhat.com> 1.06-95-1
+- update to upstream alpha 1.06.95 (in use in Gentoo, Slackware
+  for quite a long time, marked stable there)
+- removed already applied patches, fix small memory leak
+  (gentoo patch)
+
 * Thu Aug 20 2009 Zdenek Prikryl <zprikryl at redhat.com> 1.06-36
 - Don't complain if installing with --excludedocs (#515934)
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/bc/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources	18 Sep 2007 08:11:50 -0000	1.5
+++ sources	24 Sep 2009 07:42:06 -0000	1.6
@@ -1 +1 @@
-d44b5dddebd8a7a7309aea6c36fda117  bc-1.06.tar.gz
+5126a721b73f97d715bb72c13c889035  bc-1.06.95.tar.bz2


--- bc-1.06-info_exp_bessel.patch DELETED ---


--- bc-1.06-readline42.patch DELETED ---


--- bc-1.06-s390.patch DELETED ---


--- bc-1.06-string.patch DELETED ---




More information about the fedora-extras-commits mailing list