Bug#745172: mouseemu: Please use arch:linux-any

2014-04-18 Thread Samuel Thibault
Source: mouseemu
Version: 0.15-10
Severity: important

Hello,

This package seems Linux-specific, so it should use Architecture:
linux-any in the control file, so its build is not even tried on
non-Linux archs.

Samuel


-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20140418164024.gs15...@type.youpi.perso.aquilenet.fr



Bug#1077534: libvisual: Please break libvisual / libsdl dependency cycle

2024-07-29 Thread Samuel Thibault
Source: libvisual
Version: 0.4.2-2
Severity: important

Hello,

There is currently a build-dep cycle involving libvisual:

libvisual -> libsdl1.2 -> libsdl2 -> fcitx -> qtbase-opensource-src -> 
pulseaudio -> gst-plugins-base1.0 -> libvisual

The attached patch breaks it by introducing a very trivial
pkg.libvisual.nosdl build profile that simply disables building the
lv tool.

Samuel

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'unreleased'), 
(500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 
'oldstable-proposed-updates-debug'), (500, 'oldstable-proposed-updates'), (500, 
'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.9.8-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
Samuel
After watching my newly-retired dad spend two weeks learning how to make a new
folder, it became obvious that "intuitive" mostly means "what the writer or
speaker of intuitive likes".
(Bruce Ediger, bedi...@teal.csn.org, in comp.os.linux.misc, on X the
intuitiveness of a Mac interface.)
--- debian/control.original 2024-07-29 16:53:39.0 +
+++ debian/control  2024-07-29 17:01:00.0 +
@@ -5,7 +5,7 @@
 Build-Depends: autoconf-archive,
autopoint,
debhelper-compat (= 13),
-   libsdl1.2-dev,
+   libsdl1.2-dev ,
pkg-config
 Standards-Version: 4.6.2
 Homepage: http://libvisual.org
@@ -58,6 +58,7 @@
 Package: lv-tool-0.4
 Section: sound
 Architecture: any
+Build-Profiles: 
 Depends: ${misc:Depends}, ${shlibs:Depends}, libvisual-0.4-plugins (>= 0.4.2)
 Description: tool from Libvisual to visualize a music from audio players
  Libvisual is a generic visualization framework that allows applications
--- debian/rules.original   2024-07-29 16:54:50.0 +
+++ debian/rules2024-07-29 17:04:57.0 +
@@ -4,11 +4,17 @@
 
 export GETTEXT_PACKAGE=libvisual-0.4
 
+CONFIGURE = --enable-static
+
+ifneq (,$(filter pkg.libvisual.nosdl,$(DEB_BUILD_PROFILES)))
+CONFIGURE += --disable-lv-tool --disable-examples
+endif
+
 %:
dh $@
 
 override_dh_auto_configure:
-   dh_auto_configure -- --enable-static
+   dh_auto_configure -- $(CONFIGURE)
 
 override_dh_installdocs:
dh_installdocs -A AUTHORS NEWS README TODO


Bug#1027670: intltool-debian: bogus UTF-8 output

2023-01-01 Thread Samuel Thibault
Package: intltool-debian
Version: 0.35.0+20060710.6
Severity: important

Hello,

With the newer perl version in bookworm, reading/emitting utf-8 is
apparently not enabled by default any more. In the choose-mirror
package, we had to apply the attached patch, otherwise the output was
buggy, see https://lists.debian.org/debian-boot/2023/01/msg00018.html

intltool-debian very probably needs the same fix.

Samuel

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 
'proposed-updates-debug'), (500, 'proposed-updates'), (500, 
'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), 
(500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.1.0 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages intltool-debian depends on:
ii  gettext  0.21-10
ii  perl 5.36.0-6

intltool-debian recommends no packages.

intltool-debian suggests no packages.

-- no debconf information

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.
commit 04a0e1fba4b088b877b4f26d1ce675009a31ae23
Author: Samuel Thibault 
Date:   Sun Jan 1 17:13:11 2023 +0100

intltool-merge: Fix emitting utf8 templates

diff --git a/debian/changelog b/debian/changelog
index be15eb2..1537b7d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+choose-mirror (2.116) unstable; urgency=medium
+
+  * intltool-merge: Fix emitting utf8 templates.
+
+ -- Samuel Thibault   Sun, 01 Jan 2023 17:03:59 +0100
+
 choose-mirror (2.115) unstable; urgency=medium
 
   * Team upload
diff --git a/intltool-merge b/intltool-merge
index 6bfc807..b878efc 100755
--- a/intltool-merge
+++ b/intltool-merge
@@ -393,13 +393,13 @@ sub create_translation_database
 
 if (lc $encoding eq "utf-8") 
 {
-open PO_FILE, "<$po_file"; 
+open PO_FILE, "<:utf8", "$po_file";
 } 
 else 
 {
print STDERR "WARNING: $po_file is not in UTF-8 but $encoding, 
converting...\n" unless $QUIET_ARG;;
 
-open PO_FILE, "$iconv -f $encoding -t UTF-8 $po_file|";
+open PO_FILE, "-|:utf8", "$iconv -f $encoding -t UTF-8 
$po_file";
 }
 } 
 else 
@@ -1205,12 +1205,12 @@ sub rfc822deb_merge_translations
 
 {
local $/; # slurp mode
-   open INPUT, "<$FILE" or die "can't open $FILE: $!";
+   open INPUT, "<:utf8", "$FILE" or die "can't open $FILE: $!";
$source = ;
close INPUT;
 }
 
-open OUTPUT, ">${OUTFILE}" or die;
+open OUTPUT, ">:utf8", "${OUTFILE}" or die;
 
 #  Remove comments
 $source =~ s/^#[^\n]*(\n|$)//s;


Bug#1027670: intltool-debian: bogus UTF-8 output

2023-01-01 Thread Samuel Thibault
Samuel Thibault, le dim. 01 janv. 2023 17:20:55 +0100, a ecrit:
> With the newer perl version in bookworm, reading/emitting utf-8 is
> apparently not enabled by default any more. In the choose-mirror
> package, we had to apply the attached patch, otherwise the output was
> buggy, see https://lists.debian.org/debian-boot/2023/01/msg00018.html
> 
> intltool-debian very probably needs the same fix.

It seems that since word-wrapping is disabled, the issue doesn't
actually produce bogus output here (but that's only by chance).

Samuel



Bug#647975: libcdaudio: FTBFS on hurd-i386

2011-11-07 Thread Samuel Thibault
Package: libcdaudio
Version: 0.99.12p2-10
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hello,

libcdaudio currently FTBFS on hurd-i386, due to inclusion of a linux-specific
header . The attached patch fixes it by including
 instead, could you please apply it?

Thanks,
Samuel


-- System Information:
Debian Release: wheezy/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -ur libcdaudio-0.99.12p2.orig/configure.ac 
libcdaudio-0.99.12p2/configure.ac
--- libcdaudio-0.99.12p2.orig/configure.ac  2005-08-16 08:02:52.0 
+0200
+++ libcdaudio-0.99.12p2/configure.ac   2011-11-08 02:33:16.0 +0100
@@ -97,7 +97,7 @@
 
 AC_HEADER_DIRENT
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h linux/cdrom.h linux/ucdrom.h 
sys/cdio.h io/cam/cdrom.h stdarg.h mntent.h sys/mntent.h sys/types.h 
sys/param.h sys/ucred.h sys/mount.h strings.h,,,
+AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h linux/cdrom.h linux/ucdrom.h 
sys/cdrom.h sys/cdio.h io/cam/cdrom.h stdarg.h mntent.h sys/mntent.h 
sys/types.h sys/param.h sys/ucred.h sys/mount.h strings.h,,,
 [[#if defined (HAVE_SYS_TYPES_H)
 # include 
 #endif
diff -ur libcdaudio-0.99.12p2.orig/src/cdaudio.c 
libcdaudio-0.99.12p2/src/cdaudio.c
--- libcdaudio-0.99.12p2.orig/src/cdaudio.c 2004-09-09 02:26:20.0 
+0200
+++ libcdaudio-0.99.12p2/src/cdaudio.c  2011-11-08 02:34:24.0 +0100
@@ -70,6 +70,11 @@
 #include 
 #endif
 
+#ifdef HAVE_SYS_CDROM_H
+#include 
+#define NON_BLOCKING
+#endif
+
 /* For FreeBSD, OpenBSD, and Solaris */
 #ifdef HAVE_SYS_CDIO_H
 #include 
diff -ur libcdaudio-0.99.12p2.orig/src/changer.c 
libcdaudio-0.99.12p2/src/changer.c
--- libcdaudio-0.99.12p2.orig/src/changer.c 2001-08-18 15:44:32.0 
+0200
+++ libcdaudio-0.99.12p2/src/changer.c  2011-11-08 02:33:07.0 +0100
@@ -36,6 +36,10 @@
 #include 
 #endif
 
+#ifdef HAVE_SYS_CDROM_H
+#include 
+#endif
+
 /* Choose a particular disc from the CD changer */
 int
 cd_changer_select_disc(int cd_desc, int disc)


Bug#647975: closed by Alexander Reichle-Schmehl (libcdaudio: FTBFS on hurd-i386)

2012-01-21 Thread Samuel Thibault
reopen 647975
thanks

Debian Bug Tracking System, le Fri 20 Jan 2012 08:51:21 +, a écrit :
>* Apply patch by Samuel Thibault to fix FTBFS on hurd-i386
>  (Closes: #647975)

It seems I forgot to mention: of course an autoconf pass is needed to
propagate the change from configure.ac to configure.

Samuel



--
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120121221715.gm4...@type.famille.thibault.fr



Bug#677358: sweep: FTBFS on hurd-i386 due to rpath

2012-06-13 Thread Samuel Thibault
Package: sweep
Version: 0.9.3-6
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hello,

sweep currently FTBFS on hurd-i386 due to libtool spuriously adding
an rpath to /usr/lib/i386-gnu. This was fixed upstream, sweep just
needs to update. Could you apply the attached patch which brings just
the fix?

Thanks,
Samuel



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.4 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel Thibault 
 > Voici mon problème, j'ai deux PCs relies par des cartes ethernet, 
 > configures avec le protocole PPP.
 -+- Romain in Guide du linuxien pervers - "Ils sont fous ces romains !" -+-
--- configure.orig  2012-06-13 12:08:50.403196207 +0100
+++ configure   2012-06-13 12:09:25.494530136 +0100
@@ -6282,10 +6282,6 @@
   fi
   ;;
 
-gnu*)
-  lt_cv_deplibs_check_method=pass_all
-  ;;
-
 hpux10.20* | hpux11*)
   lt_cv_file_magic_cmd=/usr/bin/file
   case $host_cpu in
@@ -6320,7 +6316,7 @@
   ;;
 
 # This must be Linux ELF.
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | gnu*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
@@ -7971,7 +7967,7 @@
   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int 
\1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  
{\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", 
(lt_ptr) \&\2},/p'"
   ;;
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | gnu*)
   if test "$host_cpu" = ia64; then
 symcode='[ABCDGIRSTW]'
 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int 
\1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
@@ -8941,7 +8937,7 @@
   lt_prog_compiler_static='-Bstatic'
   ;;
 
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | gnu*)
   case $cc_basename in
   icc* | ecc*)
