Bug#476707: [wnpp] ITA: aterm -- Afterstep XVT - a VT102 emulator for the X window system

2008-05-13 Thread Matheus Morais
Hi,

I'm looking to contribute more effectively with Debian and then I saw
aterm as an orphaned package. I use gnome-terminal as my daily terminal
to work but when GNOME is not installed I prefer to use aterm, so I've
interest to maintain that package.

--
Thanks,

Matheus Morais



As informacoes contidas neste e-mail e nos arquivos anexados podem ser 
informacoes confidenciais ou privilegiadas. Caso voce nao seja o destinatario 
correto, apague o conteudo desta mensagem e notifique o remetente imediatamente.



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



Bug#476145: aterm: transparent shaded background fails when window has negative x/y-position

2008-05-13 Thread Matheus Morais
I could not be able to reproduce this bug. As far as I move aterm to the
left and when it hit the negative X, aterm background becomes black and
the transparency effect doesn't work properly. Despite the blackness, I
still could read the text inside the terminal. I'm figuring out if this
problem stands on the same issue that you are facing.

-- 
Thanks,

Matheus Morais


As informacoes contidas neste e-mail e nos arquivos anexados podem ser 
informacoes confidenciais ou privilegiadas. Caso voce nao seja o destinatario 
correto, apague o conteudo desta mensagem e notifique o remetente imediatamente.



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



Bug#423212: Problem in receive_arp_replies

2007-09-19 Thread Matheus Morais
I'm almost done the update of laptop-netconf using libnet1 instead libnet0,
but I'm facing an interesting issue with receive_arp_replies function. In
libnet1 the source ip address (ar_spa) and the target ip address (ar_tpa)
are no longer implemented, also source hardware address isn't supported too.
I'm not a libnet expert but AFAIK the addresses are allocated dynamically in
newer versions of that library, so I can't have that information on arp
header packet. The problem could be solved if I could had the source
hardware address back to compare with phisical address listed in
/etc/laptop-netconf/opts. Right now I'm looking if pcap.h could provide that
information. Suggestions are very welcome.

Thanks,

Matheus Morais


Bug#442917: laptop-netconf: Purging laptop-netconf doesn't remove /etc/network/interfaces link

2007-09-18 Thread Matheus Morais
My last patch could remove /etc/network/interfaces file without checking if
a backup exists. This seems not to be correct since the user could do this
manually and then purge laptop-netconf which will remove interfaces and wont
be able to retrieve the backup file. The corrected patch solve this issue.

Sorry for the inconvenience.

Thanks
Matheus Morais
--- debian/postrm   2007-09-12 10:34:03.0 -0300
+++ debian/postrm2007-09-18 17:13:02.0 -0300
@@ -2,6 +2,10 @@

 if [ $1 = purge ]; then
   rm -f /etc/default/laptop-netconf
+  if [ -e /etc/network/interfaces.bak ]; then
+   rm -f /etc/network/interfaces
+   mv /etc/network/interfaces.bak /etc/network/interfaces
+  fi
 fi

 #DEBHELPER#


Bug#442917: laptop-netconf: Purging laptop-netconf doesn't remove /etc/network/interfaces link

2007-09-17 Thread Matheus Morais
Package: laptop-netconf
Version: 0.9.6.7
Severity: normal
Tags: patch

Purge laptop-netconf don't remove /etc/network/interfaces and not restore
original interfaces.bak. The attached patch correct this problem.

Thanks,
Matheus Morais
--- debian/postrm   2007-09-12 10:34:03.0 -0300
+++ debian/postrm2007-09-17 17:22:44.0 -0300
@@ -2,6 +2,8 @@

 if [ $1 = purge ]; then
   rm -f /etc/default/laptop-netconf
+  rm -f /etc/network/interfaces
+  mv /etc/network/interfaces.bak /etc/network/interfaces
 fi

 #DEBHELPER#


Bug#441889: libdeskbar-tracker: Crash when use tracker-search-tool

2007-09-11 Thread Matheus Morais
Package: libdeskbar-tracker
Version: 0.6.1-1
Severity: important
Tags: patch

deskbar crash after use tracker-search-tool program. Here is the traceback:

Traceback (most recent call last):
  File /usr/lib/python2.4/site-packages/deskbar/DeskbarApplet.py, line
145, in on_match_selected
match.action(text)
  File /usr/lib/deskbar-applet/handlers/tracker-handler.py, line 120, in
action
gobject.spawn_async([tracker-search-tool, self.name], flags=
gobject.SPAWN_SEARCH_PATH)
GError: Failed to execute child process tracker-search-tool (Arquivo ou
diretório não encontrado)

My suggestion, according with the patch, is move tracker-search-tool to a
dependecy of libdeskbar-tracker. I'm almost sure that is not the best
solution but its most simple ones.

Thanks,
Matheus Morais
--- debian/control	2007-09-11 14:45:20.0 -0300
+++ debian/control	2007-09-11 14:48:12.0 -0300
@@ -110,8 +110,7 @@
 Package: libdeskbar-tracker
 Architecture: all
 XB-Python-Version: ${python:Versions}
-Depends: ${misc:Depends}, ${python:Depends}, python-dbus (= 0.41), python-gnome2, python-gobject | python-gtk2 ( 2.10), deskbar-applet, tracker
-Recommends: tracker-search-tool
+Depends: ${misc:Depends}, ${python:Depends}, python-dbus (= 0.41), python-gnome2, python-gobject | python-gtk2 ( 2.10), deskbar-applet, tracker, tracker-search-tool
 Description: metadata database, indexer and search tool - deskbar-applet plugin
  This package provides a deskbar-applet plugin for Tracker.
  .


Bug#412695: gnome-cups-manager: You should be able to set printer name

2007-02-27 Thread Matheus Morais

Package: gnome-cups-manager
Version: 0.31-3
Severity: wishlist
Tags: patch

In some environments is extremely important specify the printer name because
of the high number of printers wich are equal. For example, where I work we
have five Lexmark Optra-E321 (all of them shared in the network) and
frequently the users have troubles to find what printer they want use
because gnome-cups-manager automatically specify the printer name. Is much
more easy to user understands if the name of the printer is auto-clarifying:
- E321-MarketingDept, E321-FinancialDept instead Optra-E321-1, Optra-E321-2,
Optra-E321-3 etc.

The attached patch, created by Amos Brocco, allow a 3rd step in
gnome-cups-add to change the printer name. Currently its used by
gnome-cups-manager from Ubuntu. I just added some changes on pt_BR language
on original patch.


Thanks

Matheus Morais
--- gnome-cups-add/add-printer.c	2005-03-03 15:54:25.0 +0100
+++ gnome-cups-add/add-printer.c	2006-03-23 01:30:07.0 +0100
@@ -7,6 +7,7 @@
 #include cups/ipp.h
 #include unistd.h
 #include sys/types.h
+#include glib.h
 
 #include gtk/gtkhbox.h
 #include gtk/gtkliststore.h
@@ -96,6 +97,7 @@
 	}
 
 	set_selected_uri (xml, uri);
+
 	g_free (uri);
 	return res;
 }
@@ -113,23 +115,50 @@
 static void
 driver_page_sensitivity (GladeXML *xml, gboolean *back, gboolean *next)
 {
-	GtkWidget *druid = glade_xml_get_widget (xml, add_printer_druid);
 	*back = TRUE;
 	*next = NULL != gcups_driver_selector_get (driver_selector (xml));
 
-	/* see driver_page_prepare for an explanation of the druid hack */
-	gnome_druid_set_show_finish (GNOME_DRUID (druid), *next);
+	GCupsPPD const  *ppd  = gcups_driver_selector_get (driver_selector (xml));
+
+	if (ppd  ppd-model) {
+		g_signal_handlers_block_by_func(glade_xml_get_widget (xml, printer-name-entry), G_CALLBACK (druid_update_sensitivities), xml);
+		GtkEntry *printer_name_entry = (GtkEntry*) glade_xml_get_widget(xml, printer-name-entry);
+		/* Clear invalid names (spaces + slashes) so that the default is always a valid one */
+		char *name, *ptr;
+		name = g_strdup(ppd-model);	
+	
+		for (ptr = name ; *ptr ; ptr++)
+			if (*ptr == ' ' || *ptr == '/')
+*ptr = '-';
+
+		gtk_entry_set_text(printer_name_entry, name);
+
+		g_free(name);
+		g_signal_handlers_unblock_by_func(glade_xml_get_widget (xml, printer-name-entry), G_CALLBACK (druid_update_sensitivities), xml);
+		}
 }
 
+
 static GtkWidget *
 driver_page_back (GladeXML *xml)
 {
 	return glade_xml_get_widget (xml, connection_page);
 }
 
+
+// This function is just a 'fake' to avoid conflicts during compilation with debian patch properties_on_add.patch
 static gboolean
 add_cups_printer (GladeXML *xml, char const *device_uri, GCupsPPD  const *ppd, char const *printer_name)
 {
+	return FALSE;
+}
+// Note: The (debian/ubuntu) packager needs to fix this conflict by removing properties_on_add.patch
+// and rename the function extended_add_cups_printer  to   add_cups_printer
+// for questions feel free to contact me:[EMAIL PROTECTED]
+
+static gboolean
+extended_add_cups_printer (GladeXML *xml, char const *device_uri, GCupsPPD  const *ppd, char const *printer_name, char const *printer_info, char const *printer_location)
+{
 	GError *err = NULL;
 	char local_uri [HTTP_MAX_URI+1];
 	ipp_t *request = gnome_cups_request_new (CUPS_ADD_PRINTER);
@@ -139,6 +168,10 @@
 		  printer-uri, NULL, local_uri);
 	ippAddString (request,	IPP_TAG_PRINTER, IPP_TAG_NAME,
 		  printer-name, NULL, gnome_cups_strdup (printer_name));
+	ippAddString (request,	IPP_TAG_PRINTER, IPP_TAG_TEXT,
+		  printer-info, NULL, printer_info);
+	ippAddString (request,	IPP_TAG_PRINTER, IPP_TAG_TEXT,
+		  printer-location, NULL, printer_location);
 	ippAddString (request, IPP_TAG_PRINTER, IPP_TAG_NAME,
 		  ppd-name, NULL, gnome_cups_strdup (ppd-filename));
 	ippAddString (request, IPP_TAG_PRINTER, IPP_TAG_URI,
@@ -172,27 +205,138 @@
 static GtkWidget *
 driver_page_next (GladeXML *xml)
 {
-	GList *existing;
 	char  *name, *uri, *ptr;
-	unsigned i = 0;
 	GCupsPPD const  *ppd  = gcups_driver_selector_get (driver_selector (xml));
-
+	GtkWidget *res = NULL;
+	
 	if (ppd == NULL)
 		return NULL;
 
 	uri  = get_selected_uri (xml);
 
-	name = g_strdup (ppd-model);
-	/* strip out the spaces */
-	for (ptr = name ; *ptr ; ptr++)
-		if (*ptr == ' ')
-			*ptr = '-';
+	if (uri != NULL) {
+		res = glade_xml_get_widget (xml, printer_info_page);
+	}
+
+	g_free (uri);
+	return res;
+}
+
+//
+
+static void
+printer_info_page_setup (GladeXML *xml)
+{
+	GtkWidget *w = glade_xml_get_widget (xml, printer-name-entry);
+	g_signal_connect_swapped (w,
+		changed,
+		G_CALLBACK (druid_update_sensitivities), xml);
+}
+
+static gboolean 
+check_printer_name(GladeXML *xml) 
+{
+	/* Checks whether the name is correctly filled */
+	GtkEntry *printer_name_entry = (GtkEntry *)glade_xml_get_widget (xml, printer-name-entry);
+	GtkLabel

Bug#409261: squid: FTBFS on hurd-i386

2007-02-01 Thread Matheus Morais

Package: squid
Version: 2.6.5-4
Severity: important
Tags: patch

squid 2.6.5-4 fails to build from source on hurd-i386. The attached patch
allow squid to build successfully on hurd. There are some missing squid
features, like ARP ACL, wich currently is not supported by hurd.


Thanks

Matheus Morais
--- helpers/basic_auth/MSNT/allowusers.c	2002-06-26 16:09:48.0 -0300
+++ helpers/basic_auth/MSNT/allowusers.c	2007-01-30 14:35:02.0 -0200
@@ -20,6 +20,10 @@
 static usersfile AllowUsers;
 static int init = 0;
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
 /* shared */
 char Allowuserpath[MAXPATHLEN];	/* MAXPATHLEN defined in param.h */
 
--- cfgaux/config.sub	2006-05-23 11:54:24.0 -0300
+++ cfgaux/config.sub	2007-01-30 12:06:51.0 -0200
@@ -118,7 +118,7 @@
 # Here we must recognize all the valid KERNEL-OS combinations.
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
-  nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
+  nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova* | hurd*)
 os=-$maybe_os
 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
 ;;
@@ -1140,7 +1140,8 @@
 	  | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 	  | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 	  | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
-	  | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
+	  | -powermax* | -dnix* | -nx6 | -nx7 | -sei* \
+	  | -hurd)
 	# Remember, each alternative MUST END IN *, to match a version number.
 		;;
 	-qnx*)
--- helpers/basic_auth/MSNT/confload.c	2002-06-26 16:09:48.0 -0300
+++ helpers/basic_auth/MSNT/confload.c	2007-01-30 14:35:29.0 -0200
@@ -32,6 +32,10 @@
 #define MAXSERVERS 5
 #define NTHOSTLEN 65
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
 extern char Denyuserpath[MAXPATHLEN];	/* MAXPATHLEN defined in param.h */
 extern char Allowuserpath[MAXPATHLEN];
 
--- helpers/basic_auth/MSNT/denyusers.c	2002-06-26 16:09:48.0 -0300
+++ helpers/basic_auth/MSNT/denyusers.c	2007-01-30 14:24:07.0 -0200
@@ -21,6 +21,10 @@
 static usersfile DenyUsers;
 static int init = 0;
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
 /* shared */
 char Denyuserpath[MAXPATHLEN];	/* MAXPATHLEN defined in param.h */
 
--- debian/rules	2007-02-01 07:32:43.0 -0200
+++ debian/rules	2007-01-30 14:10:47.0 -0200
@@ -13,7 +13,15 @@
 LC_ALL	= POSIX
 
 DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2/dev/null)
-DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2/dev/null)
+
+DEB_HOST_ARCH_OS:= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2/dev/null)
+# Take account of old dpkg-architecture output.
+ifeq ($(DEB_HOST_ARCH_OS),)
+ DEB_HOST_ARCH_OS:= $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
+ ifeq ($(DEB_HOST_ARCH_OS),gnu)
+   DEB_HOST_ARCH_OS:= hurd
+ endif
+endif
 
 CFLAGS = -Wall -g
 INSTALL = install
@@ -65,7 +73,7 @@
 		DEFAULT_MIB_PATH=$(datadir)/mib.txt
 
 # The HURD doesn't have pthreads yet.
-ifeq ($(DEB_HOST_ARCH_OS), gnu)
+ifeq ($(DEB_HOST_ARCH_OS), hurd)
 	with_pthreads = --enable-storeio=ufs,diskd,null
 	with_netfilter =
 	with_arp_acl =


Bug#407163: cdrkit: FTBFS on hurd-i386

2007-01-17 Thread Matheus Morais

Here is a more clean version of the patch.

Thanks,

Matheus Morais
--- debian/control 2007-01-16 09:19:47.0 -0200
+++ debian/control 2007-01-17 05:57:53.0 -0200
@@ -3,7 +3,7 @@
 Section: otherosfs
 Maintainer: Joerg Jaspert [EMAIL PROTECTED]
 Uploaders: Eduard Bloch [EMAIL PROTECTED], Steve McIntyre [EMAIL PROTECTED]
-Build-Depends: debhelper (=5.0.37.3), zlib1g-dev, autotools-dev, cmake (= 2.4.3-1), libcap-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libcam-dev [kfreebsd-i386 kfreebsd-amd64], libmagic-dev
+Build-Depends: debhelper (=5.0.37.3), zlib1g-dev, autotools-dev, cmake (= 2.4.3-1) | cmake (=2.4.2-1) [hurd-i386], libcap-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libcam-dev [kfreebsd-i386 kfreebsd-amd64], libmagic-dev
 Standards-Version: 3.7.2

 Package: wodim


Bug#407304: cmake: FTBFS on hurd-i386

2007-01-17 Thread Matheus Morais

Package: cmake
Version: 2.4.5-1
Severity: important
Tags: patch

cmake 2.4.5-1 FTBFS because SA_SIGINFO isn't supported by Hurd. The attached
patch check if SA_SIGINFO is defined to avoid build failure.


Thanks,

Matheus Morais
--- Source/kwsys/ProcessUNIX.c	2006-12-04 14:04:05.0 -0200
+++ Source/kwsys/ProcessUNIX.c	2007-01-17 08:49:45.0 -0200
@@ -2328,7 +2328,13 @@
 struct sigaction newSigChldAction;
 memset(newSigChldAction, 0, sizeof(struct sigaction));
 newSigChldAction.sa_sigaction = kwsysProcessesSignalHandler;
+/* SA_SIGINFO isn't supported by Hurd. Checking is needed to avoid build failure */
+#ifdef SA_SIGINFO
 newSigChldAction.sa_flags = SA_NOCLDSTOP | SA_SIGINFO;
+#else
+newSigChldAction.sa_flags = SA_NOCLDSTOP;
+#endif
+
 #ifdef SA_RESTART
 newSigChldAction.sa_flags |= SA_RESTART;
 #endif


Bug#407155: cmake: GNU.cmake missing on 2.4.2-1

2007-01-16 Thread Matheus Morais

Package: cmake
Version: 2.4.2-1 and later versions
Severity: normal
Tags: patch

cmake 2.4.2-1, wich is the latest version avaiable to hurd-i386 have GNU
cmake module missing from Modules/Platform. I tryed to build cmake
2.4.5-1under hurd but it fails because SA_SIGINFO is not supported,
also GNU cmake
module is not present in that version too. The attached patch creates
GNU.cmake.


Thanks,

Matheus Morais


patch
Description: Binary data


Bug#407163: cdrkit: FTBFS on hurd-i386

2007-01-16 Thread Matheus Morais

Package: cdrkit
Version: 1.1.2-1
Severity: important
Tags: patch

cdrkit currently FTBFS on hurd-i386 because cmake version of hurd avaiable
is 2.4.2-1.
Patch attached. Also GNU.cmake module is needed to build it properly on hurd
(check bug #407115).

Thanks,

Matheus Morais
--- debian/control.orig 2007-01-16 06:19:47.0 -0200
+++ debian/control 2007-01-16 07:01:43.0 -0200
@@ -3,7 +3,7 @@
 Section: otherosfs
 Maintainer: Joerg Jaspert [EMAIL PROTECTED]
 Uploaders: Eduard Bloch [EMAIL PROTECTED], Steve McIntyre [EMAIL PROTECTED]
-Build-Depends: debhelper (=5.0.37.3), zlib1g-dev, autotools-dev, cmake (= 2.4.3-1), libcap-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libcam-dev [kfreebsd-i386 kfreebsd-amd64], libmagic-dev
+Build-Depends: debhelper (=5.0.37.3), zlib1g-dev, autotools-dev, cmake (= 2.4.3-1) [!hurd-i386], cmake (=2.4.2-1) [hurd-i386], libcap-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libcam-dev [kfreebsd-i386 kfreebsd-amd64], libmagic-dev
 Standards-Version: 3.7.2

 Package: wodim