Bug#746385: libjson-spirit-dev: Using JSON Spirit with Multiple Threads

2014-04-29 Thread Julien VAUBOURG

Package: libjson-spirit-dev
Version: 4.05-1.1
Severity: normal
Tags: patch

Dear Maintainer,

As mentionned on the upstream's page¹, using JSON Spirit with multiple 
threads is not possible

if the BOOST_SPIRIT_THREADSAFE macro is not set.

¹ 
http://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented#threads


In fact, a usage of this library in at least two separate threads (even 
without links between them)

causes nondeterministic SEGFAULTs.

Would it be possible to compile the lib so that we can use several 
threads? Another solution is to

provide a second package with the thread-safe support.

You will find attached a patch for the version 4.05 of the upstream. The 
#define BOOST_SPIRIT_THREADSAFE
is uncommented in json_spirit_reader_template.h and CMakeLists.txt in 
the demo folders now link
boost_system and boost_thread to executables. So the main consequence 
for the package is a

dependence to libboost-thread-dev and libboost-system-dev.

Regards,
ju.diff -cr json_spirit_v4.05/json_demo/CMakeLists.txt json_spirit_v4.05_thread-safe/json_demo/CMakeLists.txt
*** json_spirit_v4.05/json_demo/CMakeLists.txt	2010-01-08 20:50:36.0 +0100
--- json_spirit_v4.05_thread-safe/json_demo/CMakeLists.txt	2014-04-29 15:58:30.260431589 +0200
***
*** 5,9 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_demo ${JSON_DEMO_SRCS})
! TARGET_LINK_LIBRARIES(json_demo json_spirit)
  
--- 5,9 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_demo ${JSON_DEMO_SRCS})
! TARGET_LINK_LIBRARIES(json_demo json_spirit boost_system boost_thread)
  
diff -cr json_spirit_v4.05/json_headers_only_demo/CMakeLists.txt json_spirit_v4.05_thread-safe/json_headers_only_demo/CMakeLists.txt
*** json_spirit_v4.05/json_headers_only_demo/CMakeLists.txt	2010-01-08 20:50:36.0 +0100
--- json_spirit_v4.05_thread-safe/json_headers_only_demo/CMakeLists.txt	2014-04-29 15:58:30.256431559 +0200
***
*** 5,9 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_headers_only_demo ${JSON_HEADERS_ONLY_DEMO_SRCS})
! TARGET_LINK_LIBRARIES(json_headers_only_demo json_spirit)
  
--- 5,9 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_headers_only_demo ${JSON_HEADERS_ONLY_DEMO_SRCS})
! TARGET_LINK_LIBRARIES(json_headers_only_demo json_spirit boost_system boost_thread)
  
diff -cr json_spirit_v4.05/json_map_demo/CMakeLists.txt json_spirit_v4.05_thread-safe/json_map_demo/CMakeLists.txt
*** json_spirit_v4.05/json_map_demo/CMakeLists.txt	2010-01-08 20:50:36.0 +0100
--- json_spirit_v4.05_thread-safe/json_map_demo/CMakeLists.txt	2014-04-29 15:58:30.256431559 +0200
***
*** 5,9 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_map_demo ${JSON_MAP_DEMO_SRCS})
! TARGET_LINK_LIBRARIES(json_map_demo json_spirit)
  
--- 5,9 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_map_demo ${JSON_MAP_DEMO_SRCS})
! TARGET_LINK_LIBRARIES(json_map_demo json_spirit boost_system boost_thread)
  
diff -cr json_spirit_v4.05/json_spirit/json_spirit_reader_template.h json_spirit_v4.05_thread-safe/json_spirit/json_spirit_reader_template.h
*** json_spirit_v4.05/json_spirit/json_spirit_reader_template.h	2011-08-04 20:28:16.0 +0200
--- json_spirit_v4.05_thread-safe/json_spirit/json_spirit_reader_template.h	2014-04-29 15:58:30.256431559 +0200
***
*** 13,19 
  #include json_spirit_value.h
  #include json_spirit_error_position.h
  
! //#define BOOST_SPIRIT_THREADSAFE  // uncomment for multithreaded use, requires linking to boost.thread
  
  #include boost/bind.hpp
  #include boost/function.hpp
--- 13,19 
  #include json_spirit_value.h
  #include json_spirit_error_position.h
  
