Bug 121006

Summary: [PATCH] anacron package-build-error
Product: [Fedora] Fedora Reporter: kanagawa jigorou <jigorou3>
Component: anacronAssignee: Jens Petersen <petersen>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: d.binderman, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: anacron-2.3-31 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-03 10:41:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 114963    

Description kanagawa jigorou 2004-04-16 02:42:53 UTC
Description of problem:
package-build-error

Version-Release number of selected component (if applicable):
anacron-2.3-30

How reproducible:
Always

Steps to Reproduce:
Try to build anacron-2.3-30.src.rpm on latest fedora-development
environment.

Additional info:
Here is extracted error messages...

gregor.c: In function `day_num':
gregor.c:79: error: assignment of read-only variable `isleap'
make: *** [gregor.o] Error 1


According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=240043
Debian solved this problem with following patch.

--- anacron-2.3/gregor.c.orig	2000-06-23 02:00:14.000000000 +0200
+++ anacron-2.3/gregor.c	2004-03-26 20:45:13.000000000 +0100
@@ -65,7 +65,7 @@
 {
     int dn;
     int i;
-    const int isleap; /* save three calls to leap() */
+    int isleap; /* save three calls to leap() */
 
     /* Some validity checks */

Comment 1 Miloslav Trmac 2004-04-21 17:57:42 UTC
*** Bug 116249 has been marked as a duplicate of this bug. ***

Comment 2 kanagawa jigorou 2004-04-22 00:34:20 UTC
Oops!
That is very true.
Sorry for my carelessness.
And, thank you!

Comment 3 kanagawa jigorou 2004-07-03 10:41:15 UTC
It looks like fixed in anacron-2.3-31.