Blame SOURCES/downstream-fix-debuginfo-with-y.tab.c.patch

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