PaulHowarth/Blog/2009-10-28

Wednesday 28th October 2009

Fedora Project

  • On Monday, ausil edited lat to exclude the sparc64 architecture, but neglected to add a reference to a corresponding bug as mandated in the Packaging Guidelines. This may well have been because there was no ExcludeArch tracker bug for the sparc64 architecture at all. So today I raised Bug #531446 (ExcludeArch Tracker for sparc64), then Bug #531450 (mono not available on sparc64), and then Bug #531451 (lat unavailable on sparc64) and set up the appropriate dependency hierarchy between these bugs. I was then able to add a reference to the latter bug in the spec file for lat.

  • Whilst looking at lat, I noticed a bunch of warnings during the build about the use of obsolete API's:

  • ./AboutDialog.cs(41,28): warning CS0618: `Gtk.AboutDialog.Name' is obsolete: `Use ProgramName instead'
    ./AboutDialog.cs(41,28): warning CS0618: `Gtk.AboutDialog.Name' is obsolete: `Use ProgramName instead'
    ./ProfileDialog.cs(205,44): warning CS0618: `Gtk.AboutDialog.Name' is obsolete: `Use ProgramName instead'
    ./ProfileDialog.cs(230,44): warning CS0618: `Gtk.AboutDialog.Name' is obsolete: `Use ProgramName instead'
    ./ProfileDialog.cs(205,44): warning CS0618: `Gtk.AboutDialog.Name' is obsolete: `Use ProgramName instead'
    ./ProfileDialog.cs(230,44): warning CS0618: `Gtk.AboutDialog.Name' is obsolete: `Use ProgramName instead'
    ./Window.cs(329,25): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(329,42): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(333,43): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(336,42): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(339,44): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(401,25): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(401,42): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(405,43): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(409,46): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(413,42): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(417,43): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(329,25): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(329,42): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(333,43): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(336,42): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(339,44): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(401,25): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(401,42): warning CS0612: `Gtk.Tooltips' is obsolete
    ./Window.cs(405,43): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(409,46): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(413,42): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    ./Window.cs(417,43): warning CS0612: `Gtk.ToolItem.SetTooltip(Gtk.Tooltips, string, string)' is obsolete
    Compilation succeeded - 14 warning(s)
  • Whilst this didn't prevent the build from completing, I figured it was going to be a problem at some point so after a great deal of googling to find documentation on the new ToolTips API in gtk-sharp 2.12 and later (there's basically no documentation and I eventually found an example I could use in the Muine project), I created this patch to get rid of the warnings:

  • diff -up lat-1.2.3/lat/AboutDialog.cs.dep lat-1.2.3/lat/AboutDialog.cs
    --- lat-1.2.3/lat/AboutDialog.cs.dep    2007-09-02 12:54:16.000000000 +0100
    +++ lat-1.2.3/lat/AboutDialog.cs        2009-10-27 16:49:48.009259770 +0000
    @@ -38,7 +38,7 @@ namespace lat 
                            ab.Comments = _desc;
                            ab.Copyright = _copy;
                            ab.Documenters = _docs;
    -                       ab.Name = Defines.PACKAGE;
    +                       ab.ProgramName = Defines.PACKAGE;
                            ab.TranslatorCredits = _translators;
                            ab.Version = Defines.VERSION;
                            ab.Icon = Global.latIcon;
    diff -up lat-1.2.3/lat/ProfileDialog.cs.dep lat-1.2.3/lat/ProfileDialog.cs
    --- lat-1.2.3/lat/ProfileDialog.cs.dep  2007-09-02 12:54:16.000000000 +0100
    +++ lat-1.2.3/lat/ProfileDialog.cs      2009-10-27 16:49:48.010419363 +0000
    @@ -202,7 +202,7 @@ namespace lat
                                            ab.Authors = vp.Authors;
                                            ab.Comments = vp.Description;
                                            ab.Copyright = vp.Copyright;
    -                                       ab.Name = vp.Name;
    +                                       ab.ProgramName = vp.Name;
                                            ab.Version = vp.Version;
                                            ab.Icon = vp.Icon;
     
    @@ -227,7 +227,7 @@ namespace lat
                                            ab.Authors = vp.Authors;
                                            ab.Comments = vp.Description;
                                            ab.Copyright = vp.Copyright;
    -                                       ab.Name = vp.Name;
    +                                       ab.ProgramName = vp.Name;
                                            ab.Version = vp.Version;
     
                                            ab.Run ();
    diff -up lat-1.2.3/lat/Window.cs.dep lat-1.2.3/lat/Window.cs
    --- lat-1.2.3/lat/Window.cs.dep 2007-09-02 12:54:16.000000000 +0100
    +++ lat-1.2.3/lat/Window.cs     2009-10-28 11:26:52.719168938 +0000
    @@ -326,17 +326,11 @@ namespace lat 
     
                    void SetBrowserTooltips ()
                    {
    -                       Tooltips t = new Tooltips ();
    -                       string tipMsg = null;
    -
    -                       tipMsg = "Create a new directory entry";
    -                       newMenuToolButton.SetTooltip (t,  tipMsg, tipMsg);                      
    +                       newMenuToolButton.TooltipText = "Create a new directory entry";
     
    -                       tipMsg = "Delete an entry from the directory";
    -                       deleteToolButton.SetTooltip (t,  tipMsg, tipMsg);                       
    +                       deleteToolButton.TooltipText = "Delete an entry from the directory";
     
    -                       tipMsg = "Manage templates for creating new entries";
    -                       templateToolButton.SetTooltip (t,  tipMsg, tipMsg);                     
    +                       templateToolButton.TooltipText = "Manage templates for creating new entries";
                    }
     
                    void TogglePages (bool pageOneState, bool pageTwoState, bool pageThreeState, bool pageFourState)
    @@ -398,23 +392,22 @@ namespace lat 
     
                    void SetupToolbar (ViewPlugin vp)
                    {
    -                       Tooltips t = new Tooltips ();
                            string tipMsg = null;
     
                            tipMsg = String.Format ("Create a new {0}", vp.Name.ToLower());
    -                       newMenuToolButton.SetTooltip (t,  tipMsg, tipMsg);                      
    +                       newMenuToolButton.TooltipText = tipMsg;
                            newMenuToolButton.Clicked += new EventHandler (viewDataTreeView.OnNewEntryActivate);
     
                            tipMsg = String.Format ("Edit the properties of a {0}", vp.Name.ToLower());
    -                       propertiesToolButton.SetTooltip (t,  tipMsg, tipMsg);                   
    +                       propertiesToolButton.TooltipText = tipMsg;
                            propertiesToolButton.Clicked += new EventHandler (viewDataTreeView.OnEditActivate);
                            
                            tipMsg = String.Format ("Delete a {0} from the directory", vp.Name.ToLower());
    -                       deleteToolButton.SetTooltip (t,  tipMsg, tipMsg);                       
    +                       deleteToolButton.TooltipText = tipMsg;
                            deleteToolButton.Clicked += new EventHandler (viewDataTreeView.OnDeleteActivate);
     
                            tipMsg = "Refreshes the data from the server";
    -                       refreshToolButton.SetTooltip (t,  tipMsg, tipMsg);                      
    +                       refreshToolButton.TooltipText = tipMsg;
                            refreshToolButton.Clicked += new EventHandler (viewDataTreeView.OnRefreshActivate);
     
                            ToggleButtons (true);
  • I updated lat with this patch and a couple of others from upstream svn, removed a bunch of things in the spec file that were only needed for compatibility with older distributions and did builds for devel and F-12, requesting that the F-12 build be tagged for the final release.

Local Packages

  • Updated perl-Convert-UUlib to 1.33 (handle yEnc files with part end=0 and total= more gracefully)


Recent