Your message dated Sat, 03 Mar 2012 03:47:18 +0000
with message-id <[email protected]>
and subject line Bug#648187: fixed in mx 1.4.2-1
has caused the Debian Bug report #648187,
regarding mx: FTBFS on hurd-i386
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 [email protected]
immediately.)


-- 
648187: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648187
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mx
Version: 1.3.1-1
Severity: important
Tags: patch
User: [email protected]
Usertags: hurd

Hi,

The attached patch solves the FTBFS problems of mx on GNU/Hurd. Dynamic
memory allocation is used to avoid the absence of a PATH_MAX definition
for GNU/Hurd. The glib versions of malloc and free are utilized.

Thanks!


diff -ur mx-1.3.1/mx/mx-create-image-cache.c mx-1.3.1.modified/mx/mx-create-image-cache.c
--- mx-1.3.1/mx/mx-create-image-cache.c	2011-08-11 18:12:29.000000000 +0200
+++ mx-1.3.1.modified/mx/mx-create-image-cache.c	2011-11-09 12:51:51.000000000 +0100
@@ -417,7 +417,8 @@
                              char *pngfile)
 {
   FILE *file;
-  char filename[PATH_MAX *2];
+  char *filename = NULL;
+  int len = 0;
   struct imgcache_element element;
   struct imgcache_element *elm;
   GList *item;
@@ -426,11 +427,14 @@
 
   strcpy(&element.filename[0], pngfile);
 
+  len = strlen (directory) + 9;
+  filename = g_malloc (len + 1);
   sprintf(filename, "%s/mx.cache", directory);
 
   file = fopen(filename, "w");
   if (!file) {
       fprintf(stderr, "Cannot write cache file: %s\n", filename);
+      g_free (filename);
       return;
     }
   fwrite(&element, 1, sizeof(element), file);
@@ -442,6 +446,7 @@
       elm->ptr = NULL;
       fwrite(elm, 1, sizeof(element), file);
     }
+  g_free (filename);
   fclose(file);
 
 }
