[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686267: marked as done (xplc: FTBFS on hurd-i386)

Your message dated Mon, 13 May 2013 21:05:34 +0000
with message-id <E1Ubzw6-0007Qz-GD@franck.debian.org>
and subject line Bug#686267: fixed in xplc 0.3.13-4
has caused the Debian Bug report #686267,
regarding xplc: 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 owner@bugs.debian.org

686267: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686267
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: xplc
Version: 0.3.13-3
Severity: important
Tags: patch
Usertags: hurd
User: debian-hurd@lists.debian.org

Hi, xplc fails to build due to PATH_MAX issues. The attached patch
solves this problem by using dynamic allocation of the needed strings. It
also adds inclusion of two header files needed. These are checked for in
the configure script already.


--- a/xplc/modulemgr.cpp	2004-09-30 23:09:54.000000000 +0200
+++ b/xplc/modulemgr.cpp	2012-08-30 20:43:10.000000000 +0200
@@ -29,6 +29,12 @@
 # include <stdint.h>
+# include <stdlib.h>
+# include <string.h>
 # include <limits.h>
@@ -83,7 +89,8 @@
 #if !defined(WIN32)
   DIR* dir;
   struct dirent* ent;
-  char fname[PATH_MAX];
+  char *fname = NULL;
+  int len = 0;
   IServiceManager* servmgr = XPLC_getServiceManager();
   IModuleLoader* loader;
   ModuleNode* modules = 0;
@@ -106,7 +113,10 @@
   while((ent = readdir(dir))) {
     IModule* module;
-    snprintf(fname, PATH_MAX, "%s/%s", directory, ent->d_name);
+    len = strlen(directory) + 1 + strlen(ent->d_name) + 1;
+    free(fname);
+    fname = (char*)malloc(len);
+    snprintf(fname, len, "%s/%s", directory, ent->d_name);
     module = loader->loadModule(fname);
     if(module) {
@@ -117,6 +127,7 @@
+  free(fname);

--- End Message ---
--- Begin Message ---
Source: xplc
Source-Version: 0.3.13-4

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

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

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

Debian distribution maintenance software
Barry deFreese <bdefreese@debian.org> (supplier of updated xplc 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 ftpmaster@debian.org)

Hash: SHA1

Format: 1.8
Date: Mon, 13 May 2013 12:00:03 -0400
Source: xplc
Binary: libxplc0.3.13 libxplc0.3.13-dev uuidcdef
Architecture: source i386
Version: 0.3.13-4
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Barry deFreese <bdefreese@debian.org>
 libxplc0.3.13 - Light weight component system
 libxplc0.3.13-dev - Light weight component system (Development libraries and headers)
 uuidcdef   - Universally Unique Identifier (UUID) generator
Closes: 606835 671384 686267
 xplc (0.3.13-4) unstable; urgency=low
   * QA upload.
   * Change to source 3.0 (quilt) format.
   * Fix FTBFS on GNU/Hurd. (Closes: #671384, #686267).
     - Thanks to Svante Signell and Cyril Roelandt for the patches.
   * Support --as-needed. (Closes: #606835).
     - Thanks to Stefan Potyra for the patch.
 1eea9503f04d13b315e47c0914666c38b35a466f 1173 xplc_0.3.13-4.dsc
 12b9ad4a7834fe1f1169273ff1208677d896cdf4 5426 xplc_0.3.13-4.debian.tar.gz
 fabf65f2ae6de660babc6f41999beefc81146d8c 41786 libxplc0.3.13_0.3.13-4_i386.deb
 a8255202a378f74f89495250e39d86bd07c57449 70966 libxplc0.3.13-dev_0.3.13-4_i386.deb
 e836b6c8eddafaa18dcf8dbf0f517da7f665c246 37072 uuidcdef_0.3.13-4_i386.deb
 8b174c71e8b1be7ada1d7d0540d571678a31444fb0e9e740220f5ceebbce79c8 1173 xplc_0.3.13-4.dsc
 6f0f56ef8ab6ac17d2006a27b15f105206b47ae88b792f53422ed871a4f11859 5426 xplc_0.3.13-4.debian.tar.gz
 01e347f3a0305c310f227b9694e2f0a61f6743fd5ce5249b3e731021aa9e99eb 41786 libxplc0.3.13_0.3.13-4_i386.deb
 1e8dffb4825e793a446a32bbf08809b8db67d811c419ea8b5c898398141c5684 70966 libxplc0.3.13-dev_0.3.13-4_i386.deb
 2e22fa5dc49af56544b9a99885e73b06247fbebab38639c9c262e6cfc0e78916 37072 uuidcdef_0.3.13-4_i386.deb
 c6152ed6a3d0be395611cb76fc596218 1173 libs optional xplc_0.3.13-4.dsc
 4b8a5b6be6e6def266a429253ea1b1f0 5426 libs optional xplc_0.3.13-4.debian.tar.gz
 d1881eebac928beb05f9f92c823b70ac 41786 libs optional libxplc0.3.13_0.3.13-4_i386.deb
 3b4b14654502a2a21dc5b67369f73363 70966 libdevel optional libxplc0.3.13-dev_0.3.13-4_i386.deb
 4ac02bee93ee9d2485a8e8323baf63f7 37072 devel optional uuidcdef_0.3.13-4_i386.deb

Version: GnuPG v1.4.12 (GNU/Linux)


--- End Message ---

Reply to: