nginx: fix patch using pkg-config
authorIgnacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Tue, 19 Dec 2017 10:10:24 +0000 (11:10 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 29 Dec 2017 22:32:31 +0000 (23:32 +0100)
commit1c110d79560213b9245696059eafcc43f13ae147
tree3f83610c4ef7d0d99009adf5d239cde0587a6257
parente416d5d9f4e5f6717db83926ec05a5ea0bada077
nginx: fix patch using pkg-config

The regular expression that drops the -I flag from the output of
pkg-config --cflags-only-I doesn't work properly as it is too naive:
it breaks a path if it contains -I:

$ echo "-I/usr/Some-Install-Location/include" | sed 's/-I//g'
/usr/Somenstall-Location/include
$ echo "-I/usr/Some-Install-Location/include" | sed -re 's/(^|\s)-I\s*(\S+)/\1\2/g'
/usr/Some-Install-Location/include

Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
[Thomas: improved commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nginx/0004-auto-lib-libxslt-conf-use-pkg-config.patch
package/nginx/0006-auto-lib-openssl-conf-use-pkg-config.patch