@@ -449,7 +454,9 @@
 int main(int    argc,
          char **argv)
 {
-  char image_file[PATH_MAX];
+  char *image_file = NULL;
+  int len = 0;
+
   if (argc <= 1) {
       printf("Usage:\n\t\tmakecache <directory>\n");
       return EXIT_FAILURE;
@@ -457,8 +464,11 @@
   g_type_init();
   makecache(argv[1], 1);
   optimal_placement();
+  len = sizeof (guint) + 18;
+  image_file = g_malloc (len + 1);
   sprintf(image_file, "/var/cache/mx/%08x.png", g_str_hash(argv[1]));
   if (make_final_image(image_file))
     write_cache_file(argv[1], image_file);
+  g_free (image_file);
   return EXIT_SUCCESS;
 }

--- End Message ---
--- Begin Message ---
Source: mx
Source-Version: 1.4.2-1

We believe that the bug you reported is fixed in the latest version of
mx, which is due to be installed in the Debian FTP archive:

gir1.2-mx-1.0_1.4.2-1_i386.deb
  to main/m/mx/gir1.2-mx-1.0_1.4.2-1_i386.deb
libmx-1.0-2-dbg_1.4.2-1_i386.deb
  to main/m/mx/libmx-1.0-2-dbg_1.4.2-1_i386.deb
libmx-1.0-2_1.4.2-1_i386.deb
  to main/m/mx/libmx-1.0-2_1.4.2-1_i386.deb
libmx-dev_1.4.2-1_i386.deb
  to main/m/mx/libmx-dev_1.4.2-1_i386.deb
libmx-doc_1.4.2-1_all.deb
  to main/m/mx/libmx-doc_1.4.2-1_all.deb
mx_1.4.2-1.debian.tar.gz
  to main/m/mx/mx_1.4.2-1.debian.tar.gz
mx_1.4.2-1.dsc
  to main/m/mx/mx_1.4.2-1.dsc
mx_1.4.2.orig.tar.bz2
  to main/m/mx/mx_1.4.2.orig.tar.bz2



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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ying-Chun Liu (PaulLiu) <[email protected]> (supplier of updated mx 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 [email protected])


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

Format: 1.8
Date: Sat, 03 Mar 2012 11:19:51 +0800
Source: mx
Binary: libmx-1.0-2 libmx-dev libmx-doc libmx-1.0-2-dbg gir1.2-mx-1.0
Architecture: source all i386
Version: 1.4.2-1
Distribution: unstable
Urgency: low
Maintainer: Ying-Chun Liu (PaulLiu) <[email protected]>
Changed-By: Ying-Chun Liu (PaulLiu) <[email protected]>
Description: 
 gir1.2-mx-1.0 - GObject introspection data for the libmx library
 libmx-1.0-2 - toolkit for the Moblin user experience
 libmx-1.0-2-dbg - toolkit for the Moblin user experience (debug symbols)
 libmx-dev  - toolkit for the Moblin user experience (development files)
 libmx-doc  - toolkit for the Moblin user experience (documentation)
Closes: 648187
Changes: 
 mx (1.4.2-1) unstable; urgency=low
 .
   * New upstream release
     - Use dynamic memory allocation for paths (Closes: #648187)
   * Change Build-Depends gir1.2-json-glib-1.0 -> gir1.2-json-1.0
Checksums-Sha1: 
 97206a87e4626c26dbd81c74edf16472fcacab75 2250 mx_1.4.2-1.dsc
 0b59d4e6c6dd6c7f4f0f49367f61ef90bb32e3f2 1135098 mx_1.4.2.orig.tar.bz2
 4a81045a29d4ca3d9f127cb34134dd50ed85f306 8911 mx_1.4.2-1.debian.tar.gz
 d3c36e5a5a7ee5edbc5bd728dc58ed6a85538267 563776 libmx-doc_1.4.2-1_all.deb
 14def1f38e796b33def8ad57bdd9cd8ec89719e6 656224 libmx-1.0-2_1.4.2-1_i386.deb
 f99d0370312468c9648920ba9fd70e9c3b016d22 397746 libmx-dev_1.4.2-1_i386.deb
 2c650cacf1eae6ce854c198b168fa764a371e36c 362574 
libmx-1.0-2-dbg_1.4.2-1_i386.deb
 59249369de6996b8dccf6d216681ca82e874fca7 341194 gir1.2-mx-1.0_1.4.2-1_i386.deb
Checksums-Sha256: 
 30bebf593c00db4d3e1be5c210f1aad2962cac3ab48b90b908a4438231c7714e 2250 
mx_1.4.2-1.dsc
 9d40dd48a8e3d098cc75c05163f77305ffb83439783dc91be50681c9502660ce 1135098 
mx_1.4.2.orig.tar.bz2
 3ab05d361a2171aab7409255b192fac42a60b3e81b62e51c35bbcc01c6511a30 8911 
mx_1.4.2-1.debian.tar.gz
 7182f131800050295a4d7bdbba8e249e9e2e136295c493e0c492db20377fbdb7 563776 
libmx-doc_1.4.2-1_all.deb
 1019cdb863efce2c725d9e09802b26837b3dff24be26e567848ce15327b11865 656224 
libmx-1.0-2_1.4.2-1_i386.deb
 9617d4c07d9a73a0a44062a5fa6d9ef6d70fc0b71a7f301b07f5b6e26da4acfc 397746 
libmx-dev_1.4.2-1_i386.deb
 c56c7a73f0a3543a5ed0c19d076cc28c9e74a6fe81e72cce82428ef15e8b4905 362574 
libmx-1.0-2-dbg_1.4.2-1_i386.deb
 75bb6ffd99cab8c6af2ac92ef9f503bd8313f9a19fb062f716eb188c38ad5e59 341194 
gir1.2-mx-1.0_1.4.2-1_i386.deb
Files: 
 46792bed3521864b664b71839ac983b9 2250 libs optional mx_1.4.2-1.dsc
 faf8d97ad9995f54cc91f90bc90c8f9d 1135098 libs optional mx_1.4.2.orig.tar.bz2
 bedf199c9adf306450763bd44b56d79a 8911 libs optional mx_1.4.2-1.debian.tar.gz
 f10f90eebaea37f797c35f692eb2464a 563776 doc optional libmx-doc_1.4.2-1_all.deb
 2742748e484b483768293825b9f1501f 656224 libs optional 
libmx-1.0-2_1.4.2-1_i386.deb
 a369a286c4522a1047b3e9cc07118aa1 397746 libdevel optional 
libmx-dev_1.4.2-1_i386.deb
 20aac58b57ac2f70e306839dd97f5527 362574 debug extra 
libmx-1.0-2-dbg_1.4.2-1_i386.deb
 7f44a342bdd2d7714a66c7e2094a8f47 341194 libs optional 
gir1.2-mx-1.0_1.4.2-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCgAGBQJPUZJ+AAoJEPgLgUbQQog2h8IP/0IoBr0yIEtzbbR+4ZUUKH86
v6phDbpwZozMSR/Ah8IAli25qC2MJrEmIUD7fKPlPk+/eGPL7HJxyHP1IzyZS4Kc
06ub2/KW2d8fuw58MVlE9JnpBYMJFh3sKO5JwmAGog+pG+mfOKSMNCw+HbRN/pWy
jPhaZHcfsZr8y2QX2NCxptP2hlR047mvOVaarSYaB6k8TdYl103pJ8mR3GFvKl2j
p+UsNG8FhrFc0EY7fQvsnIhS6gj6zpup1Mqi6hfZXgI8hQsDSCuc8nLZodMSDsrr
mnySKE2WE79GHYzv5CgTF+f1F9vXtT4IajwmOE+Pk+Z0uYGXx+eEO8n1EBc6C2DR
6Uh8e5v15kUnLmlDqvqwwEtfqGL1kOl44EgSOeyM14SwdsPOwyXeuPp91WT97OoG
4lf8Z6K9mXGSd3iAiNeICR3scZMdJ2+VAb3McF+a4hL7ChZWyVW7vRxwq0sCXiMw
IGY0RPZ45KjpvFsEU/qjisVx8GAITAf4eLk+ZNuBzAlys16yGv5StLfxIne6JmGh
VjR5qk/+tN7mmRISneGjk4+qqo2qbHxI2IoTMQr+WKHCj8CvJ0Bo9WCZCk4Vp+78
/1mk9Cq/UuuQkauE3FlDtxs6LZNMcLiZJP9JNw5ZDS7RDy8+k6G8BEobzCYdwUn3
vMMPqgUoVCGX2ZC2COMq
=IR/4
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to