Bug 192535

Summary: test fetchmsttfonts script does not get run
Product: [openSUSE] SUSE Linux 10.1 Reporter: Marcus Meissner <meissner>
Component: libzyppAssignee: Stefan Schubert <schubi>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Blocker    
Priority: P5 - None CC: andreas.hanke, ast, chuller, heiko.rommel, hmuelle, kkaempf, schubi, suse-beta
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2.tar.bz2
zypp-xmlstore-do-script-zgBkw4
yast2logs.tar.bz2

Description Marcus Meissner 2006-07-14 16:17:32 UTC
the test fetchmsttfonts script does not get run.

(it is on ftp://you.suse.de/pub/suse/update/10.1/ )

It is selectable. I get the license. Then YOU does something, but it doesnt 
work in the end..
Comment 1 Marcus Meissner 2006-07-14 16:18:30 UTC
Created attachment 93602 [details]
YaST2.tar.bz2

yast2 logfiles.

I tried it twice... First install with regular logging.

Then second with ZYPP_FULLLOG=1 and reselect patch.
Comment 2 Marcus Meissner 2006-07-14 16:24:02 UTC
Created attachment 93605 [details]
zypp-xmlstore-do-script-zgBkw4

script it tries to run.
Comment 3 Marcus Meissner 2006-07-14 16:27:40 UTC
in /var/tmp/ are these scripts (from my current runs).

zypp-xmlstore-do-script-F9UG8D
zypp-xmlstore-do-script-Gj3yI0
zypp-xmlstore-do-script-ooDQP2
zypp-xmlstore-do-script-zgBkw4
zypp-xmlstore-undo-script-0Gt3Z1
zypp-xmlstore-undo-script-lfDUbh
zypp-xmlstore-undo-script-RlwIAt
zypp-xmlstore-undo-script-ZTNCwv


Note that in the logfile it calls a script which is not there?
Comment 4 Marcus Meissner 2006-07-14 16:28:41 UTC
err,

actually it only calls the "undo" script, but nevert the "do" script!
Comment 5 Klaus Kämpf 2006-07-14 18:22:54 UTC
rpm -q libzypp ?
Comment 6 Marcus Meissner 2006-07-14 18:27:04 UTC
libzypp-1.2.0-1.23
Comment 7 Marcus Meissner 2006-07-14 23:42:48 UTC
testsystem is still live on westernhagen.suse.de if you want to take a look.
Comment 8 Marcus Meissner 2006-07-17 13:57:32 UTC
any update?
Comment 9 Marcus Meissner 2006-07-27 11:20:15 UTC
blocking next libzypp update
Comment 10 Duncan Mac-Vicar 2006-08-01 09:20:54 UTC
Sorry, I was in Boston. Found the reason. Will commit soon.
Comment 11 Duncan Mac-Vicar 2006-08-01 11:07:44 UTC
Ok,  have a fix. The released SLES also suffers from this, so a update will be needed there.
I will need some help testing it.
I have a build on  /work/built/mbuild/piscola-dmacvicar-8 so it can be tested on SLES as well as in 10.1.





Comment 12 Duncan Mac-Vicar 2006-08-01 11:10:49 UTC
fix in rev 3845
package in /work/built/mbuild/piscola-dmacvicar-8
Comment 13 Duncan Mac-Vicar 2006-08-01 11:35:42 UTC
Sorry, I built aganst stable.
for SLES10: /work/built/mbuild/piscola-dmacvicar-12
for 10.1 /work/built/mbuild/piscola-dmacvicar-11

Comment 14 Marcus Meissner 2006-08-16 09:49:29 UTC
does not seem to be in current 10.1 checkin.

so it is not fixed.
Comment 15 Marcus Meissner 2006-08-17 14:52:15 UTC
Created attachment 96389 [details]
yast2logs.tar.bz2

new logfiles
Comment 16 Duncan Mac-Vicar 2006-08-17 16:29:20 UTC
Now seems totally unrelated. The problem before the fix, was the handling of temp files was broken. Now, that is fixed. And the current problem is totally unrelated, and even expected.

Well, the patch in the solver appears as satisfied, so it was run before. So the solver wont run it again. Probably by an old patch with the same script version.

US_s_[S3:0][script]fetchmsttfonts.sh-patch-fetchmsttfonts.sh-2-1322-1.noarch
Comment 18 Klaus Kämpf 2006-08-18 10:19:16 UTC
US_s_ is (U)ninstalled, (S)atisfied.

Actually, there are two versions of this patch, -1322- and -1829-

Marcus, please run with "ZYPP_FULLLOG=1". It looks like one is already installed.
Schubi might have a look on this also.
Comment 21 Stefan Schubert 2006-08-23 11:58:57 UTC
The logfiles does not show installed patches at all ( with the exception of installed patches which are triggered for uninstall). 
The fetchmsttfonts.sh-1829 patch ( in the source ) is already satified and has been selected by the user for installation.

The solver returns:
USTu_[S3:0][patch]fetchmsttfonts.sh-1829-0.noarch    // satified and selected by the user
US_s_[S3:0][script]fetchmsttfonts.sh-patch-fetchmsttfonts.sh-2-1322-1.noarch
US_s_[S3:0][message]fetchmsttfonts.sh-patch-message-1-1322-1.noarch
US_s_[S3:0][patch]fetchmsttfonts.sh-1322-0.noarch
US_s_[S3:0][script]fetchmsttfonts.sh-patch-fetchmsttfonts.sh-2-1829-1.noarch

The scripts will not be selected for installation again, cause they are satified which means that they have been already installed.

Duncan, could you please check the DB if the patch has already been installed ?

Markus, you have not only used you.suse.de:

2006-08-18 12:27:18 <0> westernhagen(4768) [zypp::SourceManager] SourceManager.cc(restore):464 SourceManager: =========================
2006-08-18 12:27:18 <0> westernhagen(4768) [zypp::SourceManager] SourceManager.cc(restore):464   known Sources 3
2006-08-18 12:27:18 <0> westernhagen(4768) [zypp::SourceManager] SourceManager.cc(restore):464     - Source[1|YaST|SUSE-Linux-10.1-DVD9-x86-x86_64-10.1-0-20060817-175650]{ftp://10.10.0.100/install/SLP/SUSE-10.1-DVD9-RC5/x86_64/DVD1(/); cache /var/lib/zypp/cache/Source.rh1we4}
2006-08-18 12:27:18 <0> westernhagen(4768) [zypp::SourceManager] SourceManager.cc(restore):464     - Source[2|YUM|20060818-101045]{http://ftp.leo.org/pub/comp/os/unix/linux/suse/suse/update/10.1(/); cache /var/lib/zypp/cache/Source.Nb0tWJ}
2006-08-18 12:27:18 <0> westernhagen(4768) [zypp::SourceManager] SourceManager.cc(restore):464     - Source[3|YUM|20060818-115935]{ftp://you.suse.de/%2Fpub/suse/update/10.1(/); cache /var/lib/zypp/cache/Source.C2QeL8}
2006-08-18 12:27:18 <0> westernhagen(4768) [zypp::SourceManager] SourceManager.cc(restore):464   deleted Sources 0
2006-08-18 12:27:18 <0> westernhagen(4768) [zypp::SourceManager] SourceManager.cc(restore):464 ========================================

Additional: I cannot find the patch fetchmsttfonts.sh-1322-0 on you.suse.de, although it should be available in S3:
US_s_[S3:0][patch]fetchmsttfonts.sh-1322-0.noarch


Comment 25 Marcus Meissner 2006-08-29 11:42:39 UTC
I will leave this system live (westernhagen.suse.de) for you to test today.

Comment 26 Stefan Schubert 2006-08-29 15:22:32 UTC
I am believe that is the solver. 
Comment 27 Stefan Schubert 2006-08-30 15:54:50 UTC
The patch requires the script. The script is satisfied. So it will not be triggered for installation. I have changed it in "isPresent":
--- ResolverContext.cc  (Revision 3783)
+++ ResolverContext.cc  (Arbeitskopie)
@@ -632,8 +632,12 @@
 
     bool res = ((status.staysInstalled() && !status.isIncomplete())
                || (status.isToBeInstalled() && !status.isNeeded())
-               || status.isUnneeded()
-               || status.isSatisfied());
+               || ((status.isUnneeded() || status.isSatisfied())
+                   // regarding only resolvables where the status is useful Bug:192535
+                   && item->kind() != ResTraits<Package>::kind
+                   && item->kind() != ResTraits<Script>::kind
+                   && item->kind() != ResTraits<Message>::kind)
+               );
 
    if (unneeded) *unneeded = status.isUnneeded();

Klaus, I am not really happy with this fix. Are there other possibilities ?
Comment 28 Marcus Meissner 2006-08-31 09:07:07 UTC
Klaus was not in CC ;)

Klaus?
Comment 29 Klaus Kämpf 2006-09-04 14:09:49 UTC
(as discussed with Stefan this morning)

Fix looks ok. But we need a testcase to verify.
Needinfo to Stefan now.
Comment 31 Marcus Meissner 2006-09-06 07:22:15 UTC
btw, i tested the fixed libzypp and it run the script now...
Comment 33 Marcus Meissner 2006-09-06 11:16:44 UTC
hmm.

there is fallout.

the "postgresq-server-1442" patch is now shown all the time, but does
not install packages.

I do not have postgresql-server the package installed.

I suspect this has something to do with the "message" within the patchfile.
Comment 34 Stefan Schubert 2006-09-07 16:13:08 UTC
I have fixed and have added a testcase for installation scripts:
patch-tests/script-test.xml

Message test follows...
Comment 35 Stefan Schubert 2006-09-14 14:26:03 UTC
Fixed and submitted to 10.1
Revision 4142
Comment 36 Anja Stock 2006-09-26 09:07:34 UTC
released
Comment 37 Stefan Schubert 2007-01-26 15:30:08 UTC
*** Bug 224401 has been marked as a duplicate of this bug. ***