Merge 'staging' into closure-size
- there were many easy merge conflicts - cc-wrapper needed nontrivial changes Many other problems might've been created by interaction of the branches, but stdenv and a few other packages build fine now.
This commit is contained in:
@@ -21,6 +21,6 @@ buildPerlPackage rec {
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
meta = {
|
||||
license = "perl";
|
||||
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ buildPerlPackage rec {
|
||||
meta = {
|
||||
homepage = http://search.cpan.org/dist/DBD-Pg/;
|
||||
description = "DBI PostgreSQL interface";
|
||||
license = "perl";
|
||||
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, buildPerlPackage, DBI, sqlite }:
|
||||
|
||||
buildPerlPackage rec {
|
||||
name = "DBD-SQLite-1.42";
|
||||
name = "DBD-SQLite-1.44";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/I/IS/ISHIGAKI/${name}.tar.gz";
|
||||
sha256 = "14x9cjsc8dz8ad1nad0bqiq9cbk1rjfb8h5y0rpk3pdl38y6afxb";
|
||||
sha256 = "10r7wv5x4vzn9zbk3c7mhbx6kz76xxd9p357592c0wamj458qlml";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ DBI ];
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
{fetchurl, buildPerlPackage, DBI, mysql}:
|
||||
{ fetchurl, buildPerlPackage, DBI, mysql }:
|
||||
|
||||
buildPerlPackage {
|
||||
name = "DBD-mysql-4.023";
|
||||
buildPerlPackage rec {
|
||||
name = "DBD-mysql-4.031";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://cpan/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.023.tar.gz;
|
||||
sha256 = "0j4i0i6apjwx5klk3wigh6yysssn7bs6p8c5sh31m6qxsbgyk9xa";
|
||||
url = "mirror://cpan/authors/id/C/CA/CAPTTOFU/${name}.tar.gz";
|
||||
sha256 = "1lngnkfi71gcpfk93xhil2x9i3w3rqjpxlvn5n92jd5ikwry8bmf";
|
||||
};
|
||||
|
||||
buildInputs = [mysql] ;
|
||||
propagatedBuildInputs = [DBI];
|
||||
buildInputs = [ mysql.lib ] ;
|
||||
propagatedBuildInputs = [ DBI ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
# makeMakerFlags = "MYSQL_HOME=${mysql}";
|
||||
}
|
||||
|
||||
@@ -16,12 +16,4 @@ buildPerlPackage rec {
|
||||
INCLUDE = ${db}/include
|
||||
EOF
|
||||
'';
|
||||
|
||||
# I don't know about perl paths, but PERL5LIB env var is managed through
|
||||
# lib/perl5/site_perl, and the *.pm should be inside lib/perl5/site_perl/...
|
||||
# for other packages to get that in the PERL5LIB env var.
|
||||
postInstall = ''
|
||||
mkdir -p $out/lib/perl5/site_perl/
|
||||
cp -R $out/lib/perl5/5* $out/lib/perl5/site_perl
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
diff --git a/t/003_basic_hash.t b/t/003_basic_hash.t
|
||||
index 1f842ae..c21ac52 100644
|
||||
--- a/t/003_basic_hash.t
|
||||
+++ b/t/003_basic_hash.t
|
||||
@@ -170,10 +170,10 @@ is_deeply($options->provides, {
|
||||
is($options->type_constraint->type_parameter, 'Str', '... got the right container type');
|
||||
|
||||
$stuff->set_option( oink => "blah", xxy => "flop" );
|
||||
-my @key_value = $stuff->key_value;
|
||||
+my @key_value = sort{ $a->[0] cmp $b->[0] } $stuff->key_value;
|
||||
is_deeply(
|
||||
\@key_value,
|
||||
- [ [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
|
||||
+ [ sort{ $a->[0] cmp $b->[0] } [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
|
||||
'... got the right key value pairs'
|
||||
);
|
||||
|
||||
diff --git a/t/203_trait_hash.t b/t/203_trait_hash.t
|
||||
index 8e876b1..451c0bb 100644
|
||||
--- a/t/203_trait_hash.t
|
||||
+++ b/t/203_trait_hash.t
|
||||
@@ -156,10 +156,10 @@ is_deeply($options->provides, {
|
||||
is($options->type_constraint->type_parameter, 'Str', '... got the right container type');
|
||||
|
||||
$stuff->set_option( oink => "blah", xxy => "flop" );
|
||||
-my @key_value = $stuff->key_value;
|
||||
+my @key_value = sort{ $a->[0] cmp $b->[0] } $stuff->key_value;
|
||||
is_deeply(
|
||||
\@key_value,
|
||||
- [ [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
|
||||
+ [ sort{ $a->[0] cmp $b->[0] } [ 'xxy', 'flop' ], [ 'quantity', 4 ], [ 'oink', 'blah' ] ],
|
||||
'... got the right key value pairs'
|
||||
);
|
||||
@@ -13,6 +13,9 @@ perl.stdenv.mkDerivation (
|
||||
# Prevent CPAN downloads.
|
||||
PERL_AUTOINSTALL = "--skipdeps";
|
||||
|
||||
# Avoid creating perllocal.pod, which contains a timestamp
|
||||
installTargets = "pure_install";
|
||||
|
||||
# From http://wiki.cpantesters.org/wiki/CPANAuthorNotes: "allows
|
||||
# authors to skip certain tests (or include certain tests) when
|
||||
# the results are not being monitored by a human being."
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
https://github.com/pfig/net-amazon-s3/pull/42
|
||||
|
||||
From 116d73235d8243ec4427e6d7bf1f14f7fb9129aa Mon Sep 17 00:00:00 2001
|
||||
From: Jay Hannah <jay.hannah@iinteractive.com>
|
||||
Date: Thu, 8 May 2014 02:29:14 +0000
|
||||
Subject: [PATCH] Patch for current versions of Moose: "Passing a list of
|
||||
values to enum is deprecated. Enum values should be wrapped in an arrayref."
|
||||
|
||||
---
|
||||
lib/Net/Amazon/S3/Client/Object.pm | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/Net/Amazon/S3/Client/Object.pm b/lib/Net/Amazon/S3/Client/Object.pm
|
||||
index 08e48c6..106f2fd 100755
|
||||
--- a/lib/Net/Amazon/S3/Client/Object.pm
|
||||
+++ b/lib/Net/Amazon/S3/Client/Object.pm
|
||||
@@ -16,7 +16,7 @@ enum 'AclShort' =>
|
||||
[ qw(private public-read public-read-write authenticated-read) ];
|
||||
|
||||
enum 'StorageClass' =>
|
||||
- qw(standard reduced_redundancy);
|
||||
+ [ qw(standard reduced_redundancy) ];
|
||||
|
||||
has 'client' =>
|
||||
( is => 'ro', isa => 'Net::Amazon::S3::Client', required => 1 );
|
||||
@@ -0,0 +1,5 @@
|
||||
GLUT=20801
|
||||
VERSION=3.0 Mesa 10.2.6
|
||||
VENDOR=Intel Open Source Technology Center
|
||||
RENDERER=Mesa DRI Intel(R) Ivybridge Mobile
|
||||
EXTENSIONS=GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_envmap_bumpmap GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_AMD_performance_monitor GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_conservative_depth GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shader_atomic_counters GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_ARB_transform_feedback_instanced GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_clear_buffer_object GL_ARB_invalidate_subdata GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_texture_view GL_ARB_vertex_attrib_binding GL_KHR_debug GL_ARB_buffer_storage GL_ARB_multi_bind GL_ARB_texture_mirror_clamp_to_edge GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_INTEL_performance_query
|
||||
55
pkgs/development/perl-modules/perl-opengl.patch
Normal file
55
pkgs/development/perl-modules/perl-opengl.patch
Normal file
@@ -0,0 +1,55 @@
|
||||
diff --git a/Makefile.PL b/Makefile.PL
|
||||
index 55c485c..8501c02 100644
|
||||
--- a/Makefile.PL
|
||||
+++ b/Makefile.PL
|
||||
@@ -116,12 +116,7 @@ if ($^O eq 'MSWin32' || $IS_W32API)
|
||||
# Look for available libs
|
||||
our @libdirs = qw
|
||||
{
|
||||
- -L/usr/lib
|
||||
- -L/usr/X11R6/lib
|
||||
- -L/usr/local/lib
|
||||
- -L/usr/openwin/lib
|
||||
- -L/opt/csw/lib
|
||||
- -L/usr/local/freeglut/lib
|
||||
+ @@libpaths@@
|
||||
};
|
||||
|
||||
our @check_libs = qw
|
||||
@@ -764,7 +759,6 @@ sub get_extensions
|
||||
my $exc_file = 'gl_exclude.h';
|
||||
unlink($exc_file) if (-e $exc_file);
|
||||
my $glv_file = 'utils/glversion.txt';
|
||||
- unlink($glv_file) if (-e $glv_file);
|
||||
|
||||
# Only run the rest if GLUT is installed
|
||||
print "Testing GLUT version\n" if ($verbose);
|
||||
@@ -817,7 +811,7 @@ sub get_extensions
|
||||
$make_ver = ";make -f Makefile " . (length($lib) ? "GLUT_LIB=$lib " : "") . (length($def) ? "GLUT_DEF=$def " : "");
|
||||
print "glversion: '$make_ver'\n" if $verbose>1;
|
||||
}
|
||||
- my $exec = 'cd utils'."$make_ver clean".$make_ver;
|
||||
+ my $exec = 'cd utils'.$make_ver;
|
||||
print "glversion: $exec\n" if ($verbose);
|
||||
my $stat = `$exec`;
|
||||
print "\n$stat\n\n" if ($verbose);
|
||||
diff --git a/utils/Makefile b/utils/Makefile
|
||||
index 910dcaf..1b1ac57 100644
|
||||
--- a/utils/Makefile
|
||||
+++ b/utils/Makefile
|
||||
@@ -21,14 +21,13 @@ EXTRALIBS=-lGLU -lXi -lXmu -lXext -lX11 -lm
|
||||
all: glversion.txt
|
||||
|
||||
glversion.txt: glversion
|
||||
- ./glversion > glversion.txt
|
||||
+ echo "skipping build of glversion.txt"
|
||||
|
||||
glversion: glversion.o
|
||||
${LINK} glversion.o ${LDFLAGS} ${EXTRALIBS} -o glversion
|
||||
chmod u+x glversion
|
||||
|
||||
clean:
|
||||
- rm -f glversion.txt
|
||||
rm -f glversion
|
||||
rm -f glversion.o
|
||||
|
||||
Reference in New Issue
Block a user