forked from pool/perl-Alien-wxWidgets
Accepting request 442166 from devel:languages:perl
1 OBS-URL: https://build.opensuse.org/request/show/442166 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Alien-wxWidgets?expand=0&rev=5
This commit is contained in:
commit
b4447ab846
@ -7,6 +7,7 @@
|
||||
patches:
|
||||
perl-Alien-wxWidgets-do_not_build_wxgtk.patch:
|
||||
perl-Alien-wxWidgets-ignore_cbuilder_version.patch:
|
||||
perl-Alien-wxWidgets-dump_sorted_config.patch:
|
||||
|
||||
preamble: |-
|
||||
BuildRequires: gcc-c++
|
||||
|
22
perl-Alien-wxWidgets-dump_sorted_config.patch
Normal file
22
perl-Alien-wxWidgets-dump_sorted_config.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- lib/Alien/wxWidgets.pm.orig 2016-11-23 16:54:35.940061462 +0100
|
||||
+++ lib/Alien/wxWidgets.pm 2016-11-23 16:55:14.383929523 +0100
|
||||
@@ -132,6 +132,8 @@
|
||||
my @configs = $class->get_configurations( @_ );
|
||||
|
||||
require Data::Dumper;
|
||||
+ # sort output, to have same output as from My::Build::Base
|
||||
+ $Data::Dumper::Sortkeys = 1;
|
||||
print Data::Dumper->Dump( \@configs );
|
||||
}
|
||||
|
||||
--- inc/My/Build/Base.pm.orig 2016-11-24 14:43:52.306654279 +0100
|
||||
+++ inc/My/Build/Base.pm 2016-11-24 14:44:09.806598987 +0100
|
||||
@@ -218,6 +218,8 @@
|
||||
my %config = $self->_init_config;
|
||||
my $base = $self->awx_key;
|
||||
|
||||
+ # sort output for reproducible builds
|
||||
+ $Data::Dumper::Sortkeys = 1;
|
||||
my $body = Data::Dumper->Dump( [ \%config ] );
|
||||
$body =~ s/rEpLaCe/$base/g;
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 26 13:56:53 UTC 2016 - stefan.bruens@rwth-aachen.de
|
||||
|
||||
- Add perl-Alien-wxWidgets-dump_sorted_config.patch:
|
||||
sort config dictionaries to make builds deterministic
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 13 15:11:39 UTC 2016 - stefan.bruens@rwth-aachen.de
|
||||
|
||||
|
@ -28,6 +28,7 @@ Source0: http://www.cpan.org/authors/id/M/MD/MDOOTSON/%{cpan_name}-%{vers
|
||||
Source1: cpanspec.yml
|
||||
Patch0: perl-Alien-wxWidgets-do_not_build_wxgtk.patch
|
||||
Patch1: perl-Alien-wxWidgets-ignore_cbuilder_version.patch
|
||||
Patch2: perl-Alien-wxWidgets-dump_sorted_config.patch
|
||||
# MANUAL
|
||||
#BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@ -58,6 +59,7 @@ settings from an installed wxWidgets.
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2
|
||||
# MANUAL BEGIN
|
||||
# this copy of GNU patch is only used on win32, remove it for license clarity
|
||||
# see https://build.opensuse.org/request/show/237465
|
||||
|
Loading…
x
Reference in New Issue
Block a user