-
Notifications
You must be signed in to change notification settings - Fork 1k
Error for missing README #42
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
Conversation
Should not this rule produce README, instead of README.tmp? Otherwise, I receive the following error: `cat README.md > README.tmp /usr/bin/mkdir -p '/usr/src/tmp/package-snappy/usr/doc/snappy-1.1.5' /usr/bin/ginstall -c -m 644 ChangeLog COPYING INSTALL NEWS ./README format_description.txt framing_format.txt '/usr/src/tmp/package-snappy/usr/doc/snappy-1.1.5' /usr/bin/ginstall: cannot stat './README': No such file or directory Makefile:767: recipe for target 'install-dist_docDATA' failed make[1]: *** [install-dist_docDATA] Error 1 make[1]: Leaving directory '/usr/src/tmp/snappy-1.1.5' Makefile:1230: recipe for target 'install-am' failed make: *** [install-am] Error 2`
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
I signed it! |
|
CLAs look good, thanks! |
|
The problem with Autotools in 1.1.5 is also that SO version is 0.4.1 (i.e. |
|
|
||
| # Needed by autoconf because we use README.md instead of README. | ||
| # See http://stackoverflow.com/q/15013672/ | ||
| README: README.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this rule be removed and the README in dist_doc_DATA be renamed README.md?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autoconf and Linux distributions require just README (without .md, .txt or other extension).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. autogen.sh would also need to be updated to pass --foreign to automake to stop it from complaining about the names.
These are very silly warnings anyway.
|
👍 Needed to add this to conda-forge/snappy-feedstock#11 to build snappy there. |
|
Thank you very much for the PR! We "fixed the glitch" by removing autoconf support. I hope CMake will be a less bumpy ride, once we settle on a configuration that works for everyone. |
|
Sure, but please, consider adding the option to set LIBDIR with CMake, because it's important. |
|
@gdsotirov Can you please create a PR or comment on the relevant PR? |
|
@pwnall I do not have a patch for LIBDIR support, because I'm not that familiar with CMake yet, so I've solved the problem by just renaming the directory after |
|
@gdsotirov I think we don't have Issues enabled because we're struggling to just keep up the pace with the PRs... at this rate, issues would just get ignored. Let's continue the discussion here for now -- I thought LIBDIR was discussed somewhere in the open PRs, but that doesn't seem to be the case. I'm still catching up on CMake, and I'm wary of adding unnecessary complexity to our CMakeLists. To this end, I'd be more interested in the reasoning behind a change, and the sources advocating for it. In this specific example, I'd like to know what problems are solved by exposing a LIBDIR variable, and why that's not advocated in CMake's packaging guide. Yesterday, the GNUInstallDirs was brought to my attention. It seems like it'd solve the LIBDIR problem, but I haven't had time to look into why it's not recommended in the packaging guide. |
|
@pwnall OK about issues. Exposing the possibility to set LIBDIR is important for distribution packages like me, because the library directory for a true 64 bit OS like Slackware64 is |
|
What do other CMake projects use to achieve this, do they use |
|
BTW I see Gentoo packages have already elaborated on such patch for Snappy 1.1.6 (see snappy-1.1.6-0001-cmake-Use-GNUInstallDirs-to-provide-configurable-cor.patch). And they also have the same patch as my PR #44 (see https://gitweb.gentoo.org/repo/gentoo.git/tree/app-arch/snappy/files/snappy-1.1.6-0003-cmake-Add-missing-linking-to-GTEST_LIBRARIES.patch). I still believe that both are necessary, but as I'm not that familiar with CMake, I haven't suggested a fix for LIBDIR problem and dealt with it by just renaming the directory after install. |
|
@Optiligence I cannot say, but for example for libproxy I use |
|
This is also being discussed in google/googletest#1141. I'm heavily inclined to adopt googletest's decision for fixing this problem. |
|
The missing |
|
Whatever gives me the possibility to set properly LIBDIR is OK for me and Gentoo packages have already implemented GNUInstallDirs, so +1 for GNUInstallDirs from me as well :-) |
|
@gdsotirov @Optiligence Can you please check |
|
@pwnall Sorry, for the delay. I just checked the freshly released Snappy 1.1.7 and I confirm it's OK with the new option CMAKE_INSTALL_LIBDIR. Thanks! |
|
@gdsotirov Thank you very much for the response! |
Should not this rule produce README, instead of README.tmp? Otherwise, I receive the following error: