-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fixes #38
Fixes #38
Conversation
Can you detail why this is needed / what systems would need it or benefit from. And let me now ask you a second time today to file issue tickets BEFORE throwing a PR over the fence. I have no motivation to apply this when I do not know what (perceived, real, at current for me irreproducible as not existing) problem this is meant to address. Sorry to be harsh -- I really appreciate your enthusiasm but you are not making this as easy as you might. |
I really thought that the reference to the RInside issue in the original comment would be sufficient, since the issues are exactly the same. But I can repeat the rationale here. When creating an RPM for R-littler, the RPM creation fails because the buildroot path was detected to be present in some of the files being packaged:
By filtering out the variables containing the buildroot path the RPM build succeeds. The linking should inherit all the compiler flags from the build of R itself. Looking at the build log it can be seen that some of the linker flags are missing. This pull request addresses this issue by adding the missing LDFLAGS. I haven't come across anyone making such a huge distinction between an "issue" and a "pull request" before. For me, an "issue" is a bug report without a proposed patch, and a "pull request" is a bug report with a proposed patch. So which one you submit is a question about whether you want to attach a patch or not. I consider it to be a good idea to attach a proposed patch to a bug report if you can. It it one of the better ways to explain just what the bug you are reporting really is about. As upstream you are of course fully free to reject any proposed patch as you see fit. Either if you consider to reported bug to not be a bug at all, or if you think there is a better way to address the issue. |
Thanks, I see now that you were kind enough to actually document an issue.
We care about code quality and documented behaviour and will not randomly apply patches. If you see something wrong, file an issue, we discuss a course of action and someone (maybe you) proposes a PR. See Contributing.md over at Rcpp, the same spirit applies here. |
@@ -1,4 +1,4 @@ | |||
ExcludeVars <- c("R_SESSION_TMPDIR","R_HISTFILE","R_LIBS_USER") | |||
ExcludeVars <- c("R_SESSION_TMPDIR","R_HISTFILE","R_LIBS_USER","R_LIBRARY_DIR","R_LIBS","R_PACKAGE_DIR") |
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 exclude these ? I don't even have them:
edd@max:~/git/littler/src(master)$ Rscript scripts/littler.R
const char *R_VARS[] = {
"R_ARCH","",
"R_BROWSER","xdg-open",
"R_BZIPCMD","/bin/bzip2",
"R_DEFAULT_PACKAGES","datasets,utils,grDevices,graphics,stats",
"R_DOC_DIR","/usr/share/R/doc",
"R_GZIPCMD","/bin/gzip -n",
"R_HOME","/usr/lib/R",
"R_INCLUDE_DIR","/usr/share/R/include",
"R_LIBS_SITE","/usr/local/lib/R/site-library:/usr/lib/R/site-library:/usr/lib/R/library",
"R_PAPERSIZE","letter",
"R_PAPERSIZE_USER","letter",
"R_PDFVIEWER","/usr/bin/xdg-open",
"R_PLATFORM","x86_64-pc-linux-gnu",
"R_PRINTCMD","/usr/bin/lpr",
"R_RD4PDF","times,inconsolata,hyper",
"R_SHARE_DIR","/usr/share/R/share",
"R_SYSTEM_ABI","linux,gcc,gxx,gfortran,?",
"R_TEXI2DVICMD","/usr/bin/texi2dvi",
"R_UNZIPCMD","/usr/bin/unzip",
"R_ZIPCMD","/usr/bin/zip",
NULL };
edd@max:~/git/littler/src(master)$
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.
When run from inside a package install there are more variables present then when run from the command line. Try this:
$ tar -z -x -f littler_0.3.0.tar.gz
$ mkdir /tmp/littler-test-install
$ R CMD INSTALL -l /tmp/littler-test-install littler
* installing *source* package ‘littler’ ...
[ ... skipping some lines of the output ... ]
* DONE (littler)
$ grep littler-test-install littler/src/littler.h
"R_LIBRARY_DIR","/tmp/littler-test-install",
"R_LIBS","/tmp/littler-test-install",
"R_PACKAGE_DIR","/tmp/littler-test-install/littler",
Ok, I can confirm that the But I am afraid that if you excluded those directories, then littler may not find your libraries meaning I'd would really like to exclude this part. Adding Can you revert this second commit? |
It is not annoyance. Without filtering those out rpmbuild refuses to create the RPM. It detects the presence of the build directory in the files being packaged as a packaging error and refuses to create the rpms. |
Ok. What remains them is to demonstrate that removing these does not impair functionality. |
So I mod'ed by local Please try to motivate your changes better, and please do file issue tickets before PRs. It makes reasoning about PRs a lot easier. |
Ok, it behaved. I will fold this in now. |
Similar to eddelbuettel/rinside#21