Skip to contentSkip to conversation

libuser: Use abs_srcdir instead of srcdir

PATCH New Khem Raj 1 participant 1 message Mar 23, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libuser: Use abs_srcdir instead of srcdir

srcdir is still relative to pwd. We need to use
abs_srcdir to get absolute source directory names

---
 .../libuser/libuser/fixsepbuild.patch              |   27 +++++++++++++-------
 1 file changed, 18 insertions(+), 9 deletions(-)
meta/recipes-extended/libuser/libuser/fixsepbuild.patch +18 -9
index 27e6bc6..893ca14 100644
@@ -6,21 +6,30 @@ Upstream-Status: Pending
 
 RP 2013/03/21
 
-Index: libuser/docs/Makefile.am
+Index: libuser-0.58/docs/Makefile.am
 ===================================================================
---- libuser/docs.orig/Makefile.am	2012-11-08 02:25:58.000000000 +0000
-+++ libuser/docs/Makefile.am	2013-03-21 14:15:40.756950231 +0000
-@@ -13,9 +13,9 @@
- 		< $(srcdir)/libuser.conf.5.in > $@
+--- libuser-0.58.orig/docs/Makefile.am	2012-11-07 18:25:58.000000000 -0800
++++ libuser-0.58/docs/Makefile.am	2013-03-22 23:32:06.843518069 -0700
+@@ -8,14 +8,14 @@
  
- sgml/libuser.txt: $(srcdir)/sgml/libuser.sgml
+ all: sgml/libuser.txt sgml/libuser.html
+ 
+-libuser.conf.5: $(srcdir)/libuser.conf.5.in Makefile
++libuser.conf.5: $(abs_srcdir)/libuser.conf.5.in Makefile
+ 	sed 's,@sysconfdir\@,$(sysconfdir),g' \
+-		< $(srcdir)/libuser.conf.5.in > $@
++		< $(abs_srcdir)/libuser.conf.5.in > $@
+ 
+-sgml/libuser.txt: $(srcdir)/sgml/libuser.sgml
 -	[ -d sgml ] || mkdir sgml
 -	cd sgml; sgml2txt ../$(srcdir)/sgml/libuser.sgml
++sgml/libuser.txt: $(abs_srcdir)/sgml/libuser.sgml
 +	[ -d sgml ] || mkdir sgml || true
-+	cd sgml; sgml2txt $(srcdir)/sgml/libuser.sgml
++	cd sgml; sgml2txt $(abs_srcdir)/sgml/libuser.sgml
  
- sgml/libuser.html: $(srcdir)/sgml/libuser.sgml
+-sgml/libuser.html: $(srcdir)/sgml/libuser.sgml
 -	[ -d sgml ] || mkdir sgml
 -	cd sgml; sgml2html ../$(srcdir)/sgml/libuser.sgml
++sgml/libuser.html: $(abs_srcdir)/sgml/libuser.sgml
 +	[ -d sgml ] || mkdir sgml || true
-+	cd sgml; sgml2html $(srcdir)/sgml/libuser.sgml
++	cd sgml; sgml2html $(abs_srcdir)/sgml/libuser.sgml
Signature · 1 line
1.7.9.5