Wiki . Forums . Bugs . Translation . Privacy Policy | Search . Simple . Advanced | Reports . Help | Matrix . 10.x . 11.x . 12.x . 13.x . Future . Recent . Contribs

Bug 8264 - console license page uses whiptail
Summary: console license page uses whiptail
Status: CLOSED FIXED
Alias: None
Product: SME Server 9.X
Classification: SME Server
Component: console (show other bugs)
Version: Unknown
Hardware: --- ---
: P3 normal
Target Milestone: 9.0b4
Assignee: SME Server bug team
QA Contact: SME Server bug team
URL:
: 2535 2657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-08 16:45 CET by Ian Wells
Modified: 2024-03-14 20:28 CET (History)
3 users (show)

See Also:
Package: multiple-packages


Attachments
SME9b3 licence screen (150.36 KB, image/png)
2014-04-17 09:29 CEST, Terry Fage
Details
SME9b4 licence screen (150.45 KB, image/png)
2014-04-17 09:30 CEST, Terry Fage
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Wells 2014-03-08 16:45:25 CET
Question: Is there a need to support multiple licenses, or just one file?

support.pl uses whiptail (now provided by newt) it is very ugly on SME 9

It is possible to use dialog with --textbox to display a license file
I have added a new method in console.pm, and then modifying support.pl

=head2 textbox

A  text  box  lets  you display the contents of a text file in a dialog box.
It is like a simple text file viewer.

=cut

sub textbox
{
    my $self = shift;
    my %params = @_;
    my $title  = $params{title};
    my $file   = $params{file};
    my $height = $params{height} || '20';
    my $width  = $params{width} || SCREEN_COLUMNS;
    $self->screen("--title", $title,
                  "--textbox", $file,
                  $height,
                  $width,
                 );
}


It needs more work after I return, maybe multiple bugs.

Introduce textbox in console.pm
Move support.pl to smeserver-support from e-smith-base
Modify support.pl to display correct license for SME Server
Modify support.pl to display correct header for SME Server (and not the current "Mitel Networks Corporation support and licensing information")
newt and authconfig may longer be needed.
Comment 13 Jean-Philippe Pialasse 2024-03-14 20:28:10 CET
*** Bug 2535 has been marked as a duplicate of this bug. ***
Comment 12 Jean-Philippe Pialasse 2024-03-14 20:17:13 CET
*** Bug 2657 has been marked as a duplicate of this bug. ***
Comment 11 Ian Wells 2014-04-17 23:09:54 CEST
Closing, released in Beta 4
Comment 10 Terry Fage 2014-04-17 09:30:36 CEST
Bug is Verified
Comment 9 Terry Fage 2014-04-17 09:30:20 CEST
Created attachment 4616 [details]
SME9b4 licence screen

Licence screen showing changes etc
Comment 8 Terry Fage 2014-04-17 09:29:25 CEST
Created attachment 4615 [details]
SME9b3 licence screen

VERIFICATION
= Environment: SME9.0b3 and SME9.0b4 ESXi 5.5 VM.

= Original problem:
Bug 8264 - Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264]

= Resolution:
This removes the old support.pl

e-smith-base-5.4.0-61.el6.sme.noarch

%changelog
* Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 5.4.0-61.sme
- Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264]

With this update the support menu is removed from the console options.
The new updated support.pl will be created in smeserver-support next

= Current version installed:
[root@sme9364 ~]# cat /etc/e-smith-release
SME Server release 9.0beta3

[root@sme9364 ~]# uname -r
2.6.32-431.3.1.el6.x86_64

[root@sme9364 ~]# rpm -qa e-smith-base
e-smith-base-5.4.0-55.el6.sme.noarch

[root@sme9364 ~]# rpm -qa e-smith-lib
e-smith-lib-2.4.0-11.el6.sme.noarch

[root@sme9364 ~]# rpm -qa smeserver-support
smeserver-support-2.4.0-20.el6.sme.noarch

=Testing:
[root@sme9364 ~]# console
Select item 7 View Support and Licensing Information

1) check the license screen with SME Beta 3 or earlier to see the 'ugly' view
See attached image

3) check support.pl has moved from e-smith-base to smeserver-support
[root@sme9364 ~]# rpm -ql e-smith-base | grep support.pl
/sbin/e-smith/console-menu-items/support.pl
[root@sme9364 ~]# rpm -ql smeserver-support | grep support.pl
[root@sme9364 ~]#

= Updated version installed:
[root@sme9b464 ~]# cat /etc/e-smith-release
SME Server release 9.0beta4

[root@sme9b464 ~]# uname -r
2.6.32-431.11.2.el6.x86_64

[root@sme9b464 ~]# rpm -qa e-smith-base
e-smith-base-5.6.0-4.el6.sme.noarch

[root@sme9b464 ~]# rpm -qa e-smith-lib
e-smith-lib-2.4.0-14.el6.sme.noarch

