Hello community, here is the log from the commit of package rubygem-sassc for openSUSE:Factory checked in at 2020-01-14 21:08:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-sassc (Old) and /work/SRC/openSUSE:Factory/.rubygem-sassc.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sassc" Tue Jan 14 21:08:40 2020 rev:6 rq:764206 version:2.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-sassc/rubygem-sassc.changes 2019-11-13 13:25:59.623551814 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-sassc.new.6675/rubygem-sassc.changes 2020-01-14 21:12:23.798904884 +0100 @@ -1,0 +2,6 @@ +Sat Jan 11 08:28:10 UTC 2020 - Bernhard Wiedemann <[email protected]> + +- Add reproducible.patch to sort file list (boo#1041090) +- Compile with --extconf-opts=--disable-march-tune-native (boo#1100677) + +------------------------------------------------------------------- New: ---- reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-sassc.spec ++++++ --- /var/tmp/diff_new_pack.35lk43/_old 2020-01-14 21:12:25.058905468 +0100 +++ /var/tmp/diff_new_pack.35lk43/_new 2020-01-14 21:12:25.062905469 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-sassc # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,6 +39,9 @@ Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rpmlintrc Source2: gem2rpm.yml +# MANUAL +Patch0: reproducible.patch +# /MANUAL Summary: Use libsass with Ruby! License: MIT Group: Development/Languages/Ruby @@ -47,14 +50,23 @@ Use libsass with Ruby!. %prep +%gem_unpack +%patch0 -p1 +find -type f -print0 | xargs -0 touch -r %{S:0} +%gem_build %build %install %gem_install \ + --extconf-opts=--disable-march-tune-native \ --doc-files="CHANGELOG.md LICENSE.txt README.md" \ -f %gem_cleanup +# MANUAL +find %{buildroot}%{_libdir} -name sassc-2.\*.info -delete +# /MANUAL + %gem_packages ++++++ gem2rpm.yml ++++++ --- /var/tmp/diff_new_pack.35lk43/_old 2020-01-14 21:12:25.086905480 +0100 +++ /var/tmp/diff_new_pack.35lk43/_new 2020-01-14 21:12:25.086905480 +0100 @@ -19,24 +19,25 @@ # BuildRequires: foobar # Requires: foobar :preamble: |- - BuildRequires: gcc-c++ + BuildRequires: gcc-c++ # ## used by gem2rpm -# :patches: -# foo.patch: -p1 +:patches: + reproducible.patch: -p1 # bar.patch: # :post_patch: # if you need to fiddle with the source dir before rebuilding the gem # ## used by gem2rpm :sources: - rpmlintrc -# :gem_install_args: '....' +:gem_install_args: ' --extconf-opts=--disable-march-tune-native' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm -# :post_install: |- +:post_install: |- + find %{buildroot}%{_libdir} -name sassc-2.\*.info -delete # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm ++++++ reproducible.patch ++++++ https://github.com/sass/sassc-ruby/pull/178 commit 0458396c8494aff3d71aa75cb401b2ad6fe78c1e Author: Bernhard M. Wiedemann <[email protected]> Date: Thu Jan 9 21:12:33 2020 +0100 Sort input file list so that libsass.so builds in a reproducible way in spite of indeterministic filesystem readdir order. See https://reproducible-builds.org/ for why this is good. This PR was done while working on reproducible builds for openSUSE. diff --git a/ext/extconf.rb b/ext/extconf.rb index 08e067c..5e36d97 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -56,7 +56,7 @@ $INCFLAGS << " -I$(srcdir)/libsass/include" $VPATH << "$(srcdir)/libsass/src" Dir.chdir(__dir__) do $VPATH += Dir['libsass/src/*/'].map { |p| "$(srcdir)/#{p}" } - $srcs = Dir['libsass/src/**/*.{c,cpp}'] + $srcs = Dir['libsass/src/**/*.{c,cpp}'].sort end MakeMakefile::LINK_SO << "\nstrip -x $@"
