Bug 216231

Summary: yast2-trans-all package
Product: [openSUSE] openSUSE 10.2 Reporter: Steffen Winterfeldt <snwint>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsuchome, ke, ro
Version: Beta 1 plus   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Steffen Winterfeldt 2006-10-30 13:16:28 UTC
The recent addition of Macedonian reminded my that we need a better solution
for languages that yast needs in the installation system.

Currently someone has to notify me and I'll add the language. That's obviously
not really a good way.

My suggestion is to create an (internal, may be) dummy package
(e.g.) yast2-trans-all that contains nothing but depends on all required
yast2-lang-XX packages. I can then parse that data during build time.

AFAIK yast2 knows about that list because yast2-country already has 
per-language ycp files.

I could of course look at yast2-country, but I need something to put into
BuildRequires.

Thoughts?
Comment 1 Karl Eichwalder 2006-10-30 13:58:35 UTC
Maybe, we can tweak yast2-trans-stats to suit your need.
Comment 2 Lukas Ocilka 2006-10-30 15:42:31 UTC
Reassigning to jsrain to decide ;)
Comment 3 Jiri Srain 2006-10-31 09:30:04 UTC
Jiri, can yast2-trans-stats be used to generate the list of all YaST translation packages?
Comment 5 Jiří Suchomel 2006-10-31 10:03:33 UTC
Steffen, coudln't you use data from yast2-trans-stats directly?

The situation with yast2-country is very similar to your - someone (Karl :-)) has to notify me about adding new language.
Comment 6 Jiří Suchomel 2006-10-31 10:05:33 UTC
Well, to answer question in comment #3 directly - yast2-trans-stats actually is the list of all YaST translation packages.
Comment 7 Jiri Srain 2006-11-01 09:49:56 UTC
I guess it cannot be used directly, as Steffen needs the packages to be installed in the build environment. Don't know whether it is possible to install any additional packages which are not covered by BuildRequires.

Or, Steffen, is there any trick I don't know about?
Comment 8 Jiří Suchomel 2006-11-01 09:56:42 UTC
But we could have yast2-trans-stats depend on translation packages, coudn't we?
Comment 9 Karl Eichwalder 2006-11-01 13:47:53 UTC
No, not at installation time.  The purpose of yast2-trans-stats is, only to tell yast the amount of translated messages per language.
Comment 10 Steffen Winterfeldt 2006-11-06 10:08:35 UTC
Well, as you see, the problem is not generating a list from one source or
another but I'd need a package that has real rpm dependencies on all
required lang packages, so I can put this one into BuildRequires.

And since you probably don't want to add this to an existing package,
my suggestion was to make a new one.

In answer to comment 7: no, all packages must be in BuildRequires.
Comment 11 Karl Eichwalder 2007-01-23 09:38:05 UTC
I still do not understand this completely.  If you add yast2-trans-stats to the BuildRequires of your packages, all the yast2-trans packages will get installed.  Do you need also a package that provides all yast2-trans packages?
Comment 12 Steffen Winterfeldt 2007-01-23 10:44:27 UTC
# rpm -qp --requires yast2-trans-stats.rpm 
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadIsBzip2) <= 3.0.5-1

I doubt adding it to BuildRequires has any effect whatsoever.

What I need is a package that requires all yast2-trans-XX packages.
Comment 13 Karl Eichwalder 2007-01-24 14:49:15 UTC
I just submitted yast2-trans-allpacks to /work.  It lists all packages I can find using

pdb query --filter 'yast2-trans-?? yast2-trans-??\_??'

Before you actually can make use of it, I probably must submit the following yast2-trans packages to /work, even if empty:

yast2-trans-gl
yast2-trans-ka
yast2-trans-lo

I filed a deletion request for yast2-trans-zh_HK.
Comment 14 Steffen Winterfeldt 2007-01-24 14:54:40 UTC
Thanks, I'll use it once it has been built.
Comment 15 Steffen Winterfeldt 2007-01-24 15:01:17 UTC
Hm, yast2-trans-allpacks doesn't build (at least in mbuild). :-(
Comment 16 Karl Eichwalder 2007-01-24 16:11:56 UTC
Michael, this is about the new yast2-trans-allpacks package.

Using "build", it builds.  It looks like an autobuild issue:

error: Could not open %files file /usr/src/packages/BUILD/debugfiles.list: No such file or directory

But the %files section does not list the mentioned file:

%files
%defattr(-,root,root)
%doc README
Comment 17 Michael Schröder 2007-01-24 17:19:47 UTC
It's a problem in Rudis debuginfo package handling. The brp-strip-debug script only gets run if the specfile contains a "%install" section. A simple fix would be to add an empty install section to the spec.
CC Rudi. 
Comment 18 Karl Eichwalder 2007-01-25 12:56:54 UTC
Thanks for the help!  Steffen, the package is done now.  Reopen is something is still missing.
Comment 19 Steffen Winterfeldt 2007-01-25 13:25:27 UTC
Thanks. It works now but for the fact that there are no
yast2-trans-{lo,zh_HK} packages.
Comment 20 Karl Eichwalder 2007-01-25 13:44:26 UTC
Yes, but the fixed package is already on /work .
Comment 21 Steffen Winterfeldt 2007-01-25 13:47:42 UTC
.
Comment 22 Steffen Winterfeldt 2007-01-25 13:48:55 UTC
sorry, wrong bug