[root@sme9b464 ~]# rpm -qa smeserver-support
smeserver-support-2.6.0-1.el6.sme.noarch

[root@sme9364 ~]# console
Select item 7 View Support and Licensing Information

2) With Beta 4 verify that the license screen has changed
See attached image of SME9b4 in comment above

3) check support.pl has moved from e-smith-base to smeserver-support
[root@sme9b464 ~]# rpm -ql e-smith-base | grep support.pl
[root@sme9b464 ~]# rpm -ql smeserver-support | grep support.pl
/sbin/e-smith/console-menu-items/support.pl

= Problem fixed:
Remove support.pl from e-smith-base and move to smeserver-support

= Verified or Reopen:
VERIFIED

= DOCUMENTATION IMPACT:
Nil

= Suggested release notes:
%changelog
* Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 5.4.0-61.sme
- Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264]
Comment 7 Terry Fage 2014-04-16 14:32:52 CEST
OK, I will look after this one
Comment 6 Ian Wells 2014-04-15 15:44:42 CEST
(In reply to Stephane de Labrusse from comment #5)
> question how verify this bug since the packages asked are more recent.

In general it is OK to use a newer package.

To verify this bug I would like to see
1) check the license screen with SME Beta 3 or earlier to see the 'ugly' view

2) With Beta 4 verify that the license screen has changed

3) check support.pl has moved from e-smith-base to smeserver-support
(rpm -ql e-smith-base | grep support.pl and rpm -ql smeserver-support | grep support.pl preferably for SME 9 Beta 3 and Beta 4 - I may have the RPM command slightly wrong as its from memory.)
Comment 5 Stephane de Labrusse 2014-04-15 15:30:56 CEST
(In reply to Ian Wells from comment #4)
> Three packages are needed for the full fix
> 
> e-smith-lib-2.4.0-13.el6.sme.noarch
> e-smith-base-5.4.0-61.el6.sme.noarch
> smeserver-support-2.4.0-21.el6.sme.noarch
> 
> 
> Updated support.pl added back in smeserver-support-2.4.0-21.el6.sme.noarch

question how verify this bug since the packages asked are more recent.

# rpm -qa e-smith-lib
e-smith-lib-2.4.0-14.el6.sme.noarch

# rpm -qa e-smith-base
e-smith-base-5.6.0-4.el6.sme.noarch

# rpm -qa smeserver-support
smeserver-support-2.6.0-1.el6.sme.noarch
Comment 4 Ian Wells 2014-03-16 18:49:22 CET
Three packages are needed for the full fix

e-smith-lib-2.4.0-13.el6.sme.noarch
e-smith-base-5.4.0-61.el6.sme.noarch
smeserver-support-2.4.0-21.el6.sme.noarch


Updated support.pl added back in smeserver-support-2.4.0-21.el6.sme.noarch

%changelog
* Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 2.4.0-21.sme
- Move support.pl from e-smith-base to smeserver-support [SME: 8264]
- This console license page now uses dialog's textbox.

support.pl is now essentially the following

    #------------------------------------------------------------
    # SUPPORT:
    #------------------------------------------------------------
    my ($self, $console, $db) = @_;
    my $licenseFile = esmith::util::getLicenseFile();
    my ($rc, $choice) = $console->textbox
    (
        title => gettext('Support and licensing information'),
        file => $licenseFile,
    );


The removal of whiptail use itself will be a new bug.
Comment 3 Ian Wells 2014-03-16 18:32:02 CET
This removes the old support.pl

e-smith-base-5.4.0-61.el6.sme.noarch

%changelog
* Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 5.4.0-61.sme
- Remove support.pl from e-smith-base and move to smeserver-support [SME: 8264]

With this update the support menu is removed from the console options.
The new updated support.pl will be created in smeserver-support next.
Comment 2 Ian Wells 2014-03-16 18:19:54 CET
Part 1 Add new functions to e-smith-lib

e-smith-lib-2.4.0-13.el6.sme.noarch
%changelog
* Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 2.4.0-13.sme
- Add textbox() to console.pm, getLicenseFile to util.pm [SME: 8264]

getLicenseFile() will return the first license file, alphabetically. In SME Server 9.0 there is only one file. It will also pick the correct language variant if there is one.

textbox() is a simple text file viewer, which can be used to display the license file.

Part 2 will change support.pl to use these new functions.
Comment 1 Charlie Brady 2014-03-15 10:23:46 CET
(In reply to Ian Wells from comment #0)

> It needs more work after I return, maybe multiple bugs.
> 
> Introduce textbox in console.pm
> Move support.pl to smeserver-support from e-smith-base
> Modify support.pl to display correct license for SME Server
> Modify support.pl to display correct header for SME Server (and not the
> current "Mitel Networks Corporation support and licensing information")

Sounds good.

> newt and authconfig may longer be needed.

I guess you mean "may no longer" ...