From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116691 invoked by alias); 19 Dec 2018 09:53:20 -0000 Mailing-List: contact libc-locales-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-locales-owner@sourceware.org Received: (qmail 116349 invoked by uid 48); 19 Dec 2018 09:53:13 -0000 From: "pander at users dot sourceforge.net" To: libc-locales@sourceware.org Subject: [Bug localedata/24006] New: Cyclic dependencies via copy in locales Date: Wed, 19 Dec 2018 09:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pander at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q4/txt/msg00136.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24006 Bug ID: 24006 Summary: Cyclic dependencies via copy in locales Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: localedata Assignee: unassigned at sourceware dot org Reporter: pander at users dot sourceforge.net CC: libc-locales at sourceware dot org Target Milestone: --- Via 'copy', a locale can reuse definitions from another locale. This is very practical as it reduces the file size of a locale and eases maintenance. Some locales copy parts from each other in both directions, however, result= ing in cyclic dependencies. This prevents only using a one of these locales in a minimized setup, as both locales are always required. Additionally, a cyclic dependency also increases the complexity or maintain= ing copied parts. For these reasons it is better to untangle cyclic dependencies by interchan= ging definitions and reuse so that one of these locales is no longer depending on the other locale. In most of these cases, a new local reuses a lot from an existing locale, b= ut also adds definitions which were not present in the existing locale. When s= ome of these new definitions apply for both locales, the older locale (in which these definitions were originally missing) starts using these via a copy. T= his can be very simple definitions such as paper size, but it creates a cyclic dependency, where it was better to move these definitions to the older loca= le and reuse them in the newer locale (which already does a lot of reuse of the older locale). An overview of cyclic dependencies can be shown with the script https://github.com/PanderMusubi/locale-en-nl/blob/master/analysis/3-cyclic-= dependencies.py At the moment, the result is: - Cyclic dependencies via copy found between locales en_US and en_GB - Cyclic dependencies via copy found between locales om_ET and om_KE - Cyclic dependencies via copy found between locales am_ET and ti_ET - Cyclic dependencies via copy found between locales en_PH and tl_PH - Cyclic dependencies via copy found between locales tl_PH and fil_PH - Cyclic dependencies via copy found between locales ber_DZ and kab_DZ I would like to propose that regarding only these cyclic dependencies (not other dependencies) are solved by eventually: - en_GB depends on en_US - om_ET depends on om_KE - am_ET depends on ti_ET - en_PH and tl_PH depend on fil_PH and en_US - kab_DZ depends on ber_DZ If desired by the maintainers of glibc, I can contribute patches for this, starting with the more simple cases, such as DZ and PH. --=20 You are receiving this mail because: You are on the CC list for the bug.