56cee50
From c7fe7cbd61f7debf052ddcc6cc5f01bb7e4f5385 Mon Sep 17 00:00:00 2001
14f0285
From: Robbie Harwood <rharwood@redhat.com>
14f0285
Date: Tue, 23 Aug 2016 16:49:25 -0400
8fb4697
Subject: [PATCH] [downstream] fix debuginfo with y.tab.c
14f0285
a89bdde
We want to keep these y.tab.c files around because the debuginfo points to
a89bdde
them.  It would be more elegant at the end to use symbolic links, but that
a89bdde
could mess up people working in the tree on other things.
8fb4697
8fb4697
Last-updated: krb5-1.9
14f0285
---
14f0285
 src/kadmin/cli/Makefile.in                 | 5 +++++
14f0285
 src/plugins/kdb/ldap/ldap_util/Makefile.in | 2 +-
14f0285
 2 files changed, 6 insertions(+), 1 deletion(-)
a89bdde
14f0285
diff --git a/src/kadmin/cli/Makefile.in b/src/kadmin/cli/Makefile.in
56cee50
index adfea6e2b5..d1327e400b 100644
14f0285
--- a/src/kadmin/cli/Makefile.in
14f0285
+++ b/src/kadmin/cli/Makefile.in
14f0285
@@ -37,3 +37,8 @@ clean-unix::
a89bdde
 # CC_LINK is not meant for compilation and this use may break in the future.
a89bdde
 datetest: getdate.c
a89bdde
 	$(CC_LINK) $(ALL_CFLAGS) -DTEST -o datetest getdate.c
a89bdde
+
a89bdde
+%.c: %.y
a89bdde
+	$(RM) y.tab.c $@
a89bdde
+	$(YACC.y) $< 
a89bdde
+	$(CP) y.tab.c $@
14f0285
diff --git a/src/plugins/kdb/ldap/ldap_util/Makefile.in b/src/plugins/kdb/ldap/ldap_util/Makefile.in
56cee50
index 8669c2436c..a22f23c02c 100644
14f0285
--- a/src/plugins/kdb/ldap/ldap_util/Makefile.in
14f0285
+++ b/src/plugins/kdb/ldap/ldap_util/Makefile.in
14f0285
@@ -20,7 +20,7 @@ $(PROG): $(OBJS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIB) $(GETDATE)
a89bdde
 getdate.c: $(GETDATE)
a89bdde
 	$(RM) getdate.c y.tab.c
a89bdde
 	$(YACC) $(GETDATE)
a89bdde
-	$(MV) y.tab.c getdate.c
a89bdde
+	$(CP) y.tab.c getdate.c
a89bdde
 
821dac4
 install:
a89bdde
 	$(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(ADMIN_BINDIR)/$(PROG)
56cee50
-- 
56cee50
2.38.1
56cee50