lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #238906 from trofi/serf-update

serf: 1.3.9 -> 1.3.10

authored by

7c6f434c and committed by
GitHub
c443448b ec2b581c

+17 -41
+17 -10
pkgs/development/libraries/serf/default.nix
··· 1 - { lib, stdenv, fetchurl, apr, scons, openssl, aprutil, zlib, libkrb5 2 - , pkg-config, libiconv 3 - , fetchpatch }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , apr 5 + , scons 6 + , openssl 7 + , aprutil 8 + , zlib 9 + , libkrb5 10 + , pkg-config 11 + , libiconv 12 + , fetchpatch 13 + }: 4 14 5 15 stdenv.mkDerivation rec { 6 16 pname = "serf"; 7 - version = "1.3.9"; 17 + version = "1.3.10"; 8 18 9 19 src = fetchurl { 10 20 url = "mirror://apache/serf/${pname}-${version}.tar.bz2"; 11 - sha256 = "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l"; 21 + hash = "sha256-voHvCLqiUW7Np2p3rffe97wyJ+61eLmjO0X3tB3AZOY="; 12 22 }; 13 23 14 24 nativeBuildInputs = [ pkg-config scons ]; ··· 17 27 18 28 patches = [ 19 29 ./scons.patch 20 - # https://issues.apache.org/jira/projects/SERF/issues/SERF-198 21 - (fetchpatch { 22 - url = "https://issues.apache.org/jira/secure/attachment/13019945/serf.patch"; 23 - hash = "sha256-3djDGG30R/gq74KJL8OJ/upMh1zDpqtwGylRzN0lXpY="; 24 - }) 30 + 25 31 (fetchpatch { 26 32 url = "https://src.fedoraproject.org/rpms/libserf/raw/rawhide/f/libserf-1.3.9-errgetfunc.patch"; 27 33 hash = "sha256-FQJvXOIZ0iItvbbcu4kR88j74M7fOi7C/0NN3o1/ub4="; ··· 44 50 45 51 meta = with lib; { 46 52 description = "HTTP client library based on APR"; 53 + homepage = "https://serf.apache.org/"; 47 54 license = licenses.asl20; 48 55 maintainers = with maintainers; [ orivej raskin ]; 49 56 platforms = platforms.linux ++ platforms.darwin;
-31
pkgs/development/libraries/serf/scons.patch
··· 2 2 index 4358a23..6ce7776 100644 3 3 --- a/SConstruct 4 4 +++ b/SConstruct 5 - @@ -55,7 +55,7 @@ def RawListVariable(key, help, default): 6 - # To be used to ensure a PREFIX directory is only created when installing. 7 - def createPathIsDirCreateWithTarget(target): 8 - def my_validator(key, val, env): 9 - - build_targets = (map(str, BUILD_TARGETS)) 10 - + build_targets = (list(map(str, BUILD_TARGETS))) 11 - if target in build_targets: 12 - return PathVariable.PathIsDirCreate(key, val, env) 13 - else: 14 5 @@ -155,6 +155,8 @@ if sys.platform == 'win32': 15 6 env = Environment(variables=opts, 16 7 tools=('default', 'textfile',), ··· 20 11 ) 21 12 22 13 env.Append(BUILDERS = { 23 - @@ -163,9 +164,9 @@ env.Append(BUILDERS = { 24 - suffix='.def', src_suffix='.h') 25 - }) 26 - 27 - -match = re.search('SERF_MAJOR_VERSION ([0-9]+).*' 28 - - 'SERF_MINOR_VERSION ([0-9]+).*' 29 - - 'SERF_PATCH_VERSION ([0-9]+)', 30 - +match = re.search(b'SERF_MAJOR_VERSION ([0-9]+).*' 31 - + b'SERF_MINOR_VERSION ([0-9]+).*' 32 - + b'SERF_PATCH_VERSION ([0-9]+)', 33 - env.File('serf.h').get_contents(), 34 - re.DOTALL) 35 - MAJOR, MINOR, PATCH = [int(x) for x in match.groups()] 36 - @@ -183,7 +184,7 @@ CALLOUT_OKAY = not (env.GetOption('clean') or env.GetOption('help')) 37 - 38 - unknown = opts.UnknownVariables() 39 - if unknown: 40 - - print 'Warning: Used unknown variables:', ', '.join(unknown.keys()) 41 - + print('Warning: Used unknown variables:', ', '.join(list(unknown.keys()))) 42 - 43 - apr = str(env['APR']) 44 - apu = str(env['APU'])