Your message dated Tue, 20 May 2025 19:49:00 +0000
with message-id <e1uhsxq-00bvg4...@fasolo.debian.org>
and subject line Bug#282850: fixed in sysv-rc-conf 1.0.0-1
has caused the Debian Bug report #282850,
regarding sysv-rc-conf: easier configuration of representation
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
282850: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282850
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Subject: sysv-rc-conf: easier configuration of representation
Package: sysv-rc-conf
Version: 0.99-6
Severity: normal
Tags: patch
*** Please type your report below this line ***

Hello,

representation of sysv-rc-conf cuts of the names of the init-scripts for 
visualisation on 80x50, i think.

The variables in the script are 
LABEL_WIDTH => 10        # View in the config-screen
LIST_SN_LENGTH => 12     # View in the '--list'-mode
and additionally some direct values in the script.

patch1 replaces the "hardcoded" values with the LABEL_WIDTH.

patch2 does one step more, it replaces the values and LIST_SN_LENGTH with 
LABEL_WIDTH,
so there is just one variable.

I cannot make LABEL_WIDTH a commandline-Parameter or modify the script to parse 
a config-file,
e.g. /etc/default/sysv-rc-conf.
A more comfortable way would be to calculate the LABEL_WIDTH resp. to COLUMNS 
and the filename-length of the (current) init.d/-scripts,
but that is work for someone who knows perl?

Greetings
christian


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sysv-rc-conf depends on:
ii  libcurses-ui-perl             0.9607-1   curses-based OO user interface fra
ii  sysv-rc                       2.87dsf-8  System-V-like runlevel change mech

sysv-rc-conf recommends no packages.

sysv-rc-conf suggests no packages.

-- no debconf information

___________________________________________________________
Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! 
http://produkte.web.de/go/02/

--- sysv-rc-conf_old	2007-01-26 15:56:28.000000000 +0100
+++ sysv-rc-conf_new1	2009-12-03 06:25:36.000000000 +0100
@@ -31,8 +31,8 @@
     BOTTOM_WIN_HEIGHT   => 4,
     DEFAULT_K_PRI       => 80,
     DEFAULT_S_PRI       => 20,
-    LABEL_WIDTH         => 10,
-    LIST_SN_LENGTH      => 12,
+    LABEL_WIDTH         => 22,
+    LIST_SN_LENGTH      => 22,
     LIST_SN_PAD         => 1,
     MAX_ROWS            => 8,
     TOP_LABEL_HEIGHT    => 2,
