Bug 335183

Summary: yast2-product-creator: package manager in installer offers all files instead of available
Product: [openSUSE] openSUSE 10.3 Reporter: peter czanik <peter>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: PowerPC   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: testing version of the package (RPM package)
Updated version of the package

Description peter czanik 2007-10-19 13:03:51 UTC
When installing from the resulting ISO file, the installer offers all
packages, not just those available on the CD. This is pretty disturbing, as it is very difficult to select only those packages, which are available on the CD. The package manager should only show those packages, which are really available.

Tested on PPC using openSUSE 10.3 final FTP version.
Comment 1 peter czanik 2007-10-24 16:07:43 UTC
I guess, that the problem is, that "create_package_descr" is not run, suse/setup is copied blindly. I tried to experiment with it, without much success...
Comment 2 Ladislav Slezák 2007-10-26 13:18:00 UTC
/usr/bin/create_package_descr should be called, I'll check it later...
Comment 3 Ladislav Slezák 2007-10-30 08:17:14 UTC
According to the log from #335172 it is called:

2007-10-24 14:56:40 <1> pegasos103(7650) [YCP] ProductCreator.ycp:747 executing: cd '/tmp//xfce_ppc////suse' && /usr/bin/create
_package_descr -x setup/descr/EXTRA_PROV

The problem is that the package manager uses gzipped files now, the new created files are ignored and installer uses the original .gz files.
Comment 4 peter czanik 2007-10-30 08:26:31 UTC
Is there any way to work around this? I mean even some manual fix up, like gzip-ing the resulting files. Also: would it be possible to leave only those 'pattern'-s, which were selected during package selection? There is a high chance, that the rest of the patterns will not work during installation...
Comment 5 Ladislav Slezák 2007-10-30 08:53:58 UTC
You should gzip files 'packages', 'packages.DU' and 'packages.en' in suse/setup/descr subdirectory.

The product creator module should remove the unused patterns, but again it doesn't work with *.pat.gz files. I'm working on a fix, I suppose it will be available as an online update later. I can also attach a patch for testing when it's ready.
Comment 6 peter czanik 2007-10-30 08:57:46 UTC
OK, I'm ready for testing!
Comment 7 Ladislav Slezák 2007-10-31 13:59:25 UTC
Created attachment 181470 [details]
testing version of the package (RPM package)

Peter, here is a testing version with a lot of fixes (isolinux config, copying /boot files, support for gzipped metadata, fixed slideshow copying,...). /suseboot is still empty, I'm working on this problem...

I'm looking forward to your feedback...
Comment 8 peter czanik 2007-10-31 16:29:35 UTC
space in file name is still a problem, /boot/i386 is still populated (150+MB wasted), I have yet to try installing from the generated CD (maybe just tomorrow).

2007-10-31 17:24:53 <1> pegasos103(14311) [YCP] product-creator/complex.ycp:343 Expected size: 802626909
2007-10-31 17:24:53 <1> pegasos103(14311) [YCP] product-creator/complex.ycp:351 command: /usr/lib/YaST2/bin/y2mkiso '
/data/xfcecd//xfce efika cd' '/data/xfcecd//xfce efika cd.iso' 'ppc'
2007-10-31 17:24:53 <3> pegasos103(14311) [bash] ShellCommand.cc(shellcommand):78 + mkisofs -p CzP -publisher CzP -r
-pad -T -U -l -part --netatalk --macbin -hfs-bless /data/xfcecd//xfce efika cd/suseboot -map /usr/share/YaST2/data/pr
oduct-creator/HFS_mapping -A openSUSE-10.3-FTP-10.3#0 -hfs-volid openSUSE-10.3-FTP-10.3#0 -V SU1030.001 -o '/data/xfc
ecd//xfce efika cd.iso' /var/tmp/m_cd-h18232 '/data/xfcecd//xfce efika cd'
2007-10-31 17:24:53 <3> pegasos103(14311) [bash] ShellCommand.cc(shellcommand):78 Warning: creating filesystem that d
oes not conform to ISO-9660.
2007-10-31 17:24:53 <3> pegasos103(14311) [bash] ShellCommand.cc(shellcommand):78 I: -input-charset not specified, us
ing utf-8 (detected in locale settings)
2007-10-31 17:24:53 <3> pegasos103(14311) [bash] ShellCommand.cc(shellcommand):78 genisoimage: No such file or direct
ory. Invalid node - 'efika'.
2007-10-31 17:24:53 <3> pegasos103(14311) [bash] ShellCommand.cc(shellcommand):78 + set +x
Comment 9 Ladislav Slezák 2007-11-05 12:41:34 UTC
Created attachment 182013 [details]
Updated version of the package

This is an updated version, the problem with space in the name is fixed.

Please, test the package and post your feedback here. Thank you.
Comment 10 Ladislav Slezák 2007-11-12 16:05:54 UTC
Fixed in yast2-product-creator-2.16.5 (STABLE)