Bug 3764 - Wine is not creating Program Files directories
Summary: Wine is not creating Program Files directories
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Damien Lallement
QA Contact:
URL:
Whiteboard: MGA2TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 18:23 CET by Frank Griffin
Modified: 2013-06-26 16:10 CEST (History)
5 users (show)

See Also:
Source RPM: wine
CVE:
Status comment:


Attachments

Description Frank Griffin 2011-12-15 18:23:38 CET
If you delete .wine on a 64-bit system, and then execute a Windows app to cause Wine to rebuild it, drive_c contains only a windows subdirectory which itself has system and syswow64 subdirectories.

There are no "Program Files" or "Program Files (x86)" subdirectories, and the registry has no "ProgramFilesDir" and "CommonFilesDir" values set.

This prevents most windows apps from installing.

This is a pretty recent change, as this was not happening a month ago.  Neither did we get a syswow64 directory, so I'm guessing that this is some sort of configuration choice.
Comment 1 Manuel Hiebel 2011-12-15 19:39:31 CET
Hi, thanks for reporting this bug.
As there is no maintainer for this package I added the committers in CC.

(The Wine development release 1.3.34 is available.)

(Please set the status to 'assigned' if you are working on it)

CC: (none) => anssi.hannula, dmorganec, fundawang, lists.jjorge
Source RPM: wine64-1.3.34-1.mga2.x86_64.rpm => wine

Comment 2 Lucien XU 2011-12-27 22:38:50 CET
I couldn't reproduce it here.
Maybe it is because I runned winecfg, but both 32 and 64 winecfg created Program Files (or Program Files (x86))

CC: (none) => sfietkonstantin

Comment 3 Frank Griffin 2011-12-28 00:36:15 CET
This doesn't reproduce reliably.  It will fail repeatedly, and I'll leave it for a couple of weeks (with intervening updates), and all of a sudden it will work.

OTOH, I don't usually run winecfg explicitly until this has actually worked (and then to redefine the D-disk).  So it could be that winecfg invoked explicitly is doing something that just invoking a wine app with uninitialized directories doesn't.

I know something's wrong here, but I hven't the faintest  idea of how to debug it. If you  can suggest  logging or debugging  steps, I can beat on it until it reproduces.
Comment 4 Frank Griffin 2012-01-24 02:06:12 CET
I think I've found the key.

The problem occurs if you do a 
     rm -fR .wine/*
and then do something that should cause Wine to rebuild the .wine directory infrastructure.

If you  do 
     rm -fR .wine
     mkdir .wine
and the do the same thing, it works.

Something, probably the wine server, is retaining a link to the .wine directory and some sort of cached contents which survives the first rm.
José Jorge 2012-01-24 13:09:22 CET

CC: lists.jjorge => (none)

Remco Rijnders 2012-02-18 10:25:15 CET

Assignee: bugsquad => supp

Comment 5 Marja Van Waes 2012-05-26 13:06:15 CEST
Hi,

This bug was filed against cauldron, but we do not have cauldron at the moment.

Please report whether this bug is still valid for Mageia 2.

Thanks :)

Cheers,
marja

Keywords: (none) => NEEDINFO

Frank Griffin 2012-06-12 21:33:32 CEST

Keywords: NEEDINFO => (none)
Whiteboard: (none) => MGA2TOO

Comment 6 Tomas Kindl 2012-07-01 14:09:55 CEST
Resetting assignee to bugsquad as I no longer maintain this package...

Assignee: supp => bugsquad

Comment 7 Damien Lallement 2013-06-25 21:03:17 CEST
Seems to be a wine bug and nothing related to package.
Did you reported it upstream?
Do you still reproduce in cauldron?

Status: NEW => ASSIGNED
CC: (none) => mageia
Assignee: bugsquad => mageia

Comment 8 Frank Griffin 2013-06-26 16:04:41 CEST
I can still reproduce it in Cauldron.  

Download DVDCopy from http://www.dvdfab.com , install it in a fresh .wine directory, i. e. delete the current one and do a "mkdir .wine".  The install will put up a dialog about "updating your wine configuration", and then complete normally.

Now do "rm -fR .wine/*" and try the install again.  You'll get no "Updating..." dialog.  You'll get the language prompt from the DVDFab install, and then an immediate error saying that the 64-bit Program Files directory can't be found.

I did not report it upstream.  If you have a URL for the wine bugtracker, I'll be happy to.
Comment 9 Damien Lallement 2013-06-26 16:08:56 CEST
Ok, so it's not a packaging issue.
Thanks for your test Frank.
I advise you to report it here: http://bugs.winehq.org/
But I think they will answer you it's a bug from your side as it seems logical, if you delete directory content, no to be able to work as expected.
I'm closing bug here. Thanks!

Status: ASSIGNED => RESOLVED
Resolution: (none) => INVALID

Comment 10 Frank Griffin 2013-06-26 16:10:18 CEST
Found the specific cause.  Wince creates a file in .wine called ".update-timestamp" which is not deleted by the "rm -fR .wine/*".  That file being present is what causes the problem.  If I delete it manually, the reproducible case works fine.

Not sure whether this is worth reporting or not.

Note You need to log in before you can comment on or make changes to this bug.