lt_prog_compiler_wl='-Wl,'
@@ -10556,16 +10552,6 @@
   esac
   ;;
 
-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix 
${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  hardcode_into_libs=yes
-  ;;
-
 hpux9* | hpux10* | hpux11*)
   # Give a soname corresponding to the major version so that dld.sl refuses to
   # link against other versions.
@@ -10667,7 +10653,7 @@
   ;;
 
 # This must be Linux ELF.
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | gnu*)
   version_type=linux
   need_lib_prefix=no
   need_version=no
@@ -13118,7 +13104,7 @@
 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 hardcode_libdir_separator_CXX=:
 ;;
-  linux* | k*bsd*-gnu)
+  linux* | k*bsd*-gnu | gnu*)
 case $cc_basename in
   KCC*)
# Kuck and Associates, Inc. (KAI) C++ Compiler
@@ -13893,7 +13879,7 @@
;;
esac
;;
-  linux* | k*bsd*-gnu)
+  linux* | k*bsd*-gnu | gnu*)
case $cc_basename in
  KCC*)
# KAI C++ Compiler
@@ -14537,16 +14523,6 @@
   esac
   ;;
 
-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix 
${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  hardcode_into_libs=yes
-  ;;
-
 hpux9* | hpux10* | hpux11*)
   # Give a soname corresponding to the major version so that dld.sl refuses to
   # link against other versions.
@@ -14648,7 +14624,7 @@
   ;;
 
 # This must be Linux ELF.
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | gnu*)
   version_type=linux
   need_lib_prefix=no
   need_version=no
@@ -15608,7 +15584,7 @@
   lt_prog_compiler_static_F77='-Bstatic'
   ;;
 
