]> git.pld-linux.org Git - packages/ruby-pkg-config.git/commitdiff
- updated cycle avoidaince patch auto/th/ruby-pkg-config-1.2.8-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 9 Nov 2017 08:28:05 +0000 (09:28 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 9 Nov 2017 08:28:05 +0000 (09:28 +0100)
- rel 2

ruby-pkg-config-avoid-cycle.patch
ruby-pkg-config.spec

index 7c178570dffd5fa7ca56e3944c7bf5745bbc814a..00ad97aac9ad558cf9d49e6a9a3dc991cb550fab 100644 (file)
      @paths = [path, guess_default_path].compact.join(SEPARATOR).split(SEPARATOR)
      @paths.unshift(*(@options[:paths] || []))
 @@ -193,7 +194,9 @@
-   private
-   def collect_cflags
-     all_cflags = all_required_packages.collect do |package|
+       self.class.new(package, @options).cflags
+     end
+     cflags_set += private_required_packages.collect do |package|
 -      self.class.new(package, @options).cflags
 +      if !@seen.include?(package)
 +        self.class.new(package, @options, @seen + [package]).cflags
 +      end
      end
-     all_cflags = [declaration("Cflags")] + all_cflags
-     all_cflags = all_cflags.join(" ").gsub(/-I /, '-I').split.uniq
+     all_cflags = normalize_cflags(Shellwords.split(cflags_set.join(" ")))
+     path_flags, other_flags = all_cflags.partition {|flag| /\A-I/ =~ flag}
 @@ -211,7 +214,9 @@
  
    def collect_libs
index f81f600f167a183ede9efb773598f5e3de7f7e37..af009a32fe44b97ba7bd58a93dcd83feb2857700 100644 (file)
@@ -7,7 +7,7 @@ Summary:        pkg-config module for Ruby
 Summary(pl.UTF-8):     Moduł pkg-config dla języka Ruby
 Name:          ruby-%{pkgname}
 Version:       1.2.8
-Release:       1
+Release:       2
 License:       LGPL v2.1+
 Group:         Development/Languages
 Source0:       https://rubygems.org/downloads/%{pkgname}-%{version}.gem
@@ -34,7 +34,7 @@ Moduł pkg-config dla języka Ruby.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
-#%patch0 -p1 OUTDATED? UPSTREAMED?
+%patch0 -p1
 
 %build
 # write .gemspec
This page took 0.093801 seconds and 4 git commands to generate.