Projects
home:sicherha:branches:Kolab:16
erlang-eimap
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 5
View file
erlang-eimap.spec
Changed
@@ -22,6 +22,7 @@ Patch1: untagged-commands.patch Patch2: eimap-0.4.0-otp-20.patch Patch3: make-things-easy-for-rebar3.patch +Patch4: use_iolist_to_binary.patch BuildRequires: erlang-goldrush BuildRequires: erlang-lager @@ -39,6 +40,7 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build DEBUG=1 @@ -78,6 +80,9 @@ %{_libdir}/erlang/lib/%{realname}-%{version}/ebin/*.beam %changelog +* Sat Mar 21 2020 hede <kolab983@der-he.de> - 0.4.0-1 +- use iolist_to_binary() to convert iolist to binary + * Sun Apr 08 2018 Christoph Erhardt <kolab@sicherha.de> - 0.4.0-1 - Upstream release 0.4.0
View file
use_iolist_to_binary.patch
Added
@@ -0,0 +1,22 @@ +Instead of converting the values from zlib:deflate to binary by hand we can use +the iolist_to_binary() function from erlang; this allows us to convert +also nested iolists. +diff -rupN eimap-0.4.0.ori/src/eimap.erl eimap-0.4.0/src/eimap.erl +--- eimap-0.4.0.ori/src/eimap.erl 2016-11-11 15:49:11.000000000 +0100 ++++ eimap-0.4.0/src/eimap.erl 2020-03-21 20:36:12.850230642 +0100 +@@ -478,13 +478,10 @@ reenque_command(Command, State) -> + State#state { command_queue = queue:in_r(Command, State#state.command_queue) }. + + inflated(Data, #state{ inflator = undefined }) -> Data; +-inflated(Data, #state{ inflator = Inflator }) -> joined(zlib:inflate(Inflator, Data), <<>>). ++inflated(Data, #state{ inflator = Inflator }) -> iolist_to_binary(zlib:inflate(Inflator, Data)). + + deflated(Data, #state{ deflator = undefined }) -> Data; +-deflated(Data, #state{ deflator = Deflator }) -> joined(zlib:deflate(Deflator, Data, sync), <<>>). +- +-joined([], Binary) -> Binary; +-joined([H|Rest], Binary) -> joined(Rest, <<Binary/binary, H/binary>>). ++deflated(Data, #state{ deflator = Deflator }) -> iolist_to_binary(zlib:deflate(Deflator, Data, sync)). + + reset_timeout(#state{ command_timeout = Timeout } = State) -> + cancel_timeout(State),
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +erlang-eimap (0.4.0-1.2) unstable; urgency=medium + + * use iolist_to_binary() to convert iolist to binary + + -- hede <kolab983@der-he.de> Sat, 21 Mar 2020 20:50:10 +0200 + erlang-eimap (0.4.0-1.1) unstable; urgency=medium * Package the 0.4.0 release
View file
debian.series
Changed
@@ -1,2 +1,3 @@ untagged-commands.patch -p1 eimap-0.4.0-otp-20.patch -p1 +use_iolist_to_binary.patch -p1
View file
erlang-eimap.dsc
Changed
@@ -2,7 +2,7 @@ Source: erlang-eimap Binary: erlang-eimap Architecture: any -Version: 0.4.0-1.1 +Version: 0.4.0-1.2 Maintainer: Christoph Erhardt <kolab@sicherha.de> Homepage: https://git.kolab.org/diffusion/EI/eimap.git Standards-Version: 3.9.6
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.