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

Enforce custom rpmbuild build dir #1

Open
schrnz opened this issue Jun 22, 2018 · 0 comments
Open

Enforce custom rpmbuild build dir #1

schrnz opened this issue Jun 22, 2018 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@schrnz
Copy link
Member

schrnz commented Jun 22, 2018

The following error is generated for
make rpm

$ make rpm
mkdir -p rpmbuild/SOURCES/artist-sdk-0.0.1
cd src && cp -r include toolchain makefiles LICENSE Makefile ../rpmbuild/SOURCES/artist-sdk-0.0.1/
cd rpmbuild/SOURCES && tar -zcf artist-sdk-0.0.1.tar.gz artist-sdk-0.0.1 && rm -r artist-sdk-0.0.1
rpmbuild -bb rpmbuild/SPECS/artist-sdk.spec
error: File /home/<username>/rpmbuild/SOURCES/artist-sdk-0.0.1.tar.gz: No such file or directory

It seems rpmbuild is by default assuming that the rpmbuild working dir is the home folder. In theory it should be possible to change this locally (blog entry), but the proposed fix did not work when I tried it.

Symlinking ~/rmpbuild to point to module-sdk-gen/rpmbuild is a workaround that works for now, so the issue is low priority, but it would still be nice to have this solved in the Makescript itself.

@schrnz schrnz added bug Something isn't working good first issue Good for newcomers labels Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant