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

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