-
Notifications
You must be signed in to change notification settings - Fork 44
rpm: %find_lang --generate-subpackages may generate illegal subpackage names for locales containing '@' #54
Copy link
Copy link
Open
Labels
Priority:3We want to address this but may have other higher priority items.We want to address this but may have other higher priority items.Target: RollingTargeting rolling/current branch.Targeting rolling/current branch.Type: BugIssues related to incorrect behavior or failures that need fixing.Issues related to incorrect behavior or failures that need fixing.Type: EnhancementIssues requesting improvements to existing behavior (non-breaking).Issues requesting improvements to existing behavior (non-breaking).Upstream bugThis label indicates issues caused by a known upstream issue or bug.This label indicates issues caused by a known upstream issue or bug.
Metadata
Metadata
Assignees
Labels
Priority:3We want to address this but may have other higher priority items.We want to address this but may have other higher priority items.Target: RollingTargeting rolling/current branch.Targeting rolling/current branch.Type: BugIssues related to incorrect behavior or failures that need fixing.Issues related to incorrect behavior or failures that need fixing.Type: EnhancementIssues requesting improvements to existing behavior (non-breaking).Issues requesting improvements to existing behavior (non-breaking).Upstream bugThis label indicates issues caused by a known upstream issue or bug.This label indicates issues caused by a known upstream issue or bug.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Package name
rpm
openRuyi version
4.20.1
Describe the bug
When using
%find_lang %{name} --generate-subpackages, locales containing@(such asbe@latin) can result in generated langpack subpackage names that contain@. This appears to produce illegal RPM package names and causes the build to fail.As a local workaround, we currently remove such locale directories before running
%find_lang:Steps to reproduce
%{buildroot}%{_datadir}/locale/be@latin/...Expected behaviour
%find_lang --generate-subpackagesshould either sanitise locale-derived subpackage names or skip unsupported locale variants, so that it never emits illegal package names.Screenshots
No response
Relevant log output
Additional context
No response
I assert that this issue is relevant for openRuyi