-linux* | k*bsd*-gnu)
+linux* | k*bsd*-gnu | gnu*)
   case $cc_basename in
   icc* | ecc*)
lt_prog_compiler_wl_F77='-Wl,'
@@ -17151,16 +17127,6 @@
   esac
   ;;
 
-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix 
${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  hardcode_into_libs=yes
-  ;;
-
 hpux9* | hpux10* | hpux11*)
   # Give a soname corresponding to the major version so that dld.sl refus

Bug#548635: qsynth: Can not open my .sf2 files any more

2009-09-27 Thread Samuel Thibault
Package: qsynth
Version: 0.3.4-1
Severity: important

Hello,

I can not use version 0.3.4-1 of qsynth: calling it

qsynth piano.sf2 

brings me the command help and

Unknown option ''.

Running just

qsynth

works, but when I try to load piano.sf2 from setup->SoundFonts->Open, it
tells me

Failed to add soundfont file:
"/home/samy/zik/cdsf2/piano.sf2"
Please, check for a valid soundfont file.

Reverting to 0.2.5-2.2 makes both things above work fine again.

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages qsynth depends on:
ii  libc6   2.9-25   GNU C Library: Shared libraries
ii  libfluidsynth1  1.0.9+dfsg-2 Real-time MIDI software synthesize
ii  libgcc1 1:4.4.1-1GCC support library
ii  libqt3-mt   3:3.3.8b-6   Qt GUI Library (Threaded runtime v
ii  libstdc++6  4.4.1-1  The GNU Standard C++ Library v3
ii  libx11-62:1.2.2-1X11 client-side library
ii  libxext62:1.0.4-1X11 miscellaneous extension librar

qsynth recommends no packages.

qsynth suggests no packages.

-- no debconf information

-- 
Samuel Thibault 
 xlnt comme sujet de stage je peux essayer de donner une description 
formelle de automake
 -+- #ens-mim -+-



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



Bug#553297: nstx: Uses non-standard '_' in domain names

2009-10-29 Thread Samuel Thibault
Package: nstx
Version: 1.1-beta6-5
Severity: normal
Tags: patch upstream

Hello,

nstx uses base64 encoding, which produces '_' characters, which is not
valid in a domain name.  To get more DNS server coverage, I have patched
my version into using base32, here is my (tested) patch, in case it can
be useful more broadly.

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nstx depends on:
ii  adduser   3.111  add and remove users and groups
ii  libc6 2.9-25 GNU C Library: Shared libraries

nstx recommends no packages.

nstx suggests no packages.

-- no debconf information
diff -ur nstx-1.1-beta6/nstx_encode.c 
/home/samy/src/nstx-1.1-beta6/nstx_encode.c
--- nstx-1.1-beta6/nstx_encode.c2009-10-30 00:49:24.0 +0100
+++ /home/samy/src/nstx-1.1-beta6/nstx_encode.c 2009-10-29 04:24:31.0 
+0100
@@ -23,9 +23,16 @@
 
 #include 
 #include 
+#include 
+
+//#define base64
 
 unsigned char map[] = 
+#ifdef base64
 "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_1234567890";
+#else
+   "abcdefghijklmnopqrstuvABCDEFGHIJ";
+#endif
 unsigned char *revmap = NULL;
 
 void init_revmap (void)
@@ -43,21 +50,44 @@
int i = 0, off = 1, cut = 0;
static unsigned char *buf = NULL;

+#ifdef base64
if (len % 3)
  cut = 3 - len%3;
+#else
+   if (len % 5)
+ cut = 5 - len%5;
+#endif

+#ifdef base64
buf = realloc(buf, ((len+2)/3)*4+2);
+#else
+   buf = realloc(buf, ((len+4)/5)*8+2);
+#endif
buf[0] = map[cut];
while (i < len) {
-  buf[off + 0] = map[(data[i] & 252) >> 2];
-  buf[off + 1] = map[((data[i] & 3) << 4) | ((data[i+1] & 240) >> 4)];
-  buf[off + 2] = map[((data[i+1] & 15) << 2 ) | ((data[i+2] & 192) >> 6)];
-  buf[off + 3] = map[(data[i+2] & 63)];
+#ifdef base64
+  buf[off + 0] = map[(data[i] & 0xfc) >> 2];
+  buf[off + 1] = map[((data[i] & 3) << 4) | ((data[i+1] & 0xf0) >> 4)];
+  buf[off + 2] = map[((data[i+1] & 0xf) << 2 ) | ((data[i+2] & 0xc0) >> 
6)];
+  buf[off + 3] = map[(data[i+2] & 0x3f)];
   i += 3;
   off += 4;
+#else
+  buf[off + 0] = map[(data[i] & 0xf8) >> 3];
+  buf[off + 1] = map[((data[i] & 7) << 2) | ((data[i+1] & 0xc0) >> 6)];
+  buf[off + 2] = map[((data[i+1] & 0x3e) >> 1)];
+  buf[off + 3] = map[((data[i+1] & 0x1) << 4) | ((data[i+2] & 0xf0) >> 4)];
+  buf[off + 4] = map[((data[i+2] & 0xf) << 1) | ((data[i+3] & 0x80) >> 7)];
+  buf[off + 5] = map[((data[i+3] & 0x7c) >> 2)];
+  buf[off + 6] = map[((data[i+3] & 0x3) << 3) | ((data[i+4] & 0xe0) >> 5)];
+  buf[off + 7] = map[((data[i+4] & 0x1f))];
+  i += 5;
+  off += 8;
+#endif
}
buf[off] = '\0';

+   //printf("encoded %d into %s\n", len, buf);
return buf;
 }
 
@@ -72,14 +102,32 @@

len = strlen((char*)data);
 
+#ifdef base64
buf = realloc(buf, ((len+3)/4)*3);
+#else
+   buf = realloc(buf, ((len+7)/8)*5);
+#endif

