Bug#646427: Fail to generate graph image with dot in filename

2011-10-24 Thread Pavel Shramov
Package: python-pyrrd
Version: 0.0.7-1
Severity: normal

Exception is raised if  Graph is called with filename containing more
than one dot in whole path. Bug is reported to upstream and already fixed
there [1].

-- 
[1] http://code.google.com/p/pyrrd/issues/detail?id=22

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.32-5-686
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to ru_RU.UTF-8)

Versions of packages python-pyrrd depends on:
ii  python-support1.0.14 automated rebuilding support for P
ii  rrdtool   1.3.1-4Time-series data storage and displ

python-pyrrd recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#509724: ghc does not compile programs using Data.IntSet

2008-12-25 Thread Pavel Shramov
On Thu, Dec 25, 2008 at 12:58:23PM +0100, Joris van Rantwijk wrote:
 GHC apparently can no longer compile programs that use the
 package Data.IntSet. A few months ago, this used to work just fine
 with GHC (lenny).
... skip ...
 $ ghc aaa.hs
 aaa.o: In function `szF_info': (.text+0x192): undefined reference to 
 `containerszm0zi1zi0zi1_DataziIntSet_notMember_closure'
 aaa.o: In function `szF_info': (.text+0x199): undefined reference to 
 `containerszm0zi1zi0zi1_DataziIntSet_empty_closure'
...


Adding  '-package containers' to command line solves Your problem.
See [1] for details. Unfortunately ghc manpage is too brief about -package 
option.
Pavel

--
[1] 
http://www.haskell.org/ghc/docs/6.8.3/html/users_guide/options-phases.html#id340412



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#442868: mp32ogg: Recode tags to utf8

2007-12-22 Thread Pavel Shramov
Package: mp32ogg
Version: 0.11-9
Followup-For: Bug #442868

tags 442868 patch
thanks

By default mp32ogg corrupts cyrillic tags assuming that they are in iso8859-1
encoding. It seem to be same for other non-8859-1 encodings.

Sending patch adding --from-charset option to recode from arbitrary encoding 
to utf8.

Maybe proper way is to encode from 'from-charset' to local encoding?

Pavel

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to ru_RU.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mp32ogg depends on:
ii  libmp3-info-perl  1.22-1 Perl MP3::Info - Manipulate / fetc
ii  libstring-shellquote-perl 1.03-1 quote strings for passing through 
ii  mpg1230.59r-22   MPEG layer 1/2/3 audio player
ii  mpg123-esd [mpg123]   0.59r-22   MPEG layer 1/2/3 audio player with
ii  perl  5.8.8-12   Larry Wall's Practical Extraction 
ii  vorbis-tools  1.1.1-5several Ogg Vorbis tools

mp32ogg recommends no packages.

-- no debconf information
From 08c28fbd03b1a7da2a815560f0a583cec09b2e3a Mon Sep 17 00:00:00 2001
From: Pavel Shramov [EMAIL PROTECTED]
Date: Sat, 22 Dec 2007 19:34:22 +0300
Subject: [PATCH] added from-charset option

---
 mp32ogg |   11 +--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/mp32ogg b/mp32ogg
index 3030ca5..476d0c4 100755
--- a/mp32ogg
+++ b/mp32ogg
@@ -111,6 +111,7 @@ GetOptions(help|?,\showhelp,
lowercase,
no-replace,
verbose,
+   from-charset=s,
   preserve-timestamp,
, \checkfile);
 
@@ -127,7 +128,8 @@ sub showhelp() {
print  for the track\n;
print --lowercase  Force lowercase filenames when using 
--rename\n;
print --verboseVerbose output\n;
-  print --preserve-timestamp Preserve file timestamp\n;
+   print --from-charset   Recode tags from charset CHARSET to 
UTF-8\n;
+   print --preserve-timestamp Preserve file timestamp\n;
print --help   Display this help message\n;
exit;
 
@@ -160,6 +162,7 @@ sub ConvertFile() {
my $filename = $opt_rename;
my $lowercase = $opt_lowercase;
my $noreplace = $opt_no_replace;
+   my $from_charset = $opt_from_charset;
my $verbose = $opt_verbose;
my $preserve_timestamp = $opt_preserve_timestamp;
 
@@ -172,7 +175,11 @@ sub ConvertFile() {
 # really wants to deal with plain old sequences-of-octets, so encode
 # those strings.
 for $key (keys %$info) {
-$info-{$key} = encode(langinfo(CODESET), $info-{$key});
+   if($from_charset ne ) {
+   $info-{$key} = encode(utf8, decode($from_charset, 
$info-{$key}));
+   } else {
+   $info-{$key} = encode(langinfo(CODESET), $info-{$key});
+   }
 }
 
$_ = $filename;
-- 
1.5.3.5

From e7345b12f368b40e4ffa4b3018d77708b8da60bc Mon Sep 17 00:00:00 2001
From: Pavel Shramov [EMAIL PROTECTED]
Date: Sat, 22 Dec 2007 19:48:53 +0300
Subject: [PATCH] document --from-charset option

---
 debian/mp32ogg.1 |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/debian/mp32ogg.1 b/debian/mp32ogg.1
index 85f30dc..5e37d15 100644
--- a/debian/mp32ogg.1
+++ b/debian/mp32ogg.1
@@ -57,6 +57,9 @@ Verbose output
 .TP
 .B \-\-preserve\-timestamp
 Preserve file timestamp
+.TP
+.B \-\-from\-charset=CHARSET
+Reencode IDv3 tags from CHARSET to UTF8.
 .SH SEE ALSO
 .BR oggenc (1),
 .br
-- 
1.5.3.5



Bug#452274: openvpn: client CN with '/' symbol extracted incorrectly

2007-11-21 Thread Pavel Shramov
Package: openvpn
Version: 2.0.9-8
Severity: important
Tags: patch

Openvpn extracts only part of CN before '/'. For example from
/O=MSU/O=Grid/OU=IMEC/OU=ca.grid.pp.ru/CN=host/vpn.grid.pp.ru
openvpn extracts host (correct is host/vpn.grid.pp.ru). 
So all hosts get one CN host and client-connect script get incorrect
info.

DN's of such kind are used in Globus.

Fix (rewriting extract_x509_field to use openssl library functions) is attached.
Second patch adds '/' to the list of allowed chars in CN so it won't be
remapped.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ru_RU.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openvpn depends on:
ii  debconf [debconf-2.0] 1.5.1  Debian configuration management sy
ii  libc6 2.6.1-5GNU C Library: Shared libraries
ii  liblzo2-2 2.02-3 data compression library
ii  libssl0.9.8   0.9.8g-2   SSL shared libraries

openvpn recommends no packages.

-- debconf information:
  openvpn/change_init: false
* openvpn/stop2upgrade: false
  openvpn/default_port:
  openvpn/change_init2: false
  openvpn/create_tun: false
commit c332964d29fb428c01dc691ececc7d80cce07dbd
Author: Pavel Shramov [EMAIL PROTECTED]
Date:   Wed Nov 21 17:40:21 2007 +0300

fix x509 name fields extraction function

diff --git a/ssl.c b/ssl.c
index 9cde47d..cc5d8d3 100644
--- a/ssl.c
+++ b/ssl.c
@@ -370,6 +370,51 @@ extract_x509_field (const char *x509, const char *field_name, char *out, int siz
 }
 }
 
+/*
+ * Extract a field from an X509 subject name.
+ *
+ * Example:
+ *
+ * /C=US/ST=CO/L=Denver/O=ORG/CN=First-CN/CN=Test-CA/[EMAIL PROTECTED]
+ *
+ * The common name is 'Test-CA'
+ */
+static void
+extract_x509_field_ssl (X509_NAME *x509, const char *field_name, char *out, int size)
+{
+  int lastpos = -1;
+  int tmp = -1;
+  X509_NAME_ENTRY *x509ne = 0;
+  ASN1_STRING *asn1 = 0;
+  unsigned char *buf = 0;
+  int nid = OBJ_txt2nid(field_name);
+
+  ASSERT (size  0);
+  *out = '\0';
+  do {
+lastpos = tmp;
+tmp = X509_NAME_get_index_by_NID(x509, nid, lastpos);
+  } while (tmp  0);
+
+  /* Nothing found */
+  if (lastpos == -1)
+return;
+
+  x509ne = X509_NAME_get_entry(x509, lastpos);
+  if (!x509ne)
+return;
+
+  asn1 = X509_NAME_ENTRY_get_data(x509ne);
+  if (!asn1)
+return;
+  tmp = ASN1_STRING_to_UTF8(buf, asn1);
+  if (tmp = 0)
+return;
+
+  strncpynt(out, buf, size);
+  OPENSSL_free(buf);
+}
+
 static void
 setenv_untrusted (struct tls_session *session)
 {
@@ -445,7 +490,8 @@ verify_callback (int preverify_ok, X509_STORE_CTX * ctx)
   string_mod (subject, X509_NAME_CHAR_CLASS, 0, '_');
 
   /* extract the common name */
-  extract_x509_field (subject, CN, common_name, TLS_CN_LEN);
+  extract_x509_field_ssl (X509_get_subject_name (ctx-current_cert), CN, common_name, TLS_CN_LEN);
+  //extract_x509_field (subject, CN, common_name, TLS_CN_LEN);
   string_mod (common_name, COMMON_NAME_CHAR_CLASS, 0, '_');
 
 #if 0 /* print some debugging info */
commit c96f2538fb506f6c531628ca4f48c3eb33a34765
Author: Pavel Shramov [EMAIL PROTECTED]
Date:   Wed Nov 21 17:40:32 2007 +0300

allow / in CN

diff --git a/ssl.h b/ssl.h
index e07f19a..4319a81 100644
--- a/ssl.h
+++ b/ssl.h
@@ -282,7 +282,7 @@
 
 /* Legal characters in an X509 or common name */
 #define X509_NAME_CHAR_CLASS   (CC_ALNUM|CC_UNDERBAR|CC_DASH|CC_DOT|CC_AT|CC_COLON|CC_SLASH|CC_EQUAL)
-#define COMMON_NAME_CHAR_CLASS (CC_ALNUM|CC_UNDERBAR|CC_DASH|CC_DOT|CC_AT)
+#define COMMON_NAME_CHAR_CLASS (CC_ALNUM|CC_UNDERBAR|CC_DASH|CC_DOT|CC_AT|CC_SLASH)
 
 /* Maximum length of OCC options string passed as part of auth handshake */
 #define TLS_OPTIONS_LEN 512


Bug#451949: mini-dinstall: Send mail with informative subject

2007-11-19 Thread Pavel Shramov
Package: mini-dinstall
Version: 0.6.22+psha0
Severity: wishlist
Tags: patch

Mail sent by mini-dinstall on success has subject
mini-dinstall success notice which is not informative.
Suggested patch adds first line of log message into subject.

Both git and plain patches are attached.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ru_RU.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mini-dinstall depends on:
ii  apt-utils 0.7.9  APT utility programs
ii  python2.4.4-6An interactive high-level object-o
ii  python-apt0.7.3.1+b1 Python interface to libapt-pkg
ii  python-support0.7.5  automated rebuilding support for p

mini-dinstall recommends no packages.

-- no debconf information
commit 455fb0c8464a8619ff65276c9f44f55c17eda3ec
Author: Pavel Shramov [EMAIL PROTECTED]
Date:   Thu Nov 15 21:28:57 2007 +0300

added %m to subject (success_logger)

diff --git a/mini-dinstall b/mini-dinstall
index 0a871d9..5a28884 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -195,7 +195,7 @@ class SubjectSpecifyingLoggingSMTPHandler(logging.handlers.SMTPHandler):
 apply(logging.handlers.SMTPHandler.__init__, [self] + list(args) + ['dummy'], kwargs)
 
 def getSubject(self, record):
-return re.sub('%l', record.levelname, self._subject)
+return self._subject.replace('%l', record.levelname).replace('%m', record.msg.split('\n')[0])
 
 if not (configp.has_option('DEFAULT', 'mail_log_level') and configp.get('DEFAULT', 'mail_log_level') == 'NONE'):
 if configp.has_option('DEFAULT', 'mail_log_level'):
@@ -707,7 +707,7 @@ class ArchiveDir:
 if self._mail_on_success:
 self._success_logger = logging.Logger(mini-dinstall. + self._name)
 self._success_logger.setLevel(logging.DEBUG)
-handler = SubjectSpecifyingLoggingSMTPHandler('mini-dinstall success notice', mail_server, 'Mini-Dinstall [EMAIL PROTECTED]' % (getpass.getuser(),socket.getfqdn()), [mail_to])
+handler = SubjectSpecifyingLoggingSMTPHandler('mini-dinstall: %m', mail_server, 'Mini-Dinstall [EMAIL PROTECTED]' % (getpass.getuser(),socket.getfqdn()), [mail_to])
 handler.setLevel(logging.DEBUG)
 self._success_logger.addHandler(handler)
 self._clean_targets = []
From 455fb0c8464a8619ff65276c9f44f55c17eda3ec Mon Sep 17 00:00:00 2001
From: Pavel Shramov [EMAIL PROTECTED]
Date: Thu, 15 Nov 2007 21:28:57 +0300
Subject: [PATCH] added %m to subject (success_logger)

---
 mini-dinstall |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mini-dinstall b/mini-dinstall
index 0a871d9..5a28884 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -195,7 +195,7 @@ class SubjectSpecifyingLoggingSMTPHandler(logging.handlers.SMTPHandler):
 apply(logging.handlers.SMTPHandler.__init__, [self] + list(args) + ['dummy'], kwargs)
 
 def getSubject(self, record):
-return re.sub('%l', record.levelname, self._subject)
+return self._subject.replace('%l', record.levelname).replace('%m', record.msg.split('\n')[0])
 
 if not (configp.has_option('DEFAULT', 'mail_log_level') and configp.get('DEFAULT', 'mail_log_level') == 'NONE'):
 if configp.has_option('DEFAULT', 'mail_log_level'):
@@ -707,7 +707,7 @@ class ArchiveDir:
 if self._mail_on_success:
 self._success_logger = logging.Logger(mini-dinstall. + self._name)
 self._success_logger.setLevel(logging.DEBUG)
-handler = SubjectSpecifyingLoggingSMTPHandler('mini-dinstall success notice', mail_server, 'Mini-Dinstall [EMAIL PROTECTED]' % (getpass.getuser(),socket.getfqdn()), [mail_to])
+handler = SubjectSpecifyingLoggingSMTPHandler('mini-dinstall: %m', mail_server, 'Mini-Dinstall [EMAIL PROTECTED]' % (getpass.getuser(),socket.getfqdn()), [mail_to])
 handler.setLevel(logging.DEBUG)
 self._success_logger.addHandler(handler)
 self._clean_targets = []
-- 
1.5.3.5



Bug#451947: mini-dinstall: Add --foreground option

2007-11-19 Thread Pavel Shramov
Package: mini-dinstall
Version: 0.6.22+psha0
Severity: wishlist
Tags: patch

Add --foreground option (like --background but don't detach)
for use under service supervisors (runit).

Both plain and git patches are attached

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to ru_RU.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mini-dinstall depends on:
ii  apt-utils 0.7.9  APT utility programs
ii  python2.4.4-6An interactive high-level object-o
ii  python-apt0.7.3.1+b1 Python interface to libapt-pkg
ii  python-support0.7.5  automated rebuilding support for p

mini-dinstall recommends no packages.

-- no debconf information
commit 455fb0c8464a8619ff65276c9f44f55c17eda3ec
Author: Pavel Shramov [EMAIL PROTECTED]
Date:   Thu Nov 15 21:28:57 2007 +0300

added %m to subject (success_logger)

diff --git a/mini-dinstall b/mini-dinstall
index 0a871d9..5a28884 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -195,7 +195,7 @@ class SubjectSpecifyingLoggingSMTPHandler(logging.handlers.SMTPHandler):
 apply(logging.handlers.SMTPHandler.__init__, [self] + list(args) + ['dummy'], kwargs)
 
 def getSubject(self, record):
-return re.sub('%l', record.levelname, self._subject)
+return self._subject.replace('%l', record.levelname).replace('%m', record.msg.split('\n')[0])
 
 if not (configp.has_option('DEFAULT', 'mail_log_level') and configp.get('DEFAULT', 'mail_log_level') == 'NONE'):
 if configp.has_option('DEFAULT', 'mail_log_level'):
@@ -707,7 +707,7 @@ class ArchiveDir:
 if self._mail_on_success:
 self._success_logger = logging.Logger(mini-dinstall. + self._name)
 self._success_logger.setLevel(logging.DEBUG)
-handler = SubjectSpecifyingLoggingSMTPHandler('mini-dinstall success notice', mail_server, 'Mini-Dinstall [EMAIL PROTECTED]' % (getpass.getuser(),socket.getfqdn()), [mail_to])
+handler = SubjectSpecifyingLoggingSMTPHandler('mini-dinstall: %m', mail_server, 'Mini-Dinstall [EMAIL PROTECTED]' % (getpass.getuser(),socket.getfqdn()), [mail_to])
 handler.setLevel(logging.DEBUG)
 self._success_logger.addHandler(handler)
 self._clean_targets = []
From 6463dcd967d8f1e55a3d856e31d9fcb294772d97 Mon Sep 17 00:00:00 2001
From: Pavel Shramov [EMAIL PROTECTED]
Date: Sun, 11 Nov 2007 13:32:16 +0300
Subject: [PATCH] add --foreground option

---
 mini-dinstall |   13 ++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/mini-dinstall b/mini-dinstall
index 6abada6..0a871d9 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -80,6 +80,7 @@ def usage(ecode, ver_only=None):
 print   -q, --quiet\t\tDisplay less information
 print   -c, --config=FILE\tParse configuration info from FILE
 print   -d, --debug\t\tOutput information to stdout as well as log
+print   -f, --foreground\tRun daemon in foreground
 print   --no-log\t\tDon't write information to log file
 print   -n, --no-act\t\tDon't actually perform changes
 print   -b, --batch\t\tDon't daemonize; run once, then exit
@@ -90,8 +91,8 @@ def usage(ecode, ver_only=None):
 sys.exit(ecode)
 
 try:
-opts, args = getopt.getopt(sys.argv[1:], 'vqc:dnbrk',
-   ['verbose', 'quiet', 'config=', 'debug', 
'no-log',
+opts, args = getopt.getopt(sys.argv[1:], 'vqc:dfnbrk',
+   ['verbose', 'quiet', 'config=', 'debug', 
'foreground', 'no-log',
 'no-act', 'batch', 'run', 'kill', 'help', 
'version', ])
 except getopt.GetoptError, e:
 sys.stderr.write(Error reading arguments: %s\n % e)
@@ -117,6 +118,7 @@ run_mode = 0
 kill_mode = 0
 no_log = 0
 batch_mode = 0
+foreground_mode = 0
 custom_config_files = 0
 for key, val in opts:
 if key in ('-v', '--verbose'):
@@ -142,6 +144,8 @@ for key, val in opts:
 no_log = 1
 elif key in ('-b', '--batch'):
 batch_mode = 1
+elif key in ('-f', '--foreground'):
+foreground_mode = 1
 elif key in ('-r', '--run'):
 run_mode = 1
 elif key in ('-k', '--kill'):
@@ -1479,7 +1483,7 @@ if not no_act:
 lockfile = open(lockfilename, 'w')
 lockfile.close()
 
-if not batch_mode:
+if not batch_mode and not foreground_mode:
 # daemonize
 logger.debug(Daemonizing...)
 if os.fork() == 0:
@@ -1500,6 +1504,9 @@ if not batch_mode:
 sys.stderr = open(/dev/null)
 logger.debug(Finished daemonizing (pid %s) % (os.getpid(),))
 
+if foreground_mode:
+logger.debug(Running in foreground...)
+
 lockfile = open(lockfilename, 'w')
 lockfile.write(%s % (os.getpid(),))
 lockfile.close

Bug#451947: Correct patch

2007-11-19 Thread Pavel Shramov
In previous mail incorrect plain patch was attached (one from #451949)
Sending correct one.
Pavel

P.S Sorry for incorrect version of mini-dinstall, it's upstream with
this patch
commit 6463dcd967d8f1e55a3d856e31d9fcb294772d97
Author: Pavel Shramov [EMAIL PROTECTED]
Date:   Sun Nov 11 13:32:16 2007 +0300

add --foreground option

diff --git a/mini-dinstall b/mini-dinstall
index 6abada6..0a871d9 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -80,6 +80,7 @@ def usage(ecode, ver_only=None):
 print   -q, --quiet\t\tDisplay less information
 print   -c, --config=FILE\tParse configuration info from FILE
 print   -d, --debug\t\tOutput information to stdout as well as log
+print   -f, --foreground\tRun daemon in foreground
 print   --no-log\t\tDon't write information to log file
 print   -n, --no-act\t\tDon't actually perform changes
 print   -b, --batch\t\tDon't daemonize; run once, then exit
@@ -90,8 +91,8 @@ def usage(ecode, ver_only=None):
 sys.exit(ecode)
 
 try:
-opts, args = getopt.getopt(sys.argv[1:], 'vqc:dnbrk',
-   ['verbose', 'quiet', 'config=', 'debug', 'no-log',
+opts, args = getopt.getopt(sys.argv[1:], 'vqc:dfnbrk',
+   ['verbose', 'quiet', 'config=', 'debug', 'foreground', 'no-log',
 'no-act', 'batch', 'run', 'kill', 'help', 'version', ])
 except getopt.GetoptError, e:
 sys.stderr.write(Error reading arguments: %s\n % e)
@@ -117,6 +118,7 @@ run_mode = 0
 kill_mode = 0
 no_log = 0
 batch_mode = 0
+foreground_mode = 0
 custom_config_files = 0
 for key, val in opts:
 if key in ('-v', '--verbose'):
@@ -142,6 +144,8 @@ for key, val in opts:
 no_log = 1
 elif key in ('-b', '--batch'):
 batch_mode = 1
+elif key in ('-f', '--foreground'):
+foreground_mode = 1
 elif key in ('-r', '--run'):
 run_mode = 1
 elif key in ('-k', '--kill'):
@@ -1479,7 +1483,7 @@ if not no_act:
 lockfile = open(lockfilename, 'w')
 lockfile.close()
 
-if not batch_mode:
+if not batch_mode and not foreground_mode:
 # daemonize
 logger.debug(Daemonizing...)
 if os.fork() == 0:
@@ -1500,6 +1504,9 @@ if not batch_mode:
 sys.stderr = open(/dev/null)
 logger.debug(Finished daemonizing (pid %s) % (os.getpid(),))
 
+if foreground_mode:
+logger.debug(Running in foreground...)
+
 lockfile = open(lockfilename, 'w')
 lockfile.write(%s % (os.getpid(),))
 lockfile.close()


Bug#402115: gsoap: Request newer version. 2.7.9a available. NMU packages available.

2006-12-14 Thread Pavel Shramov
Thanks for packaging gsoap for debian. 
I've tested it but /usr/include/gsoap/stl*.h files are not present
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330886)

Patch for debian/rules is attached

It would be great if you'll apply this to your packages


Pavel
--- gsoap-2.7.9a.orig/debian/rules  2006-12-14 12:09:30.0 +0300
+++ gsoap-2.7.9a/debian/rules   2006-12-14 11:27:25.0 +0300
@@ -79,8 +79,8 @@
mkdir -p $(CURDIR)/debian/gsoap/usr/share/doc/gsoap
 
# Install .h files required for soapcpp2 - not needed anymore since 
2.7.6c
-   # mkdir -p $(CURDIR)/debian/gsoap/usr/include/gsoap
-   # cp soapcpp2/stl*.h $(CURDIR)/debian/gsoap/usr/include/gsoap
+   mkdir -p $(CURDIR)/debian/gsoap/usr/include/gsoap
+   cp soapcpp2/import/stl*.h $(CURDIR)/debian/gsoap/usr/include/gsoap
 
# Install upstream changelog and convert it to text (policy 12.7)
html2text soapcpp2/changelog.html  
$(CURDIR)/debian/gsoap/usr/share/doc/gsoap/changelog


Bug#330886: gsoap: wsdl2h by default produces '#import stlvector.h' statement

2006-01-27 Thread Pavel Shramov
On Thu, Jan 05, 2006 at 04:23:43PM -0800, Rob Browning wrote:
 Are the import headers like stlvector.h obsolete, or should they just
 be added to the gsoap package?
 
 The bits of the current gsoap documentation I've seen still refer to
 their use.  For example:
 
   http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc11.10.8

It seems that stlvector.h is still needed. wsdl2h with -s flag builds 
header file with pure C syntax, without std::string and other C++ stuff.
Using wsdl2h without -s leads to C++ header which fail to compile with
soapcpp2. 

There are some workarounds to force compilation but they need
header alteration. For example, if there are no vectors in wsdl 
(no minOccurs and maxOccurs) this rule in Makefile is working

%.h: %.wsdl
wsdl2h -o $@ $
# Next string ommits stlvector import
sed -i 's,#import stlvector.h,//,' $@

This refers to current debian package (2.7.6d-1) and to one on which I
reported perviosly.

So in my harble opinion best way is to include stlvector.h in package
Pavel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#330886: gsoap: wsdl2h by default produces '#import stlvector.h' statement

2005-09-30 Thread Pavel Shramov
Package: gsoap
Version: 2.7.6c-1
Severity: minor

wsdl2h without flags puts '#import stlvector.h' string in 
resulting header but stl*.h files are obsolete and not 
included in .deb package
(wsdl2h with -s flag is omitting this import statement).

So default behaviour is to include reference to omitted files and
soapcpp2 is unable to create .cpp stubs.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.6
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages gsoap depends on:
ii  libc6 2.3.5-4GNU C Library: Shared libraries an
ii  libgcc1   1:4.0.1-8  GCC support library
ii  libstdc++64.0.1-8The GNU Standard C++ Library v3

gsoap recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]