Группа :: Разработка/ML
Пакет: mosml
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mosml-alt-header.patch
Скачать
Скачать
# п÷я─п╦ пЁп╣п╫п╣я─п╟я├п╦п╦ п╡я▀п©п╬п╩п╫я▐п╣п╪я▀я┘ я└п╟п╧п╩п╬п╡ (п╠п╟п╧я┌п╨п╬п╢), mosml п╥п╟п©п╦я│я▀п╡п╟п╣я┌ я─п╟я│п©п╬п╩п╬п╤п╣п╫п╦п╣
# п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─п╟ я│п╬ я│я┌п╟п╢п╦п╦ install, п╟ п╫я┐п╤п╫п╬ я│п╬ я│я┌п╟п╢п╦п╦ build, я┌.п╨. п╫п╟ я│я┌п╟п╢п╦п╦
# build prefix=/usr, п╫п╟ я│я┌п╟п╢п╦п╦ install - %buildroot/usr.
#
# п·я┌п©я─п╟п╡п╦я┌я▄ patch п╡ upstream.
#
diff -ur mosml-2.10.1.orig/src/launch/Makefile mosml-2.10.1/src/launch/Makefile
--- mosml-2.10.1.orig/src/launch/Makefile 2016-09-03 10:42:41.000000000 -0500
+++ mosml-2.10.1/src/launch/Makefile 2016-09-03 11:16:46.181458986 -0500
@@ -3,12 +3,13 @@
include ../Makefile.inc
-all: mosml mosmlc mosmllex camlexec testprog
-
-# header cannot be generated until camlrunm is installed in $(BINDIR)...
+all: header mosml mosmlc mosmllex camlexec testprog
install:
- echo "#!$(BINDIR)/camlrunm" > $(DESTDIR)$(LIBDIR)/header;
+ # header cannot be generated until camlrunm is installed in $(BINDIR)...
+ # but we have to pregenerate it with directories of BUILD phase, since
+ # while packaging (RPM) "make install" runs with fake-root.
+ cp header $(DESTDIR)$(LIBDIR)/header;
for script in mosml mosmlc mosmllex; do \
${INSTALL_SCRIPT} $$script $(DESTDIR)$(BINDIR)/$$script; \
chmod a+x $(DESTDIR)$(BINDIR)/$$script; \
@@ -30,6 +31,8 @@
chmod a+x $(BINDIR)/$$script; \
done
+header:
+ echo "#!$(BINDIR)/camlrunm" > header
mosml: mosml.tpl
sed -e "s|LIBDIR|$(LIBDIR)|" -e "s|BINDIR|$(BINDIR)|" mosml.tpl > mosml