+#ifdef base64
while (off+3 < len) {
-  buf[i+0] = (revmap[data[off]]<<2)|((revmap[data[off+1]]&48)>>4);
+#else
+   while (off+7 < len) {
+#endif
+#ifdef base64
+  buf[i+0] = (revmap[data[off]]<<2)|((revmap[data[off+1]]&0x30)>>4);
   buf[i+1] = ((revmap[data[off+1]]&15)<<4)|((revmap[data[off+2]]&60)>>2);
   buf[i+2] = ((revmap[data[off+2]]&3)<<6)|(revmap[data[off+3]]);
   i += 3;
   off += 4;
+#else
+  buf[i+0] = (revmap[data[off]]<<3)|((revmap[data[off+1]]&0x1c)>>2);
+  buf[i+1] = 
((revmap[data[off+1]]&0x3)<<6)|((revmap[data[off+2]])<<1)|((revmap[data[off+3]]&0x10)>>4);
+  buf[i+2] = 
((revmap[data[off+3]]&0xf)<<4)|((revmap[data[off+4]]&0x1e)>>1);
+  buf[i+3] = 
((revmap[data[off+4]]&0x1)<<7)|((revmap[data[off+5]])<<2)|((revmap[data[off+6]]&0x18)>>3);
+  buf[i+4] = ((revmap[data[off+6]]&0x7)<<5)|((revmap[data[off+7]]));
+  i += 5;
+  off += 8;
+#endif
}
*rlen = i - revmap[data[0]];

diff -ur nstx-1.1-beta6/nstx_dns.c /home/samy/src/nstx-1.1-beta6/nstx_dns.c
--- nstx-1.1-beta6/nstx_dns.c   2009-10-30 00:49:24.0 +0100
+++ /home/samy/src/nstx-1.1-beta6/nstx_dns.c2009-10-29 05:22:54.0 
+0100
@@ -603,9 +607,9 @@
} else if (type == DNS_QUERY)
  {
 // ret = ((raw-suffixlen)*189-759)/256;
-   ret = (189*(254-suffixlen))/256-6;
-   if (ret > (maxq = (183-(189*suffixlen)/256)))
- ret = maxq;
+   ret = (150*(254-suffixlen))/256-6;
+   //if (ret > (maxq = (183-(189*suffixlen)/256)))
+// ret = maxq;
  }

return (ret > 0) ? ret : 0;


Bug#553299: nstx: Does not support cross-endianness

2009-10-29 Thread Samuel Thibault
Package: nstx
Version: 1.1-beta6-5
Severity: normal
Tags: patch upstream

My laptop is x86 and my router is Big-endian Mips. nstx doesn't work
very well in that case just because of endianness which flips the fields
of the nstxhdr structure around. The 12bit length field makes it even
more tricky.

In the attached patch, I have just increased the id size to 16 to
make it easier to just revert the fields.  I don't know whether nstx
considers cross-version compatibility?  In such case my patch won't be
ok, of course, and send/reception bitmagic will be needed instead.

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nstx depends on:
ii  adduser   3.111  add and remove users and groups
ii  libc6 2.9-25 GNU C Library: Shared libraries

nstx recommends no packages.

nstx suggests no packages.

-- no debconf information

-- 
Samuel Thibault 
 le y est un animal discret se logeant facilement dans un terminal
*** c has changed the topic on channel #ens-mim to ne pas jeter de cacahuetes 
aux ys, svp
 -+- #ens-mim - n'oubliez pas le guide -+-
diff -ur nstx-1.1-beta6/nstxfun.h /home/samy/src/nstx-1.1-beta6/nstxfun.h
--- nstx-1.1-beta6/nstxfun.h2004-06-27 23:43:34.0 +0200
+++ /home/samy/src/nstx-1.1-beta6/nstxfun.h 2009-10-29 05:49:52.0 
+0100
@@ -32,11 +32,19 @@
 /* nstx header */
 
 struct nstxhdr {
+#if __BYTE_ORDER == __LITTLE_ENDIAN
unsigned char magic;
unsigned char seq:4;
-   unsigned char chan:4; /* Unused yet... */
-   unsigned short id:12;
-   unsigned short flags:4;
+   unsigned char chan:2; /* Unused yet... */
+   unsigned char flags:2;
+   unsigned short id:16;
+#else
+   unsigned char magic;
+   unsigned char flags:2;
+   unsigned char chan:2; /* Unused yet... */
+   unsigned char seq:4;
+   unsigned short id:16;
+#endif
 };
 
 /* flags... more to come ?! */


Bug#572730: xtel: Enable teleinfo mode

2010-03-05 Thread Samuel Thibault
Package: xtel
Version: 3.3.0-6
Severity: wishlist
Tags: patch

Hello,

Xtel has some support for teleinfo mode, but this is currently disabled
in xtel.c.  This is useful for e.g. the Sirene service.  The attached
patch enables it, and fixes a couple display glitches.

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xtel depends on:
ii  lesstif2  1:0.95.2-1 OSF/Motif 2.1 implementation relea
ii  libc6 2.10.2-6   Embedded GNU C Library: Shared lib
ii  libice6   2:1.0.6-1  X11 Inter-Client Exchange library
ii  libjpeg62 6b-16.1The Independent JPEG Group's JPEG 
ii  libsm62:1.1.1-1  X11 Session Management library
ii  libx11-6  2:1.3.3-1  X11 client-side library
ii  libxext6  2:1.1.1-2  X11 miscellaneous extension librar
ii  libxp61:1.0.0.xsf1-2 X Printing Extension (Xprint) clie
ii  libxpm4   1:3.5.8-1  X11 pixmap library
ii  libxt61:1.0.7-1  X11 toolkit intrinsics library
ii  openbsd-inetd [inet-super 0.20080125-4   The OpenBSD Internet Superserver
ii  ppp   2.4.4rel-10.1  Point-to-Point Protocol (PPP) - da
ii  x11-common1:7.5+3X Window System (X.Org) infrastruc
ii  xbase-clients 1:7.5+3miscellaneous X clients - metapack
ii  xfonts-utils  1:7.5+2X Window System font utility progr
ii  xutils1:7.5+3X Window System utility programs m

Versions of packages xtel recommends:
ii  logrotate 3.7.8-4Log rotation utility

xtel suggests no packages.

-- debconf information excluded

-- 
Samuel Thibault 
�Tiens, quand j'aurai un peu de temps et une partition libre, je crois
 que je vais essayer de remplacer mes scripts de d�marrage par des
 programmes Windows lanc�s via Wine et binfmt_misc :-)�
-+- AGV in Guide du linuxien pervers - "J'sais pas quoi faire... (air connu)"
diff -ur xtel-3.3.0.original/lecteur.c xtel-3.3.0/lecteur.c
--- xtel-3.3.0.original/lecteur.c   2001-02-11 01:01:00.0 +0100
+++ xtel-3.3.0/lecteur.c2010-03-06 02:28:09.0 +0100
@@ -100,9 +100,13 @@
  kill (pid_teleinfo, SIGKILL);
  close (fd_teleinfo);
} else {
+ char s[8];
+ int n;
  if (mode_emulation == MODE_TELEINFO_FR)
c = conversion_teleinfo_fr (c,3);
- write (fd_teleinfo, &c, 1);
+ n = snprintf (s, sizeof (s), "%lc", (unsigned char) c);
+ if (n != -1)
+   write (fd_teleinfo, s, n);
}
}
else {
diff -ur xtel-3.3.0.original/ligne.c xtel-3.3.0/ligne.c
--- xtel-3.3.0.original/ligne.c 2001-02-11 01:01:34.0 +0100
+++ xtel-3.3.0/ligne.c  2010-03-06 02:27:59.0 +0100
@@ -172,9 +172,13 @@
selection_mode_emulation (ecran_minitel, "V", NULL);
return;
  } else {
+   char s[8];
+   int n;
if (mode_emulation == MODE_TELEINFO_FR)
  c = conversion_teleinfo_fr (c,1);
-   write (fd_teleinfo, &c, 1);
+   n = snprintf (s, sizeof(s), "%lc", (unsigned char) c);
+   if (n != -1)
+ write (fd_teleinfo, s, n);
  }
} else {
  videotexDecode (ecran_minitel, c);
diff -ur xtel-3.3.0.original/teleinfo.c xtel-3.3.0/teleinfo.c
--- xtel-3.3.0.original/teleinfo.c  2010-03-06 01:55:42.0 +0100
+++ xtel-3.3.0/teleinfo.c   2010-03-06 02:29:31.0 +0100
@@ -279,7 +279,8 @@
  break;
 
   case 0x0e :
-  c = 0xef ;
+  //c = 0xef ;
+  c = 0;
break ;
  
   case 0x1b :
@@ -310,11 +311,17 @@
 if (read (*fid, &c, 1) == 1)  {
 if (mode_emulation == MODE_TELEINFO_FR)
 c = conversion_teleinfo_fr (c,2);
-  
+
if (flag_connexion)
write (socket_xteld, &c, 1);
-   else
-   write (fd_teleinfo, &c, 1);
+   else {
+   char s[8];
+   int n;
+
+   n = sprintf(s, sizeof(s), "%lc", (unsigned char) c);
+   if (n != -1)
+ write (fd_teleinfo, s, n);
+   }
 }
 }
 
diff -ur xtel-3.3.0.original/xtel.c xtel-3.3.0/xtel.c
--- xtel-3.3.0.original/xtel.c  2001-02-13 10:49:30.0 +0100
+++ xtel-3.3.0/xtel.c   2010-03-06 02:13:28.0 +0100
@@ 

Bug#572730: xtel: Enable teleinfo mode

2010-03-06 Thread Samuel Thibault
Julien BLACHE, le Sat 06 Mar 2010 09:39:27 +0100, a écrit :
> Samuel Thibault  wrote:
> 
> > Xtel has some support for teleinfo mode, but this is currently disabled
> > in xtel.c.  This is useful for e.g. the Sirene service.  The attached
> > patch enables it, and fixes a couple display glitches.
> 
> Xtel has been removed from unstable, so ...

See my answer to #474129.  There's a reason why I needed the teleinfo
mode, and that's the same reason why we should reupload it.

Samuel



--
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100306123239.gf5...@const.famille.thibault.fr



Bug#589987: bogl: FTBFS on non-linux ports

2010-07-22 Thread Samuel Thibault
Package: bogl
Version: 0.1.18-4
Severity: important
Tags: d-i patch

Hello,

bogl FTBFS on non-linux. This would look normal at first, but d-i uses
reduce-font from libbogl-dev to save room on d-i images. This patch
makes bogl at least build libbogl-dev shipping mergebdf and reduce-font
on non-linux ports.

Samuel

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel Thibault 
/* Amuse the user. */
printk(
"  \\|/  \\|/\n"
"  \"@'/ ,. \...@\"\n"
"  /_| \\__/ |_\\\n"
" \\__U_/\n");
(From linux/arch/sparc/kernel/traps.c:die_if_kernel())
diff -urN bogl-0.1.18/debian/control bogl-0.1.18.nonlinux/debian/control
--- bogl-0.1.18/debian/control  2010-06-22 02:15:11.0 +0200
+++ bogl-0.1.18.nonlinux/debian/control 2010-07-22 20:02:27.0 +0200
@@ -19,7 +19,7 @@
 
 Package: libbogl0
 Section: libs
-Architecture: any
+Architecture: linux-any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Ben's Own Graphics Library - shared library
  Ben's Own Graphics Library is a small framebuffer library,
@@ -30,7 +30,7 @@
 
 Package: bogl-bterm
 Section: utils
-Architecture: any
+Architecture: linux-any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Ben's Own Graphics Library - graphical terminal
  Ben's Own Graphics Library is a small framebuffer library,
@@ -42,7 +42,7 @@
 Package: bogl-bterm-udeb
 XC-Package-Type: udeb
 Section: debian-installer
-Architecture: any
+Architecture: linux-any
 Priority: extra
 Depends: ${shlibs:Depends}
 Description: Ben's Own Graphics Library - graphical terminal
diff -urN bogl-0.1.18/debian/libbogl-dev.files.hurd-i386 
bogl-0.1.18.nonlinux/debian/libbogl-dev.files.hurd-i386
--- bogl-0.1.18/debian/libbogl-dev.files.hurd-i386  1970-01-01 
01:00:00.0 +0100
+++ bogl-0.1.18.nonlinux/debian/libbogl-dev.files.hurd-i386 2010-07-22 
20:15:35.0 +0200
@@ -0,0 +1,2 @@
+usr/bin/mergebdf
+usr/bin/reduce-font
diff -urN bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-amd64 
bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-amd64
--- bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-amd64 1970-01-01 
01:00:00.0 +0100
+++ bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-amd64
2010-07-22 20:16:05.0 +0200
@@ -0,0 +1,2 @@
+usr/bin/mergebdf
+usr/bin/reduce-font
diff -urN bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-i386 
bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-i386
--- bogl-0.1.18/debian/libbogl-dev.files.kfreebsd-i386  1970-01-01 
01:00:00.0 +0100
+++ bogl-0.1.18.nonlinux/debian/libbogl-dev.files.kfreebsd-i386 2010-07-22 
20:16:25.0 +0200
@@ -0,0 +1,2 @@
+usr/bin/mergebdf
+usr/bin/reduce-font
diff -urN bogl-0.1.18/debian/rules bogl-0.1.18.nonlinux/debian/rules
--- bogl-0.1.18/debian/rules2010-06-22 02:07:25.0 +0200
+++ bogl-0.1.18.nonlinux/debian/rules   2010-07-22 20:18:59.0 +0200
@@ -14,6 +14,8 @@
 #major=`ls src/.libs/lib*.so.* | \
 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
 build: build-stamp
 build-stamp:
dh_testdir
@@ -46,10 +48,12 @@
 
dh_movefiles
 
+ifeq ($(DEB_HOST_ARCH_OS), linux)
install -d debian/bogl-bterm-udeb/usr/bin
install -m 755 debian/bogl-bterm/usr/bin/bterm 
debian/bogl-bterm-udeb/usr/bin/bterm
install -d debian/bogl-bterm-udeb/usr/share/terminfo/b
install -m 644 debian/bogl-bterm/usr/share/terminfo/b/bterm 
debian/bogl-bterm-udeb/usr/share/terminfo/b/bterm
+endif
 
dh_installdocs
dh_installexamples
diff -urN bogl-0.1.18/Makefile bogl-0.1.18.nonlinux/Makefile
--- bogl-0.1.18/Makefile2010-06-22 02:07:25.0 +0200
+++ bogl-0.1.18.nonlinux/Makefile   2010-07-22 20:17:02.0 +0200
@@ -9,6 +9,7 @@
 ALLCFLAGS = $(CFLAGS) $(WARNCFLAGS) $(FBCFLAGS)
 
 architecture := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
+os := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
 
 LIBOBJECTS = $(LIBBOGLOBJECTS) $(LIBBOMLOBJECTS) $(LIBBOWLOBJECTS) \
$(LIBRSRCOBJECTS)
@@ -18,9 +19,12 @@
 LIBRSRCOBJECTS = helvB10.o helvB12.o helvR10.o timBI18.o tux75.o
 
 SOURCES_DEP = arrow.c bdftobogl.c bogl-cfb.c bogl-cfb.h bogl-cfb8.c\
-bogl-cfb8.h bogl-font.c bogl-font.h bogl-pcfb.c bogl-pcfb.h\
-bogl-tcfb.c bogl-tcfb.h bogl-test.c bogl.c bogl.h boglP.h boml.c   \
-boml.h bowl-boxes.c bowl.c bowl.h pngtobogl.c
+bogl-cfb8.h bogl-font.c bogl-font.h \
+bogl-test.c bogl.h boglP.h boml.c

Bug#486933: bogl: should support enter_bold_mode

2008-06-18 Thread Samuel Thibault
Package: bogl
Severity: wishlist

In order to have better contrast for accessible themes of the installer,
bogl's bterm terminal emulation should have enter_bold_mode in order to
get bold (i.e. bright) colors.

Samuel

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

Kernel: Linux 2.6.25
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel
> No manual is ever necessary.
May I politely interject here: BULLSHIT.  That's the biggest Apple lie of all!
(Discussion in comp.os.linux.misc on the intuitiveness of interfaces.)



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



Bug#486933: bogl: should support enter_bold_mode

2008-06-18 Thread Samuel Thibault
tags 486933 + patch
thanks

Here is a patch that does that (and actually fixes some missing colors
in the regular debian installer).

Samuel
diff -ur bogl-0.1.18/bogl-term.c bogl-0.1.18-mine/bogl-term.c
--- bogl-0.1.18/bogl-term.c 2003-11-05 04:38:22.0 +
+++ bogl-0.1.18-mine/bogl-term.c2008-06-19 03:17:04.0 +0100
@@ -53,6 +53,7 @@
   term->fg = term->def_fg = 0;
   term->bg = term->def_bg = 7;
   term->rev = 0;
+  term->bold = 0;
   term->state = 0;
   term->cur_visible = 1;
   memset(&term->ps, 0, sizeof(&term->ps));
@@ -62,12 +63,14 @@
   term->screenfg = malloc(term->xsize * term->ysize * sizeof(int));
   term->screenbg = malloc(term->xsize * term->ysize * sizeof(int));
   term->screenul = malloc(term->xsize * term->ysize * sizeof(int));
+  term->screenbd = malloc(term->xsize * term->ysize * sizeof(int));
   term->cchars = malloc(term->xsize * term->ysize * sizeof(wchar_t *));
-  if (!term->screen || !term->screenfg || !term->screenbg || !term->screenul 
|| !term->cchars || !term->dirty) {
+  if (!term->screen || !term->screenfg || !term->screenbg || !term->screenul 
|| !term->screenbd || !term->cchars || !term->dirty) {
 free(term->screen);
 free(term->screenfg);
 free(term->screenbg);
 free(term->screenul);
+free(term->screenbd);
 free(term->cchars);
 free(term->dirty);
 free(term);
@@ -78,6 +81,7 @@
 term->screenfg[i] = term->def_fg;
 term->screenbg[i] = term->def_bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 term->cchars[i] = 0;
 term->dirty[i] = 1;
   }
@@ -102,6 +106,8 @@
return 0;
 if(term->screenul[p1] != term->screenul[p2])
return 0;
+if(term->screenbd[p1] != term->screenbd[p2])
+   return 0;
 return 1;
 }
 
@@ -115,6 +121,8 @@
return 0;
 if(term->screenul[p1] != 0)
return 0;
+if(term->screenbd[p1] != 0)
+   return 0;
 return 1;
 }
 
@@ -190,6 +198,7 @@
 term->screenfg[p] = term->fg;
 term->screenbg[p] = term->bg;
 term->screenul[p] = 0;
+term->screenbd[p] = 0;
 term->dirty[p] = 1;
 free (term->cchars[p]);
 term->cchars[p] = 0;
@@ -198,11 +207,14 @@
 
 static void
 put_char (struct bogl_term *term, int x, int y, wchar_t wc, wchar_t *cchars,
- int fg, int bg, int ul)
+ int fg, int bg, int ul, int bd)
 {
 char buf[MB_LEN_MAX];
 int j, k, r, w;
 
+if (bd)
+fg += 8;
+
 wctomb(0, 0);
 if ((k = wctomb(buf, wc)) == -1)
 return;
@@ -247,7 +259,7 @@
 fg = term->screenbg[i], bg = term->screenfg[i];
 else
 fg = term->screenfg[i], bg = term->screenbg[i];
-put_char(term, x, term->ypos, term->screen[i], term->cchars[i], fg, 
bg, term->screenul[i]);
+put_char(term, x, term->ypos, term->screen[i], term->cchars[i], fg, 
bg, term->screenul[i], term->screenbd[i]);
 term->dirty[SCR(x, term->ypos)] = 1;
 }
 }
@@ -295,6 +307,7 @@
   term->screenfg[i] = term->fg;
   term->screenbg[i] = term->bg;
   term->screenul[i] = 0;
+  term->screenbd[i] = 0;
 }
   free (term->cchars[i]);
   term->cchars[i] = 0;
@@ -445,6 +458,7 @@
 term->screenfg[i] = term->fg;
 term->screenbg[i] = term->bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 term->cchars[i] = 0;
 term->dirty[i] = 1;
 }
@@ -518,6 +532,7 @@
term->screenfg[i] = term->fg;
term->screenbg[i] = term->bg;
term->screenul[i] = 0;
+   term->screenbd[i] = 0;
}
 free (term->cchars[i]);
 term->cchars[i] = 0;
@@ -551,6 +566,7 @@
 term->screenfg[i] = term->fg;
 term->screenbg[i] = term->bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 }
 free (term->cchars[i]);
 term->cchars[i] = 0;
@@ -593,9 +609,12 @@
 term->rev = 1;
 else if (term->arg[0] == 27)
 term->rev = 0;
+else if (term->arg[0] == 1)
+term->bold = 1;
 else if (term->arg[0] == 0)
 {
 term->rev = 0;
+term->bold = 0;
 term->fg = term->def_fg;
 term->bg = term->def_bg;
 }
@@ -704,6 +723,7 @@
 term->screenfg[i] = term->fg;
 term->screenbg[i] = term->bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 }
   

Bug#486933: bogl: should support enter_bold_mode

2008-06-19 Thread Samuel Thibault
Hello,

Please use this patch instead: darkgray should rather be #55.

Samuel
diff -ur bogl-0.1.18/bogl-term.c bogl-0.1.18-mine/bogl-term.c
--- bogl-0.1.18/bogl-term.c 2003-11-05 04:38:22.0 +
+++ bogl-0.1.18-mine/bogl-term.c2008-06-19 03:17:04.0 +0100
@@ -53,6 +53,7 @@
   term->fg = term->def_fg = 0;
   term->bg = term->def_bg = 7;
   term->rev = 0;
+  term->bold = 0;
   term->state = 0;
   term->cur_visible = 1;
   memset(&term->ps, 0, sizeof(&term->ps));
@@ -62,12 +63,14 @@
   term->screenfg = malloc(term->xsize * term->ysize * sizeof(int));
   term->screenbg = malloc(term->xsize * term->ysize * sizeof(int));
   term->screenul = malloc(term->xsize * term->ysize * sizeof(int));
+  term->screenbd = malloc(term->xsize * term->ysize * sizeof(int));
   term->cchars = malloc(term->xsize * term->ysize * sizeof(wchar_t *));
-  if (!term->screen || !term->screenfg || !term->screenbg || !term->screenul 
|| !term->cchars || !term->dirty) {
+  if (!term->screen || !term->screenfg || !term->screenbg || !term->screenul 
|| !term->screenbd || !term->cchars || !term->dirty) {
 free(term->screen);
 free(term->screenfg);
 free(term->screenbg);
 free(term->screenul);
+free(term->screenbd);
 free(term->cchars);
 free(term->dirty);
 free(term);
@@ -78,6 +81,7 @@
 term->screenfg[i] = term->def_fg;
 term->screenbg[i] = term->def_bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 term->cchars[i] = 0;
 term->dirty[i] = 1;
   }
@@ -102,6 +106,8 @@
return 0;
 if(term->screenul[p1] != term->screenul[p2])
return 0;
+if(term->screenbd[p1] != term->screenbd[p2])
+   return 0;
 return 1;
 }
 
@@ -115,6 +121,8 @@
return 0;
 if(term->screenul[p1] != 0)
return 0;
+if(term->screenbd[p1] != 0)
+   return 0;
 return 1;
 }
 
@@ -190,6 +198,7 @@
 term->screenfg[p] = term->fg;
 term->screenbg[p] = term->bg;
 term->screenul[p] = 0;
+term->screenbd[p] = 0;
 term->dirty[p] = 1;
 free (term->cchars[p]);
 term->cchars[p] = 0;
@@ -198,11 +207,14 @@
 
 static void
 put_char (struct bogl_term *term, int x, int y, wchar_t wc, wchar_t *cchars,
- int fg, int bg, int ul)
+ int fg, int bg, int ul, int bd)
 {
 char buf[MB_LEN_MAX];
 int j, k, r, w;
 
+if (bd)
+fg += 8;
+
 wctomb(0, 0);
 if ((k = wctomb(buf, wc)) == -1)
 return;
@@ -247,7 +259,7 @@
 fg = term->screenbg[i], bg = term->screenfg[i];
 else
 fg = term->screenfg[i], bg = term->screenbg[i];
-put_char(term, x, term->ypos, term->screen[i], term->cchars[i], fg, 
bg, term->screenul[i]);
+put_char(term, x, term->ypos, term->screen[i], term->cchars[i], fg, 
bg, term->screenul[i], term->screenbd[i]);
 term->dirty[SCR(x, term->ypos)] = 1;
 }
 }
@@ -295,6 +307,7 @@
   term->screenfg[i] = term->fg;
   term->screenbg[i] = term->bg;
   term->screenul[i] = 0;
+  term->screenbd[i] = 0;
 }
   free (term->cchars[i]);
   term->cchars[i] = 0;
@@ -445,6 +458,7 @@
 term->screenfg[i] = term->fg;
 term->screenbg[i] = term->bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 term->cchars[i] = 0;
 term->dirty[i] = 1;
 }
@@ -518,6 +532,7 @@
term->screenfg[i] = term->fg;
term->screenbg[i] = term->bg;
term->screenul[i] = 0;
+   term->screenbd[i] = 0;
}
 free (term->cchars[i]);
 term->cchars[i] = 0;
@@ -551,6 +566,7 @@
 term->screenfg[i] = term->fg;
 term->screenbg[i] = term->bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 }
 free (term->cchars[i]);
 term->cchars[i] = 0;
@@ -593,9 +609,12 @@
 term->rev = 1;
 else if (term->arg[0] == 27)
 term->rev = 0;
+else if (term->arg[0] == 1)
+term->bold = 1;
 else if (term->arg[0] == 0)
 {
 term->rev = 0;
+term->bold = 0;
 term->fg = term->def_fg;
 term->bg = term->def_bg;
 }
@@ -704,6 +723,7 @@
 term->screenfg[i] = term->fg;
 term->screenbg[i] = term->bg;
 term->screenul[i] = 0;
+term->screenbd[i] = 0;
 }
 free (term->cchars[i]);
 

Bug#514560: trang: FTBFS on alpha, arm, hppa, hurd-i386

