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