bugGNUstep - Bugs: bug #66685, 1.30.0 testsuite failures when...

Group
 
 

bug #66685: 1.30.0 testsuite failures when /etc/timezone is missing

Submitter:  Yavor Doganov <yavor>
Submitted:  Mon 20 Jan 2025 02:00:30 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Bug
Status:  Wont Fix Privacy:  Public
Assigned to:  None Open/Closed:  Declined
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 10 Jul 2025 06:43:39 PM UTC, comment #1: 

Please resubmit this on the official repo at github.

Gregory John Casamento <gcasa>
Group administrator
Mon 20 Jan 2025 02:00:30 PM UTC, original submission:  

Debian's tzdata package recently stopped creating /etc/timezone if the file does not exist (as is the case for a new installation) which lead to test failures:


base/NSCalendar/era.m:
Failed test:     (2025-01-17 15:53:20.954 +0000)   era.m:53 ... getHour:minute:second:nanosecond:fromDate: returns correct hour

base/NSCalendarDate/test00.m:
Failed file:     test00.m aborted without running all tests!

base/NSTimeZone/create.m:
Failed file:     create.m aborted without running all tests!

base/NSTimeZone/use.m:
Failed file:     use.m aborted without running all tests!


In +systemTimeZone, when trying to determine tzdir, the loop stops when it encounters "GMT".  Thus a time zone "Etc/UTC" is incorrectly determined as "UTC" because on Debian systems at least, /usr/share/zoneinfo/GMT is a symlink to /usr/share/zoneinfo/Etc/GMT.  I think "Etc" is a better choice and the attached patch works for me.

(There was another tzdata-related issue that I was late forwarding but I see you fixed it in a different way so that patch is obsolete.)

Yavor Doganov <yavor>

 

Attached Files

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by gcasa (Posted a comment)
  • -email is unavailable- added by yavor (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-07-10 gcasa StatusNone Wont Fix
        Open/ClosedOpen Declined
    2025-01-20 yavor Attached File- Added 0001-Fix-bug-when-trying-to-determine-the-time-zone-from-.patch, #56785

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code