2009-02-08 Thread Samuel Thibault
Package: trang
Version: 20030619-6.1
Severity: important

Hello,

On alpha, arm, hppa, hurd-i386, trang FTBFS with the following:

checking for gcj... no
configure: error: GCJ not found in $PATH

and indeed the gcj dependency is dropped for these archs.  The
dependency should rather be kept, to make it clear what is missing on
these archs (hurd-i386 is now actually very close to have gcj), so
please drop the condition.

Samuel

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel
c> ah (on trouve fluide glacial sur le net, ou il faut aller dans le monde reel 
?)
s> dans le monde reel
c> zut



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



Bug#408194: FTBFS: build-deps on non-available libasound-dev

2007-01-23 Thread Samuel Thibault
Package: tapiir
Version: 0.7.1-9
Severity: serious
Justification: no longer builds from source

Hi,

tapiir build-deps on libasound-dev, but this package is not available.

Samuel

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

-- 
Samuel Thibault <[EMAIL PROTECTED]>
 (* If you have a precise idea of the intended use of the following code, 
please
write to [EMAIL PROTECTED] and ask for the prize :-)
-- Eduardo (11/8/97) *)
 -+- N sur #ens-mim - et c'était un des développeurs -+-



Bug#434581: pike7.6: FTBFS on hurd-i386

2007-07-24 Thread Samuel Thibault
Package: pike7.6
Version: 7.6.93-3
Severity: important
Tags: patch

Hi,

pike7.6 FTBFS on hurd-i386 because of unprotected usage of MAXPATHLEN ;
here is a patch.

Samuel

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

Kernel: Linux 2.6.18-xen
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel Thibault <[EMAIL PROTECTED]>
+#if defined(__alpha__) && defined(CONFIG_PCI)
+   /*
+* The meaning of life, the universe, and everything. Plus
+* this makes the year come out right.
+*/
+   year -= 42;
+#endif
(From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner)
--- src/modules/files/efuns.c.orig  2007-07-24 23:08:26.932458000 +
+++ src/modules/files/efuns.c   2007-07-24 23:09:58.626801000 +
@@ -106,6 +106,10 @@
 
 #endif
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 32768
+#endif
+
 struct array *encode_stat(PIKE_STAT_T *s)
 {
   struct array *a;
@@ -1113,9 +1117,6 @@
 size*=2;
   } while (size < 1);
 #else
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 32768
-#endif
   tmp=xalloc(MAXPATHLEN+1);
   THREADS_ALLOW_UID();
   e = getwd(tmp);


Bug#387793: aumix: segfaults on console when resolution changes

2018-01-29 Thread Samuel Thibault
Control: clone -1 -2
Control: reassign -2 gpm
Control: retitle -2 libgpm crashes on calling syslog

Hello,

Ricardo Fabian Peliquero, on dim. 28 janv. 2018 19:35:22 -0300, wrote:
> Aumix is showing segmentation fault if invoked within an X terminal
> emulator (e.g. stterm). This only happens when using the ncurses
> user interface; then 'aumix -v 100' will work as expected.
> 
> Besides, it works OK from ordinary tty (e.g. tty1-6).

Well, this is not related with bug 387793 then :)

Looking more into the backtrace

Program terminated with signal SIGSEGV, Segmentation fault.
#0  __strchrnul_avx2 () at ../sysdeps/x86_64/multiarch/strchr-avx2.S:76
76  ../sysdeps/x86_64/multiarch/strchr-avx2.S: Aucun fichier ou dossier de 
ce type.
(gdb) bt
#0  __strchrnul_avx2 () at ../sysdeps/x86_64/multiarch/strchr-avx2.S:76
#1  0x7f88711cbb52 in __find_specmb (
format=0x2573 ) at 
printf-parse.h:108
#2  _IO_vfprintf_internal (s=s@entry=0x557eed6c76d0, 
format=format@entry=0x2573 , 
ap=0x72a3bbf0) at vfprintf.c:1320
#3  0x7f8871283428 in ___vfprintf_chk (fp=fp@entry=0x557eed6c76d0, 
flag=flag@entry=1, 
format=format@entry=0x2573 , 
ap=ap@entry=0x72a3bbf0) at vfprintf_chk.c:33
#4  0x7f887126e777 in __GI___vsyslog_chk (pri=, flag=1, 
fmt=0x2573 , 
ap=ap@entry=0x72a3bbf0)
at ../misc/syslog.c:222
#5  0x7f887126ecbf in __syslog_chk (pri=pri@entry=6, flag=flag@entry=1, 
fmt=fmt@entry=0x2573 )
at ../misc/syslog.c:129
#6  0x7f8871992cdf in syslog (
__fmt=0x2573 , __pri=6)
at /usr/include/x86_64-linux-gnu/bits/syslog.h:31
#7  gpm_report (line=line@entry=478, file=file@entry=0x7f88719934b1 
"lib/liblow.c", 
stat=stat@entry=3, text=text@entry=0x7f8871993539 "Warning: closing 
connection")
at lib/report-lib.c:50
#8  0x7f8871991b67 in Gpm_GetEvent (event=event@entry=0x7f8871b95420 )
at lib/liblow.c:478
#9  0x7f8871992fe8 in Gpm_Wgetch (win=0x557eed6b1cb0) at lib/libcurses.c:87
#10 0x557eeb879247 in Inter () at ../../../src/curses.c:366
#11 0x557eeb876db7 in main (argc=1, argv=0x72a3c028) at 
../../../src/common.c:283

I saw this gpm patch
debian/patches/092_fix-format-not-a-string-literal-and-no-format-arguments.patch

-   syslog(log_level, string);
+   syslog(log_level, '%s', string);


That should obviously rather be

+   syslog(log_level, "%s", string);

:)

Samuel



Bug#967983: gsimplecal: Removal of sys/sysctl.h

2020-08-06 Thread Samuel Thibault
Package: gsimplecal
Version: 2.1-1
Severity: important

Hello,

Version 2.32 of glibc will not ship the sysctl() function and the
 header any more. sysctl itself has been deprecated in
Linux and will be removed. This package is using it, so will start FTBFS
when we upload version 2.32 of glibc.

Samuel



Bug#967990: mmorph: Removal of sys_nerr and sys_errlist

2020-08-06 Thread Samuel Thibault
Package: mmorph
Version: 2.3.4.2-17
Severity: important

Hello,

Version 2.32 of glibc will not ship the sys_nerr and sys_errlist symbols any
more.  This package is using them, so will start FTBFS when we upload version
2.32 of glibc.

Samuel