! #define BOOST_SPIRIT_THREADSAFE  // uncomment for multithreaded use, requires linking to boost.thread
  
  #include boost/bind.hpp
  #include boost/function.hpp
diff -cr json_spirit_v4.05/json_test/CMakeLists.txt json_spirit_v4.05_thread-safe/json_test/CMakeLists.txt
*** json_spirit_v4.05/json_test/CMakeLists.txt	2011-08-07 20:55:10.0 +0200
--- json_spirit_v4.05_thread-safe/json_test/CMakeLists.txt	2014-04-29 15:58:30.256431559 +0200
***
*** 11,15 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_test ${JSON_TEST_SRCS})
! TARGET_LINK_LIBRARIES(json_test json_spirit)
  
--- 11,15 
  INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
  
  ADD_EXECUTABLE(json_test ${JSON_TEST_SRCS})
! TARGET_LINK_LIBRARIES(json_test json_spirit boost_system boost_thread)
  


Bug#641280: ITP: libtemplate-plugin-datetime-format-perl -- are you still working on it?

2012-01-22 Thread Julien VAUBOURG

On Sat, 21 Jan 2012 23:51:51 +0100, Florian Schlichting wrote:

Hi Julien,


Hi Florian,


back in July of last year you volunteered to work on the Perl 
packages

