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

Cannot copy libjoy_lzma during gmake live #14

Open
nickziv opened this issue Mar 26, 2015 · 4 comments
Open

Cannot copy libjoy_lzma during gmake live #14

nickziv opened this issue Mar 26, 2015 · 4 comments

Comments

@nickziv
Copy link

nickziv commented Mar 26, 2015

After following these instructions on the wiki, for building smartos-live, gmake live fails when copying a file in from the illumos-extra repo to the proto area. Below is the output:

[...SNIP...]
gmake[2]: Entering directory `/home/nickziv/smartos-live/projects/illumos-extra/xz/xz-5.2.1-32/tests'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/home/nickziv/smartos-live/projects/illumos-extra/xz/xz-5.2.1-32/tests'
gmake[2]: Entering directory `/home/nickziv/smartos-live/projects/illumos-extra/xz/xz-5.2.1-32'
gmake[2]: Leaving directory `/home/nickziv/smartos-live/projects/illumos-extra/xz/xz-5.2.1-32'
gmake[1]: Leaving directory `/home/nickziv/smartos-live/projects/illumos-extra/xz/xz-5.2.1-32'
mkdir -p /home/nickziv/smartos-live/proto/usr/bin
mkdir -p /home/nickziv/smartos-live/proto/usr/lib
mkdir -p /home/nickziv/smartos-live/proto/usr/share/man/man1
/usr/bin/elfedit -e 'dyn:value -s SONAME libjoy_lzma.so.5' \
    /home/nickziv/smartos-live/projects/illumos-extra/xz/xz-5.2.1-32/src/liblzma/.libs/liblzma.so.5.2.1 \
    /home/nickziv/smartos-live/proto/usr/lib/libjoy_lzma.so.5.2.1
cp: cannot create /home/nickziv/smartos-live/proto/usr/lib/libjoy_lzma.so.5.2.1: Permission denied
gmake[2]: *** [install] Error 1
gmake[2]: Leaving directory `/home/nickziv/smartos-live/projects/illumos-extra/xz'
gmake[1]: *** [xz] Error 2
gmake[1]: Leaving directory `/home/nickziv/smartos-live/projects/illumos-extra'
gmake: *** [1-extra-stamp] Error 2

Here are the permissions on the file:

] ls -lh /home/nickziv/smartos-live/proto/usr/lib/libjoy_lzma.so.5.2.1
-r-xr-xr-x   1 nickziv  other       197K Mar 26 17:59 /home/nickziv/smartos-live/proto/usr/lib/libjoy_lzma.so.5.2.1

And the same for the parent directory:

drwxr-xr-x  73 nickziv  other        915 Mar 26 19:39 lib

Hope this helps.

@rmustacc rmustacc self-assigned this Mar 27, 2015
@rmustacc
Copy link
Contributor

Hmm. Most likely we're hitting a case where cp is unhappy copying this around and we should employ the traditional illumos solution of doing an rm -f on the files before proceeding to do the elfedit. If you do a manual rm -f, then you should be able to get past this.

@nickziv
Copy link
Author

nickziv commented Mar 29, 2015

Yep, deleting the file and running gmake live again allowed the build to run to completion. Thanks.

@nickziv nickziv closed this as completed Mar 29, 2015
@dwlf dwlf reopened this Mar 29, 2015
@rmustacc
Copy link
Contributor

Right, this is still a bug. I'll put together a fix for this shortly.

@nickziv
Copy link
Author

nickziv commented Mar 30, 2015

D'oh!

plitc added a commit to plitc/illumos-extra that referenced this issue Jan 12, 2019
@rmustacc rmustacc removed their assignment Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants