Mailinglist Archive: opensuse-packaging (67 mails)
| < Previous | Next > |
[opensuse-packaging] "cd" commands for generating Makefiles render them invalid
- From: Hans-Peter Jansen <hpj@xxxxxxxxx>
- Date: Fri, 14 Dec 2007 10:28:49 +0100
- Message-id: <200712141028.50040.hpj@xxxxxxxxx>
Hi,
from time to time, some of my rpmbuilds bail out during "make" run, which
boil down to Makefiles created on the fly with commands containing "cd",
because that echos the new path into the generated Makefile, rendering it
invalid.
E.g.: (excerpt from hylafax/man/Makefile.in)
cman.apps/Makefile: ${DEPTH}/defs cman.apps ${MANCAPP}
${RM} -f cman.apps/Makefile
(${ECHO} '#!smake'; \
${ECHO} 'DEPTH=../..'; \
${ECHO} '@MAKEINCLUDE@ @MAKELQUOTE@$${DEPTH}/defs@MAKERQUOTE@';\
${ECHO} 'install:'; \
(cd cman.apps; for i in *.1; do \
f=${MANCAPPNAME}; \
${ECHO} ' $${INSTALL} -m 444 -root $${INSTALLROOT} -F
$${MAN}/$${MANAPPS} \
-idb $${PRODUCT}.man.client -src' "$$i" '-O' "$$f"; \
done); \
${ECHO}; \
${ECHO} 'uninstall:'; \
(cd cman.apps; for i in *.1; do \
f=${MANCAPPNAME}; \
${ECHO} ' $${RM} -f $${MAN}/$${MANAPPS}/'"$$f"; \
done) \
)>cman.apps/Makefile
Since similar sequences can be found in the other packages as well.
I wonder, why I suffer from this occasionally, but most of you seemingly
not. Before I start digging into the bash source, I thought, I try to
get some expert advice.
Does that issue rings a bell for anybody?
TIA,
Pete
[openSUSE 10.2, bash environment tweaked, but it's still bash]
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
from time to time, some of my rpmbuilds bail out during "make" run, which
boil down to Makefiles created on the fly with commands containing "cd",
because that echos the new path into the generated Makefile, rendering it
invalid.
E.g.: (excerpt from hylafax/man/Makefile.in)
cman.apps/Makefile: ${DEPTH}/defs cman.apps ${MANCAPP}
${RM} -f cman.apps/Makefile
(${ECHO} '#!smake'; \
${ECHO} 'DEPTH=../..'; \
${ECHO} '@MAKEINCLUDE@ @MAKELQUOTE@$${DEPTH}/defs@MAKERQUOTE@';\
${ECHO} 'install:'; \
(cd cman.apps; for i in *.1; do \
f=${MANCAPPNAME}; \
${ECHO} ' $${INSTALL} -m 444 -root $${INSTALLROOT} -F
$${MAN}/$${MANAPPS} \
-idb $${PRODUCT}.man.client -src' "$$i" '-O' "$$f"; \
done); \
${ECHO}; \
${ECHO} 'uninstall:'; \
(cd cman.apps; for i in *.1; do \
f=${MANCAPPNAME}; \
${ECHO} ' $${RM} -f $${MAN}/$${MANAPPS}/'"$$f"; \
done) \
)>cman.apps/Makefile
Since similar sequences can be found in the other packages as well.
I wonder, why I suffer from this occasionally, but most of you seemingly
not. Before I start digging into the bash source, I thought, I try to
get some expert advice.
Does that issue rings a bell for anybody?
TIA,
Pete
[openSUSE 10.2, bash environment tweaked, but it's still bash]
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |