gentoo-karlay

My Gentoo ebuild overlay
Log | Files | Refs

gtk+-2.24.24-out-of-source.patch (1487B)


      1 From 9e0f33144aff8d792ab105927cf686eda0afd25e Mon Sep 17 00:00:00 2001
      2 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
      3 Date: Sun, 18 May 2014 10:50:05 +0200
      4 Subject: [PATCH] aliasfilecheck: check for sources both in builddir & srcdir.
      5 
      6 The $gtk_all_c_sources variable contains both supplied and generated
      7 sources. The former reside in $srcdir, the latter in the build directory
      8 (cwd).
      9 
     10 In order to handle both kinds properly, first try to find each source
     11 file in cwd, and then fallback to $srcdir. This makes it possible to use
     12 out-of-source builds, and guarantees that fresh-built source files will
     13 be used rather than pre-generated copies included in the distribution
     14 tarball.
     15 ---
     16  gtk/aliasfilescheck.sh | 2 +-
     17  1 file changed, 1 insertion(+), 1 deletion(-)
     18 
     19 diff --git a/gtk/aliasfilescheck.sh b/gtk/aliasfilescheck.sh
     20 index 31b49d4..3636a82 100755
     21 --- a/gtk/aliasfilescheck.sh
     22 +++ b/gtk/aliasfilescheck.sh
     23 @@ -6,6 +6,6 @@ if test "x$gtk_all_c_sources" = x; then
     24  fi
     25  
     26  grep 'IN_FILE' ${srcdir-.}/gtk.symbols | sed 's/.*(//;s/).*//' | grep __ | sort -u > expected-files
     27 -{ cd ${srcdir-.}; grep '^ *# *define __' $gtk_all_c_sources; } | sed 's/.*define //;s/ *$//' | sort > actual-files
     28 +{ for f in $gtk_all_c_sources; do if test -f ${f}; then grep '^ *# *define __' ${f}; else grep '^ *# *define __' "${srcdir-.}"/${f}; fi; done } | sed 's/.*define //;s/ *$//' | sort > actual-files
     29  
     30  diff expected-files actual-files && rm -f expected-files actual-files
     31 -- 
     32 1.9.3
     33