Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

Fix bashism in Makefile#30

Closed
micah wants to merge 2 commits intoapache:masterfrom
micah:patch-2
Closed

Fix bashism in Makefile#30
micah wants to merge 2 commits intoapache:masterfrom
micah:patch-2

Conversation

@micah
Copy link
Contributor

@micah micah commented Sep 1, 2015

The [[ operator is a bashism, and fails with POSIX shells (such as dash), replace it with a simplier version that does the same thing, without the unnecessary $(shell) nesting.

The [[ operator is a bashism, and fails with POSIX shells (such as dash), replace it with a simplier version that does the same thing, without the unnecessary $(shell) nesting.
@rnewson
Copy link
Member

rnewson commented Sep 1, 2015

not sure why you didn't edit the original PR but note for future that we prefer it if comments are addressed in the same place.

@rnewson
Copy link
Member

rnewson commented Sep 1, 2015

+1 from me (@kxepal, thoughts?)

@kxepal
Copy link
Member

kxepal commented Sep 1, 2015

This version doesn't works for me (bash):

$ make html
which: no sphinx-build in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4:/usr/games/bin)
which: no null in (/dev)
*** Make sure that sphinx-build is  installed and on your path
Makefile:63: recipe for target 'sphinx-build' failed
make: *** [sphinx-build] Error 1

If I have sphinx-build installed:

 $ make html
/usr/local/opt/virtualenv/couchdb/bin/sphinx-build
which: no null in (/dev)
*** Make sure that sphinx-build is  installed and on your path
Makefile:63: recipe for target 'sphinx-build' failed
make: *** [sphinx-build] Error 1

Makefile Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, missed stdout redirection glyph is missed here.

@micah
Copy link
Contributor Author

micah commented Sep 2, 2015

not sure why you didn't edit the original PR but note for future that we prefer it if comments are addressed in the same place

I'm not sure why I couldn't, I tried to use github's web interface to do it, but I'm a bit of a neanderthal when it comes to doing that. I also couldn't figure out how to quote you, so I just copy and pasted it.

@kxepal
Copy link
Member

kxepal commented Sep 2, 2015

@micah thanks! please squash your commits.

@benkeen
Copy link
Member

benkeen commented Sep 14, 2015

Could this be causing a couchdb installation failure?

  • Fresh clone of couchdb
  • run ./configure
  • run make. Result:
*** Make sure that sphinx-build is installed and on your path
make[1]: *** [sphinx-build] Error 1
make: *** [src/docs/build] Error

Same error for the next sudo make install step. Running ./dev/run seems to work fine, but Fauxton won't load up at all - all requests to the server just timeout.

@kxepal
Copy link
Member

kxepal commented Sep 14, 2015

@micah ping

@kxepal
Copy link
Member

kxepal commented Sep 14, 2015

@benkeen that's lack of python sphinx: you don't have it installed, so build fails on docs. However, they shouldn't and cannot block Fauxton as they builds the last and even broken docs are not a problem for Fauxton.

@benkeen
Copy link
Member

benkeen commented Sep 14, 2015

I see, thanks @kxepal.

@micah
Copy link
Contributor Author

micah commented Sep 15, 2015

I can't squash my commits, because I used the github web editor to make them. That was an experiment I wont repeat.

I made a new pull request, using the normal and proper way, so I'll close this one and you can use that one instead: #34

@micah micah closed this Sep 15, 2015
@kxepal
Copy link
Member

kxepal commented Sep 15, 2015

@micah Actually, you can control this PR via patch-2 branch which is located in your fork. Any modifications there will be reflected here.

@kxepal
Copy link
Member

kxepal commented Sep 15, 2015

Github webeditor is just shortcut for: fork, create patch-N branch, commit and create PR - and all in your browser.

@micah
Copy link
Contributor Author

micah commented Sep 15, 2015

@kxepal The thing is, I didn't have a fork at all... I went and forked it to make this last pull request, and there was no patch-2 branch there either. 🍤

@kxepal
Copy link
Member

kxepal commented Sep 15, 2015

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants