After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 386503 - Remove base version from file names and make help work again
Remove base version from file names and make help work again
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.10.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 399299 420950 438291 438712 439616 453442 458758 459842 462638 464227 465456 466568 468108 470373 473117 473538 474442 474631 475656 483482 483960 484971 486040 489465 493616 495222 496807 515483 523360 528700 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-12-16 14:05 UTC by Sebastian Breier
Modified: 2013-09-13 00:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
remove version from all gnome help calls (2.81 KB, patch)
2007-03-20 09:34 UTC, Götz Waschk
none Details | Review
better patch (351 bytes, patch)
2007-04-02 16:01 UTC, Frederic Crozat
needs-work Details | Review
Revised patch (6.79 KB, patch)
2007-04-14 01:41 UTC, Matthew Barnes
committed Details | Review
Patch (536 bytes, patch)
2007-05-11 10:01 UTC, Srinivasa Ragavan
rejected Details | Review
evolution-base_version-removal.patch (21.08 KB, patch)
2007-05-27 18:50 UTC, Gilles Dartiguelongue
needs-work Details | Review
evolution-base_version-removal-v2.patch (21.85 KB, patch)
2007-05-30 19:15 UTC, Gilles Dartiguelongue
none Details | Review
evolution-base_version-removal-missing.patch (2.49 KB, patch)
2007-05-30 20:12 UTC, Gilles Dartiguelongue
none Details | Review
Updated patch (21.99 KB, patch)
2007-05-31 19:27 UTC, Srinivasa Ragavan
committed Details | Review
Exchange patch to pick the right evolution (1.29 KB, patch)
2007-05-31 19:28 UTC, Srinivasa Ragavan
committed Details | Review
evolution-mail-makefile.am.patch (513 bytes, patch)
2007-06-09 19:57 UTC, Gilles Dartiguelongue
committed Details | Review

Description Sebastian Breier 2006-12-16 14:05:26 UTC
Please describe the problem:
When I click on the Menu item "Contents" in the "Help" menu or press the F1 key, the help doesn't open.

Steps to reproduce:
1. Open Help Contents (Menu) or press F1


Actual results:
Nothing happens.

Expected results:
The help contents should open.

Does this happen every time?
Yes.

Other information:
I'm using Ubuntu 7.04 / Evolution 2.9.3-0ubuntu3 / Gnome 2.17.2-0ubuntu1.
Comment 1 Sebastien Bacher 2006-12-16 14:42:15 UTC
Message printed to the log:

"(evolution-2.10:5401): Bonobo-WARNING **: Error: 'Unable to find help paths /usr/share/gnome/help/evolution-2.10 or /usr/share/gnome/help/evolution-2.10.Please check your installation'"
Comment 2 Sebastian Breier 2006-12-16 14:57:59 UTC
In Ubuntu: https://bugs.launchpad.net/distros/ubuntu/+source/evolution/+bug/76004
Comment 3 Sebastian Breier 2007-02-15 13:55:55 UTC
Still happening in 2.9.91.
Comment 4 Götz Waschk 2007-03-20 08:42:08 UTC
*** Bug 399299 has been marked as a duplicate of this bug. ***
Comment 5 Götz Waschk 2007-03-20 08:43:36 UTC
I can confirm this on Mandriva Cooker with evolution 2.10.0.
Comment 6 Jeff Cai 2007-03-20 09:26:54 UTC
One thing that differs with the previous version is that evolution.xml
installed under /usr/share/gnome/help/evolution, not
/usr/share/gnome/help/evolution-2.10. So yelp can't find it.

I looked into source tree and found that Makefile.am under evolution/help/C
doesn't exist again. I don't know why those files removed.
Comment 7 Götz Waschk 2007-03-20 09:28:39 UTC
Evolution is trying to open evolution-2.10/evolution-2.10.xml but the installed help document is evolution/evolution.xml, so we can either rename the help file and directory to the versioned name or make evolution look for the unversioned one.
Comment 8 Götz Waschk 2007-03-20 09:34:09 UTC
Created attachment 84951 [details] [review]
remove version from all gnome help calls
Comment 9 Claude Paroz 2007-04-02 08:10:19 UTC
This patch should be apply before 2.18.1, please.
Comment 10 Frederic Crozat 2007-04-02 16:01:53 UTC
Created attachment 85709 [details] [review]
better patch

previous patch was not fixing all help calls in evolution.
New patch is changing the other way around (evolution calls evolution-BASE_VERSION help file) but it requires changes in the source file from evolution.xml to evolution-1.10.xml (same for .omf file), which isn't very clean either. I'm not sure it could be done at install time using local-install makefile target.
Comment 11 Srinivasa Ragavan 2007-04-02 18:55:50 UTC
Frederic, I see compilation errors with your patch.

/usr/bin/install -c -m 644 ./C/evolution-2.10.xml /home/sragavan/opt/gnome218/share/gnome/help/evolution-2.10/C/evolution-2.10.xml
/usr/bin/install: cannot stat `./C/evolution-2.10.xml': No such file or directory
/usr/bin/install -c -m 644 ./en_GB/evolution-2.10.xml /home/sragavan/opt/gnome218/share/gnome/help/evolution-2.10/en_GB/evolution-2.10.xml
/usr/bin/install: cannot stat `./en_GB/evolution-2.10.xml': No such file or directory
/usr/bin/install -c -m 644 ./es/evolution-2.10.xml /home/sragavan/opt/gnome218/share/gnome/help/evolution-2.10/es/evolution-2.10.xml
/usr/bin/install: cannot stat `./es/evolution-2.10.xml': No such file or directory
/usr/bin/install -c -m 644 ./sv/evolution-2.10.xml /home/sragavan/opt/gnome218/share/gnome/help/evolution-2.10/sv/evolution-2.10.xml
/usr/bin/install: cannot stat `./sv/evolution-2.10.xml': No such file or directory
make[2]: *** [install-doc-docs] Error 1
Comment 12 Claude Paroz 2007-04-02 19:13:17 UTC
IMHO, the patch from Götz is better. If it isn't complete, we should find the missing references.
I don't see the point in adding the version number to the xml help file.
Comment 13 Srinivasa Ragavan 2007-04-03 05:56:47 UTC
Claude, I dont think changing the code would be the clean approach. The xml file name change should be ideal IMHO. 
Comment 14 Matthew Barnes 2007-04-13 19:10:19 UTC
I'm approving the DOC_MODULE patch based on comment #13.

Please commit to Subversion trunk and the gnome-2-18 branch.
Comment 15 Matthew Barnes 2007-04-13 19:42:57 UTC
Hmm, I think I was a bit hasty.  I don't like the idea of renaming xml and omf files for each new release.  Withdrawing my approval until I can think this over some more.
Comment 16 Matthew Barnes 2007-04-13 20:32:01 UTC
Frederic, can you clarify which help call were not working with the original patch, as you mentioned in comment #10?
Comment 17 Matthew Barnes 2007-04-14 01:41:49 UTC
Created attachment 86323 [details] [review]
Revised patch

I found the magic Bonobo call in shell/e-shell-window.c:

    bonobo_ui_util_set_ui (priv->ui_component,
                           PREFIX,
                           xmlfile,
                           "evolution-" BASE_VERSION, NULL);

Removing BASE_VERSION and the hyphen from the 'app_name' argument fixes the
Help -> Contents menu item.  This, combined with the original patch from
Götz Waschk, makes launching help work again throughout Evolution.
Comment 18 Srinivasa Ragavan 2007-04-16 06:28:41 UTC
Matthew, I still prefer to restore the old way of representing the xml rather than fixing the code to adapt to this. App name is still evolution-BASE_VERSION. The patch just works around the core issue. 

IIRC there were multiple requests to remove the BASE_VERSION from the evolution binary itself (specially from the panel hackers). If we take that together then the approach seems fine to me. 
Comment 19 Matthew Barnes 2007-04-16 15:01:10 UTC
I guess I don't understand what you regard as the "core issue".

I'm all for killing off BASE_VERSION in as many places as possible.
Comment 20 Srinivasa Ragavan 2007-04-17 03:45:39 UTC
(In reply to comment #19)
> I guess I don't understand what you regard as the "core issue".
Meant the xml file with out BASE version and binary with BASEVERSION and the inconsistency.
> 
> I'm all for killing off BASE_VERSION in as many places as possible.
Me too. Lets fix it all instead of just one place :)

> 

Comment 21 cat 2007-05-07 14:26:58 UTC
I can confirm this bug with 2.10.0 under SLES10.
Comment 22 Srinivasa Ragavan 2007-05-11 10:01:55 UTC
Created attachment 88001 [details] [review]
Patch

This is not a final solution. It should solve the issue at makefile level and leave the sitation to what it was before GDU migration. We need to take up dropping the version altogether.
Comment 23 Øystein Gisnås 2007-05-12 21:21:19 UTC
Srini: how strict is the dependency between the app name and the name of the help file. If there is no strict dependency, I don't see the point in temporarily going back to versioned help file.

Debian will apply Matthew's patch for the already released versions (2.10.1), since Srini's patch breaks. To make Srini's patch work, at least the file names in all locales (not just C) must be renamed or copied like in his patch. In addition, the .omf.in file must be renamed. All that hassle is not worth it in already released versions.

Why not just try to go for unversioned appname? Maybe that's feasible within the 2.12 cycle?
Comment 24 Srinivasa Ragavan 2007-05-13 01:10:43 UTC
Definitely possible for 2.12 cycle. I dont remember the bug number, but I remember reviewing a similiar patch for that. (Directory/version) It wasn't complete. 

Im fine for pushing Matthew's patch for 2.10.x but I want this to be solved in the right way for 2.12.
Comment 25 André Klapper 2007-05-14 16:50:02 UTC
*** Bug 420950 has been marked as a duplicate of this bug. ***
Comment 26 André Klapper 2007-05-15 20:44:59 UTC
*** Bug 438291 has been marked as a duplicate of this bug. ***
Comment 27 André Klapper 2007-05-16 14:13:01 UTC
*** Bug 438712 has been marked as a duplicate of this bug. ***
Comment 28 Gilles Dartiguelongue 2007-05-16 16:12:46 UTC
adding to the todo for tonight :)
Comment 29 Gilles Dartiguelongue 2007-05-16 23:24:51 UTC
nuking BASE_VERSION requires a "lot" of work in Makefile.am and some file moves (just to remove useless rules in makefiles). I've started this work alongside some cleaning in the Makefile.am so clear some linking warnings (plugin folder for example).

The question I had in mind was, do we want to nuke BASE_VERSION for conduits (probably yes) and for OAFIDs (don't know) ?

This will probably result in a biggish patch updating makefile.am to automake 1.9.
FTR, I've been building evo, e-d-s and gtkhtml with automake-1.10 for a month and  it works already, the above remark will probably just reduce whining about deprecated use of some variables and stuff like that.

I'd like to know if this will be a problem for integration into the trunk ?
Comment 30 Srinivasa Ragavan 2007-05-17 03:35:15 UTC
(In reply to comment #29)
> nuking BASE_VERSION requires a "lot" of work in Makefile.am and some file moves
> (just to remove useless rules in makefiles). I've started this work alongside
> some cleaning in the Makefile.am so clear some linking warnings (plugin folder
> for example).

Great.

> 
> The question I had in mind was, do we want to nuke BASE_VERSION for conduits
> (probably yes) and for OAFIDs (don't know) ?

Im not sure. We should maintain that. We are looking at just version removal from files. 

> 
> This will probably result in a biggish patch updating makefile.am to automake
> 1.9.
> FTR, I've been building evo, e-d-s and gtkhtml with automake-1.10 for a month
> and  it works already, the above remark will probably just reduce whining about
> deprecated use of some variables and stuff like that.
> 
> I'd like to know if this will be a problem for integration into the trunk ?
> 

I dont know/see if there will be any problems  with automake-1.10. 


Comment 31 André Klapper 2007-05-20 23:05:03 UTC
*** Bug 439616 has been marked as a duplicate of this bug. ***
Comment 32 Matthew Barnes 2007-05-25 18:09:37 UTC
Srini asked me to commit the patch in comment #17 to the gnome-2-18 branch.

Revision 33578.
Comment 33 Gilles Dartiguelongue 2007-05-27 18:50:46 UTC
Created attachment 88898 [details] [review]
evolution-base_version-removal.patch

This patch contains (hopefuly) all necessary Makefile.am changes to remove base version from filenames. It has a little more than that (some changes wrt linking) but these other changes shouldn't hurt. I requires that the patch applied to stable be applied to trunk as well so help will open :)

I've been running this for half a day now and I'm quite confident that the other changes will not break evo like hell but if you are not so sure, feel free to disregard them. I'll resubmit work for makefile's in another bug.
Comment 34 Gilles Dartiguelongue 2007-05-27 19:00:46 UTC
forgot to add that the way I did the changes implies that some files have to be moved (.in.in to .in). Here is the status of my copy of the tree :

$ svn st -q |egrep "A"
A  +   addressbook/gui/component/GNOME_Evolution_Addressbook.server.in
A  +   addressbook/gui/component/apps_evolution_addressbook.schemas.in
A  +   shell/apps_evolution_shell.schemas.in
A  +   shell/GNOME_Evolution_Test.server.in
A  +   shell/GNOME_Evolution_Shell.server.in
A  +   plugins/bogo-junk-plugin/bogo-junk-plugin.schemas.in
A  +   plugins/default-mailer/apps-evolution-mail-prompts-checkdefault.schemas.in
A  +   plugins/mail-notification/apps-evolution-mail-notification.schemas.in
A  +   mail/GNOME_Evolution_Mail.server.in
A  +   mail/evolution-mail.schemas.in
A  +   calendar/gui/apps_evolution_calendar.schemas.in
A  +   calendar/gui/GNOME_Evolution_Calendar.server.in
Comment 35 Gilles Dartiguelongue 2007-05-27 21:56:20 UTC
ok, after checking if everything was fine on a fresh svn checkout with make distcheck, it appears some of the change to SMIME part of the Makefile are not so unharmful as I thought. I have yet to find out why and I will produce a new patch ASAP (unless somebody else has the time to do it :)), but for now I need some sleep.
Comment 36 Gilles Dartiguelongue 2007-05-30 19:15:45 UTC
Created attachment 89064 [details] [review]
evolution-base_version-removal-v2.patch

This patch is a stripped down/reworked version of the preceding patch.

It contains :
 - cosmetic fixes (whitespaces, tabs)
 - the real stuff (tm)

You'll need to svn move the following schemas (from .in.in to .in) :
 addressbook/gui/component/apps_evolution_addressbook.schemas.in.in
 shell/apps_evolution_shell.schemas.in.in
 plugins/bogo-junk-plugin/bogo-junk-plugin.schemas.in.in
 plugins/default-mailer/apps-evolution-mail-prompts-checkdefault.schemas.in.in
 plugins/mail-notification/apps-evolution-mail-notification.schemas.in.in
 mail/evolution-mail.schemas.in.in
 calendar/gui/apps_evolution_calendar.schemas.in.in

I couldn't test this fix since I need to clean up my system from the previous one but it passes make distcheck.
Comment 37 Gilles Dartiguelongue 2007-05-30 20:12:59 UTC
Created attachment 89070 [details] [review]
evolution-base_version-removal-missing.patch

hehe, thanks srag for noticing this.

This patch replaces the part applying on shell/Makefile.am and should just generate evolution instead of evolution-$(BASE_VERSION). The second part is the necessary change to the .desktop file.
Comment 38 Srinivasa Ragavan 2007-05-31 13:37:27 UTC
I will review this tonight and get that in for 2.11.3. Thanks Gilles for your awesome work!
Comment 39 Srinivasa Ragavan 2007-05-31 18:26:30 UTC
Gilles, I think he .pc files aren't installed with this patch.
Comment 40 Srinivasa Ragavan 2007-05-31 19:27:48 UTC
Created attachment 89127 [details] [review]
Updated patch
Comment 41 Srinivasa Ragavan 2007-05-31 19:28:32 UTC
Created attachment 89128 [details] [review]
Exchange patch to pick the right evolution
Comment 42 Srinivasa Ragavan 2007-05-31 19:34:00 UTC
These two patches work perfectly. I didn't see any issues while reviewing. But still, I would prefer to get a one more round of review on this.

Matthew?
Comment 43 Srinivasa Ragavan 2007-06-03 15:26:21 UTC
Committed.
Comment 44 Gilles Dartiguelongue 2007-06-09 19:57:37 UTC
Created attachment 89659 [details] [review]
evolution-mail-makefile.am.patch

Without this patch, evolution wouldn't compile Evolution-Mail-common.c.
I wonder how it was still working :)
Comment 45 Matthew Barnes 2007-06-09 20:06:05 UTC
Good catch.  Please commit to trunk and stable branch (if necessary).

Also, changing the summary to reflect the expanded scope of this bug.
Comment 46 Matthew Barnes 2007-06-09 20:59:36 UTC
Patch in comment #44 committed to Subversion trunk (revision 33665).
Comment 47 André Klapper 2007-07-04 10:34:27 UTC
*** Bug 453442 has been marked as a duplicate of this bug. ***
Comment 48 André Klapper 2007-07-21 01:02:40 UTC
*** Bug 458758 has been marked as a duplicate of this bug. ***
Comment 49 André Klapper 2007-07-24 11:30:01 UTC
*** Bug 459842 has been marked as a duplicate of this bug. ***
Comment 50 André Klapper 2007-08-02 13:17:50 UTC
*** Bug 462638 has been marked as a duplicate of this bug. ***
Comment 51 André Klapper 2007-08-08 15:41:28 UTC
*** Bug 464227 has been marked as a duplicate of this bug. ***
Comment 52 Susana 2007-08-13 01:29:31 UTC
*** Bug 465456 has been marked as a duplicate of this bug. ***
Comment 53 André Klapper 2007-08-14 20:20:57 UTC
*** Bug 466568 has been marked as a duplicate of this bug. ***
Comment 54 André Klapper 2007-08-19 14:45:58 UTC
*** Bug 468108 has been marked as a duplicate of this bug. ***
Comment 55 André Klapper 2007-09-03 08:45:56 UTC
*** Bug 470373 has been marked as a duplicate of this bug. ***
Comment 56 André Klapper 2007-09-04 00:52:23 UTC
*** Bug 473117 has been marked as a duplicate of this bug. ***
Comment 57 André Klapper 2007-09-04 13:46:55 UTC
*** Bug 473538 has been marked as a duplicate of this bug. ***
Comment 58 André Klapper 2007-09-10 12:00:22 UTC
*** Bug 474631 has been marked as a duplicate of this bug. ***
Comment 59 André Klapper 2007-09-10 12:00:30 UTC
*** Bug 474442 has been marked as a duplicate of this bug. ***
Comment 60 André Klapper 2007-09-11 01:06:24 UTC
*** Bug 475656 has been marked as a duplicate of this bug. ***
Comment 61 André Klapper 2007-10-05 14:07:59 UTC
*** Bug 483482 has been marked as a duplicate of this bug. ***
Comment 62 André Klapper 2007-10-06 11:05:45 UTC
*** Bug 483960 has been marked as a duplicate of this bug. ***
Comment 63 Susana 2007-10-09 21:09:38 UTC
*** Bug 484971 has been marked as a duplicate of this bug. ***
Comment 64 André Klapper 2007-10-16 00:12:36 UTC
*** Bug 486040 has been marked as a duplicate of this bug. ***
Comment 65 André Klapper 2007-10-24 12:29:18 UTC
*** Bug 489465 has been marked as a duplicate of this bug. ***
Comment 66 André Klapper 2007-11-05 06:53:04 UTC
*** Bug 493616 has been marked as a duplicate of this bug. ***
Comment 67 André Klapper 2007-11-11 11:52:41 UTC
*** Bug 495222 has been marked as a duplicate of this bug. ***
Comment 68 André Klapper 2007-11-14 20:39:52 UTC
*** Bug 496807 has been marked as a duplicate of this bug. ***
Comment 69 André Klapper 2008-02-10 01:13:54 UTC
*** Bug 515483 has been marked as a duplicate of this bug. ***
Comment 70 André Klapper 2008-03-20 15:10:00 UTC
*** Bug 523360 has been marked as a duplicate of this bug. ***
Comment 71 André Klapper 2008-04-18 14:36:41 UTC
*** Bug 528700 has been marked as a duplicate of this bug. ***