needed for FixMyStreet, and in September filed an ITP for
libtemplate-plugin-datetime-format-perl (#641280), yet as far as I 
can

see nothing has been uploaded to git yet. I've packaged the other
modules on the FixMyStreet list, and unless you object, I'd also work 
on

libtemplate-plugin-datetime-format-perl.

How far has your work on libtemplate-plugin-datetime-format-perl
progressed, and do you still plan to keep working on it until a first
release?


I was interrupted in my work, and I totally forgot this ITP, thanks for 
the reminder.


I've uploaded an initial release this afternoon, I'm waiting for 
someone to check it.


Cheers,
ju.

--
http://ju.vg

Envoyé via un serveur personnel, hébergé dans mon appartement et relié 
au réseau par un FAI participatif. Je suis le seul à pouvoir consulter 
mon courrier ; et vous ?




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



Bug#641280: ITP: libtemplate-plugin-datetime-format-perl -- format DateTime objects from inside TT with DateTime::Format-style formatters

2011-09-12 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libtemplate-plugin-datetime-format-perl
  Version : 0.02
  Upstream Author : Jonathan Rockway jrock...@cpan.org
* URL : 
http://search.cpan.org/~jrockway/Template-Plugin-DateTime-Format-0.02/
* License : Artistic 1, GPL 1
  Programming Lang: Perl
  Description : Format DateTime objects from inside TT with 
DateTime::Format-style formatters

Oftentimes, you have a DateTime object that you want to render in your template.
However, the default rendering (2008-01-01T01:23:45) is pretty ugly. Formatting
the DateTime with a DateTime::Format object is the usual solution, but there's
usually not a nice place to put the formatting code.
..
This plugin solves that problem. You can create a formatter object from within
TT and then use that object to format DateTime objects.



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



Bug#639404: ITP: libtemplate-plugin-comma-perl -- TT Plugin to commify numbers

2011-08-26 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libtemplate-plugin-comma-perl
  Version : 0.04
  Upstream Author : Tatsuhiko Miyagawa miyag...@bulknews.net
* URL : http://search.cpan.org/~miyagawa/Template-Plugin-Comma-0.04/
* License : GPL-1+, Artistic 1
  Programming Lang: Perl
  Description : TT Plugin to commify numbers

Template::Plugin::Comma is a plugin for TT, which allows you to commify your
numbers in templates. This would be especially useful for prices.



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



Bug#637200: ITP: libstatistics-distributions-perl -- Statistics::Distributions - Perl module for calculating critical values and upper probabilities of common statistical distributions

2011-08-09 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libstatistics-distributions-perl
  Version : 1.02
  Upstream Author : Michael Kospach mike.p...@gmx.at
* URL : http://search.cpan.org/~mikek/Statistics-Distributions-1.02
* License : Artistic 1 or GPL-1+
  Programming Lang: Perl
  Description : Statistics::Distributions - Perl module for calculating 
critical values and upper probabilities of common statistical distributions

Statistics::Distributions calculates percentage points (5 significant digits) 
of the u
(standard normal) distribution, the student's t distribution, the chi-square
distribution and the F distribution. It can also calculate the upper probability
(5 significant digits) of the u (standard normal), the chi-square, the t and the
F distribution. These critical values are needed to perform statistical tests,
like the u test, the t test, the F test and the chi-squared test, and to
calculate confidence intervals.



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



Bug#636646: ITP: libdevel-hide-perl -- Devel::Hide - Forces the unavailability of specified Perl modules (for testing)

2011-08-04 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libdevel-hide-perl
  Version : 0.0008
  Upstream Author : Adriano R. Ferreira ferre...@cpan.org
* URL : http://search.cpan.org/~ferreira/Devel-Hide-0.0008/
* License : Artistic 1, GPL 1
  Programming Lang: Perl
  Description : Devel::Hide - Forces the unavailability of specified Perl 
modules (for testing)

Given a list of Perl modules/filenames, this module makes require and use
statements fail (no matter the specified files/modules are installed or not).



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



Bug#635606: ITP: liburi-smarturi-perl -- Subclassable and hostless URIs

2011-07-27 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: liburi-smarturi-perl
  Version : 0.031
  Upstream Author : Rafael Kitover rkito...@cpan.org
* URL : http://search.cpan.org/~rkitover/URI-SmartURI-0.031/
* License : Artistic 1, GPL 1
  Programming Lang: Perl
  Description : Subclassable and hostless URIs

This is a sort of subclass of URI using delegation with some extra methods,
all the methods that work for URIs will work on these objects as well.



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



Bug#635608: ITP: libcatalyst-plugin-smarturi-perl -- Configurable URIs for Catalyst

2011-07-27 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libcatalyst-plugin-smarturi-perl
  Version : 0.036
  Upstream Author : Rafael Kitover rkito...@cpan.org
* URL : 
http://search.cpan.org/~rkitover/Catalyst-Plugin-SmartURI-0.036/
* License : Artistic 1, GPL 1
  Programming Lang: Perl
  Description : Configurable URIs for Catalyst

Configure whether $c-uri_for and $c-req-uri_with return absolute, hostless 
or relative URIs, or URIs based on the 'Host' header. Also allows configuring 
which URI class to use. Works on application-wide or per-request basis.



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



Bug#635509: ITP: libmoosex-followpbp-perl -- Name your accessors get_foo() and set_foo()

2011-07-26 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libmoosex-followpbp-perl
  Version : 0.05
  Upstream Author : Dave Rolsky auta...@urth.org
* URL : http://search.cpan.org/~drolsky/MooseX-FollowPBP-0.05/
* License : Artistic 2.0
  Programming Lang: Perl
  Description : Name your accessors get_foo() and set_foo()

This module does not provide any methods. Simply loading it changes the default 
naming policy for the loading class so that accessors are separated into get 
and set methods. The get methods are prefixed with get_ as the accessor, 
while set methods are prefixed with set_. This is the naming style 
recommended by Damian Conway in Perl Best Practices.



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



Bug#635510: ITP: libio-pty-easy-perl -- Easy interface to IO::Pty

2011-07-26 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libio-pty-easy-perl
  Version : 0.08
  Upstream Author : Jesse Luehrs d...@tozt.net
* URL : http://search.cpan.org/~doy/IO-Pty-Easy-0.08/
* License : Artistic 1, GPL 1
  Programming Lang: Perl
  Description : Easy interface to IO::Pty

IO::Pty::Easy provides an interface to IO::Pty which hides most of the ugly
details of handling ptys, wrapping them instead in simple spawn/read/write
commands.



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



Bug#635374: ITP: libtie-array-iterable-perl -- Tie::Array::Iterable - Allows creation of iterators for lists and arrays

2011-07-25 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libtie-array-iterable-perl
  Version : 0.03
  Upstream Author : Michael K. Neylon mneylon...@masemware.com
* URL : 
http://search.cpan.org/~mneylon/Tie-Array-Iterable-0.03/Iterable.pm
* License : Artistic
  Programming Lang: Perl
  Description : Tie::Array::Iterable - Allows creation of iterators for 
lists and arrays

Tie::Hash::Iterable allows one to create iterators for lists and arrays. The 
concept of iterators is borrowed from the C++ STL [1], in which most of the 
collections have iterators, though this class does not attempt to fully mimic 
it.

Typically, in C/C++ or Perl, the 'easy' way to visit each item on a list is to 
use a counter, and then a for( ;; ) loop. However, this requires knowledge on 
how long the array is to know when to end. In addition, if items are removed or 
inserted into the array during the loop, then the counter will be incorrect on 
the next run through the loop, and will cause problems.

While some aspects of this are fixed in Perl by the use of for or foreach, 
these commands still suffer when items are removed or added to the array while 
in these loops. Also, if one wished to use break to step out of a foreach loop, 
then restart where they left at some later point, there is no way to do this 
without maintaining some additional state information.

The concept of iterators is that each iterator is a bookmark to a spot, 
typically concidered between two elements. While there is some overhead to the 
use of iterators, it allows elements to be added or removed from the list, with 
the iterator adjusting appropriate, and allows the state of a list traversal to 
be saved when needed.



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



Bug#635381: ITP: libcurses-toolkit-perl -- Curses::Toolkit - A modern Curses toolkit

2011-07-25 Thread Julien VAUBOURG
Package: wnpp
Severity: wishlist
Owner: Julien VAUBOURG jul...@vaubourg.com


* Package name: libcurses-toolkit-perl
  Version : 0.207
  Upstream Author : Damien dams Krotkine d...@zarb.org
* URL : http://search.cpan.org/~dams/Curses-Toolkit-0.207
* License : The Perl 5 License (Artistic 1  GPL 1)
  Programming Lang: Perl
  Description : Curses::Toolkit - A modern Curses toolkit

This module tries to be a modern curses toolkit, based on the Curses module, to
build semi-graphical user interfaces easily.



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



Bug#607325: WNPP : uzbl

2011-02-09 Thread Julien VAUBOURG
Hello,

I saw in the wnpp[1], you leave the Debian community.

I use Uzbl daily, and I'm a Debian fan.

I'm interested to maintain this package. If I can be useful for you,
could you initiate me into this stuff ?

Have a nice day,
Ju.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607325

--
http://julien.vaubourg.com
lemanchotvol...@jabber.fr
GPG Key ID : 8135DB1A



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



Bug#459482: dietlibc armel build / make dyn issues

2010-11-21 Thread Julien VAUBOURG
Hi,

Actually, with no -meabi=4 in diet.c and make MYARCH=arm DEBUG=1, there is 
no bug with compiling.

But, with make MYARCH=arm dyn, there are issues:

gcc -D__dietlibc__ -I. -isystem include -pipe -nostdinc -Os 
-fomit-frame-pointer
-fstrict-aliasing -mabi=aapcs-linux -mfloat-abi=soft 
-mno-thumb-interwork -W
-Wall -Wextra -Wchar-subscripts -Wmissing-prototypes - 
Wmissing-declarations
-Wno-switch -Wno-unused -Wredundant-decls -fPIC -D__DYN_LIB -c
arm/dyn_syscalls.S -o pic-arm/dyn_syscalls.o
arm/../syscalls.s/__pread.S: Assembler messages:
arm/../syscalls.s/__pread.S:3: Error: invalid literal constant: pool 
needs to be closer
arm/../syscalls.s/__pwrite.S:3: Error: invalid literal constant: pool 
needs to be closer
arm/../syscalls.s/getrlimit.S:3: Error: invalid literal constant: pool 
needs to be closer
make: *** [pic-arm/dyn_syscalls.o] Error 1

The third line of arm/../syscalls.s/__pread.S is:

syscall_weak(pread,pread64,__libc_pread64)

And syscall_weak is a macro defined in arm/syscalls.h:

 1 #define syscall_weak(name,wsym,sym) __syscall_weak __NR_##name, 
wsym, sym, __ARGS_##name
 2 .macro __syscall_weak name wsym sym typ
 3 .text 
 4 .type \wsym,function
 5 .weak \wsym
 6 \wsym:
 7 .type \sym,function
 8 .global \sym
 9 \sym:
10  stmfd   sp!,{r4,r5,r7,lr}
11  ldr r4, [sp,#16]
12  ldr r5, [sp,#20]
13  ldr r7, =\name
14  swi 0
15  b   __unified_syscall
16 .endm

I don't know debug that...

Thanks a lot,

-- 
http://julien.vaubourg.com
lemanchotvol...@jabber.fr


signature.asc
Description: Digital signature