Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./make/prefix.patch breaks SVR4 compatibility #11

Open
ryao opened this issue Jun 10, 2013 · 0 comments
Open

./make/prefix.patch breaks SVR4 compatibility #11

ryao opened this issue Jun 10, 2013 · 0 comments

Comments

@ryao
Copy link

ryao commented Jun 10, 2013

Please excuse the lack of a pull request, but I am having too much fun hacking at the moment. Anyway, restoring compatibility is simple:

diff --git a/usr/src/make_src/Make/lib/makestate/src/Variant.mk b/usr/src/make_src/Make/lib/makestate/src/Variant.mk
index a961615..d906559 100644
--- a/usr/src/make_src/Make/lib/makestate/src/Variant.mk
+++ b/usr/src/make_src/Make/lib/makestate/src/Variant.mk
@@ -71,9 +66,9 @@ install: all
        ${INSTALL} -d ${DESTDIR}/${PREFIX}/lib/$(VAR_DIR)
        ${RM} ${DESTDIR}/${PREFIX}/lib$(VAR_DIR)/$(DLIBNAME)
        ${INSTALL} $(DLIBNAME) ${DESTDIR}/${PREFIX}/lib$(VAR_DIR)
-       if [[ -n "$(VAR_DIR)" && ! -h "${DESTDIR}/${PREFIX}/lib/64"  ]]; then \
+       if [ -n "$(VAR_DIR)" -a ! -h "${DESTDIR}/${PREFIX}/lib/64" ]; then \
            cd ${DESTDIR}/${PREFIX}/lib; \
-           ln -s $$(basename $(VAR_DIR)) 64; \
+           ln -s `basename $(VAR_DIR)` 64; \
        else \
                /bin/true; \
        fi

By the way, how did this regression get past your testing?

plitc added a commit to plitc/illumos-extra that referenced this issue Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant