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

Fixes #21

Merged
merged 2 commits into from Feb 8, 2016
Merged

Fixes #21

merged 2 commits into from Feb 8, 2016

Conversation

@ellert
Copy link
Contributor

@ellert ellert commented Feb 7, 2016

No description provided.

@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Feb 7, 2016

Thanks for the pull request.

Can we have a bit of a motivating discussion about why/where you think you need them?

@ellert
Copy link
Contributor Author

@ellert ellert commented Feb 8, 2016

I was trying to package R-RInside as an RPM for Fedora. The RPM creation failed because the buildroot path was detected to be present in some of the files being packaged:

+ /usr/lib/rpm/check-buildroot
/home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/src/debug/R-RInside-0.2.13/RInside/src/RInsideEnvVars.h:        "R_LIBRARY_DIR","/home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/lib64/R/library",
/home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/src/debug/R-RInside-0.2.13/RInside/src/RInsideEnvVars.h:        "R_LIBS","/home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/lib64/R/library",
/home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/src/debug/R-RInside-0.2.13/RInside/src/RInsideEnvVars.h:        "R_PACKAGE_DIR","/home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/lib64/R/library/RInside",
Binary file /home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/lib64/libRInside.so matches
Binary file /home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64/usr/lib64/R/library/RInside/libs/RInside.so matches
Found '/home/ellert/rpmbuild/BUILDROOT/R-RInside-0.2.13-1.fc23.x86_64' in installed files; aborting

By filtering out the variables containing the buildroot path the RPM build succeeds.

The missing LDFLAGS is just missing - some of the expected linker flags are not used.

@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Feb 8, 2016

Ok, thanks for the feedback.

I looked first at LDFLAGS which I had thought was going into ALL_LIBS but doesn't so this looks legit -- but we seemingly never needed it over in .deb land.

As for the other ones I was hesitating because that part has not changed in forever but I'll have enough local tests there to see if run-time behaviour were to be be affected. If so I'll report back.

eddelbuettel added a commit that referenced this pull request Feb 8, 2016
Fixes
@eddelbuettel eddelbuettel merged commit c511181 into eddelbuettel:master Feb 8, 2016
@eddelbuettel
Copy link
Owner

@eddelbuettel eddelbuettel commented Feb 8, 2016

All good. The wt/ examples needs another update too (now need to link to with -lboost_system too).

I'll add you to the ChangeLog file with your GH email, ok?

Thanks again for the PR -- appreciate it.

@ellert ellert deleted the ellert:fixes branch Feb 20, 2016
@ellert ellert mentioned this pull request Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.