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
Item Group:  Bug Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>

 

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

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    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.14-430a.
    Corresponding source code