@@ -791,7 +791,7 @@
 {
     my ($screen, $sn, $row) = @_;
 
-    for (my $i = 0, my $right_n = 12; $i <= $#show_rls; $i++, $right_n += 8) {
+    for (my $i = 0, my $right_n = LABEL_WIDTH; $i <= $#show_rls; $i++, $right_n += 8) {
 	my $on_or_off = 0;
         my $initial_state = 0;
 	# We only want to show S\d\d services as selected. 
@@ -830,7 +830,7 @@
 {
     my ($screen, $sn, $row) = @_;
 
-    for (my $i = 0, my $right_n = 11; $i <= $#show_rls; $i++, $right_n += 8) {
+    for (my $i = 0, my $right_n = LABEL_WIDTH; $i <= $#show_rls; $i++, $right_n += 8) {
 	my $text = exists $runlevels{$sn}{$show_rls[$i]}
 		    ? $runlevels{$sn}{$show_rls[$i]}
 		    : '';
@@ -867,10 +867,11 @@
 
     my @label_rls = @show_rls;
 
-    my $text = 'service      ' . shift @label_rls;
+    my $firstlabel = "service";
+    my $text = $firstlabel . " " x (LABEL_WIDTH + 1 - length($firstlabel)) . shift @label_rls;
     foreach (@label_rls) { $text .= "       $_" };
     $text .= "\n";
-    $text .= "-" x 76;
+    $text .= "-" x (LABEL_WIDTH + (length($opts{show}) * 8));
 
     $window->add(
 	undef, 'Label',
--- sysv-rc-conf_old	2007-01-26 15:56:28.000000000 +0100
+++ sysv-rc-conf_new2	2009-12-03 06:25:28.000000000 +0100
@@ -31,8 +31,7 @@
     BOTTOM_WIN_HEIGHT   => 4,
     DEFAULT_K_PRI       => 80,
     DEFAULT_S_PRI       => 20,
-    LABEL_WIDTH         => 10,
-    LIST_SN_LENGTH      => 12,
+    LABEL_WIDTH         => 22,
     LIST_SN_PAD         => 1,
     MAX_ROWS            => 8,
     TOP_LABEL_HEIGHT    => 2,
@@ -214,8 +213,8 @@
     # There was an argument to --list
     my $opt_sn = $opts{chkcfg_list};
     foreach my $sn (sort keys %runlevels) {
-        my $output = substr $sn, 0, LIST_SN_LENGTH;
-        $output .= " " until length $output >= LIST_SN_LENGTH + LIST_SN_PAD;
+        my $output = substr $sn, 0, LABEL_WIDTH;
+        $output .= " " until length $output >= LABEL_WIDTH + LIST_SN_PAD;
 
         foreach my $rl (sort keys %{$runlevels{$sn}}) {
             $output .= "$rl:";
@@ -791,7 +790,7 @@
 {
     my ($screen, $sn, $row) = @_;
 
-    for (my $i = 0, my $right_n = 12; $i <= $#show_rls; $i++, $right_n += 8) {
+    for (my $i = 0, my $right_n = LABEL_WIDTH; $i <= $#show_rls; $i++, $right_n += 8) {
 	my $on_or_off = 0;
         my $initial_state = 0;
 	# We only want to show S\d\d services as selected. 
@@ -830,7 +829,7 @@
 {
     my ($screen, $sn, $row) = @_;
 
-    for (my $i = 0, my $right_n = 11; $i <= $#show_rls; $i++, $right_n += 8) {
+    for (my $i = 0, my $right_n = LABEL_WIDTH; $i <= $#show_rls; $i++, $right_n += 8) {
 	my $text = exists $runlevels{$sn}{$show_rls[$i]}
 		    ? $runlevels{$sn}{$show_rls[$i]}
 		    : '';
@@ -867,10 +866,11 @@
 
     my @label_rls = @show_rls;
 
-    my $text = 'service      ' . shift @label_rls;
+    my $firstlabel = "service";
+    my $text = $firstlabel . " " x (LABEL_WIDTH + 1 - length($firstlabel)) . shift @label_rls;
     foreach (@label_rls) { $text .= "       $_" };
     $text .= "\n";
-    $text .= "-" x 76;
+    $text .= "-" x (LABEL_WIDTH + (length($opts{show}) * 8));
 
     $window->add(
 	undef, 'Label',

--- End Message ---
--- Begin Message ---
Source: sysv-rc-conf
Source-Version: 1.0.0-1
Done: Andrew Bower <and...@bower.uk>

We believe that the bug you reported is fixed in the latest version of
sysv-rc-conf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 282...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andrew Bower <and...@bower.uk> (supplier of updated sysv-rc-conf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 19 May 2025 00:11:23 +0100
Source: sysv-rc-conf
Architecture: source
Version: 1.0.0-1
Distribution: experimental
Urgency: medium
Maintainer: Andrew Bower <and...@bower.uk>
Changed-By: Andrew Bower <and...@bower.uk>
Closes: 282850 317919 462197 463813 500928 515176 559284
Changes:
 sysv-rc-conf (1.0.0-1) experimental; urgency=medium
 .
   [ Andrew Bower ]
   * New upstream release.
     - drop patches adopted upstream
     - new upstream maintainer and project location with signed upstream tags
     - fix updating of outdated service cache lines (Closes: #462197)
     - add --width option to change service label width
       (Closes: #282850, #515176, #559284)
       Thanks: Thomas Hooge <tho...@hoogi.de>
     - auto-size service label width by default (Closes: #500928)
     - don't create symlinks for non-existent initscripts (Closes: #463813)
     - ignore hidden symlinks (Closes: #317919) Thanks: Thomas Hood
Checksums-Sha1:
 af6c83bab8e23635fc897ac598e742731910cff0 1262 sysv-rc-conf_1.0.0-1.dsc
 67eff6cdba8f8c4eb48c842c2a2104b36f02b1bb 21468 sysv-rc-conf_1.0.0.orig.tar.xz
 b7ed7e287c192c10d56368c209a3bc9ca2185c7f 10656 
sysv-rc-conf_1.0.0-1.debian.tar.xz
 10271c75c111db48fd77b1aaa615c0909930f40e 4789 
sysv-rc-conf_1.0.0-1_amd64.buildinfo
Checksums-Sha256:
 fb38715d4d5308c95e28d96feb82566809ed36ce980584090e20659c2952993b 1262 
sysv-rc-conf_1.0.0-1.dsc
 eefcad849650f276e1d45ebc3a42b2be08cdad182b5b997ba4bd3387d2f6a2cc 21468 
sysv-rc-conf_1.0.0.orig.tar.xz
 e9062146bcbaf4b7c2c61cd68377dcfa2a2251314e0a00dc6a3962a2ce945cbe 10656 
sysv-rc-conf_1.0.0-1.debian.tar.xz
 da32b40b9dee3a9ab7fe83891fd1f341d2d53942977c243c14e5b298d21c80b8 4789 
sysv-rc-conf_1.0.0-1_amd64.buildinfo
Files:
 75f4e4fe2f432049c35b26cf43c922db 1262 admin optional sysv-rc-conf_1.0.0-1.dsc
 126c52f7d9c560444e0fe9fa3cfd46b1 21468 admin optional 
sysv-rc-conf_1.0.0.orig.tar.xz
 57bd8825a4fbc9efbedbcbdd2bd4f894 10656 admin optional 
sysv-rc-conf_1.0.0-1.debian.tar.xz
 e969291649948c75aa02093313b65b20 4789 admin optional 
sysv-rc-conf_1.0.0-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQUWTv/Sl6/b+DpcW7svtu2B7myvgUCaCzXzwAKCRDsvtu2B7my
vmgTAP9FWuFWHkZ3UuRJdlPWUGCIWsBciId92bPcjSj7rlhYmwD/T8TMBUhgFHwo
d4k80u442f5U6qpl1vN7HVOFX/7ChAk=
=r+/W
-----END PGP SIGNATURE-----

Attachment: pgpC2JoYNnM11.pgp
Description: PGP signature


--- End Message ---

Reply via email to