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

How Does Make Determine where to Install? (packaging for GNU Guix distro) #113

Open
WammKD opened this issue Dec 26, 2022 · 1 comment
Open

Comments

@WammKD
Copy link

WammKD commented Dec 26, 2022

As I mention in the title, I'm trying to package this for Guix and I think that I've almost got things.

Most files get installed to the right directly but the libnautilus-dropbox.so file is attempting to be installed to the Nautilus package's directory.

Guix's functional nature means that each package lives in their own directory and the right approach would be to install libnautilus-dropbox.so in the directory of this package and Guix will take care of properly exposing it.

So, right now, I'm getting this error:

/gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32/bin/mkdir -p '/gnu/store/jb1ghi4gyr349l5jk147xxmsp1f3964s-nautilus-42.2/lib/nautilus/extensions-3.0'

/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/bash ../libtool --mode=install /gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32/bin/install -c libnautilus-dropbox.la '/gnu/store/jb1ghi4gyr349l5jk147xxmsp1f3964s-nautilus-42.2/lib/nautilus/extensions-3.0'

libtool: install: /gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32/bin/install -c .libs/libnautilus-dropbox.so /gnu/store/jb1ghi4gyr349l5jk147xxmsp1f3964s-nautilus-42.2/lib/nautilus/extensions-3.0/libnautilus-dropbox.so

/gnu/store/d251rfgc9nm2clzffzhgiipdvfvzkvwi-coreutils-8.32/bin/install: cannot create regular file '/gnu/store/jb1ghi4gyr349l5jk147xxmsp1f3964s-nautilus-42.2/lib/nautilus/extensions-3.0/libnautilus-dropbox.so': Permission denied

make[2]: *** [Makefile:409: install-nautilus_extensionLTLIBRARIES] Error 1

make[2]: Leaving directory '/tmp/guix-build-dropbox-nautilus-2020.03.04.drv-0/source/src'

make[1]: *** [Makefile:631: install-am] Error 2

make[1]: Leaving directory '/tmp/guix-build-dropbox-nautilus-2020.03.04.drv-0/source/src'

make: *** [Makefile:520: install-recursive] Error 1

error: in phase 'install': uncaught exception:

%exception #<&invoke-error program: "make" arguments: ("install") exit-status: 2 term-signal: #f stop-signal: #f>

when I need to install libnautilus-dropbox.so to <nautilus-dropbox directory>/lib/nautilus/extensions-3.0/libnautilus-dropbox.so.

But I can't figure out, for the life of me, how to do that or even the point make is installing to the Nautilus directory.

Any help or pointers would be amazing so I could get this working on Guix and submit it to the Guix repo.s.

@goffrie
Copy link
Contributor

goffrie commented Jan 4, 2023

I can't say I'm actually familiar with configure/automake stuff but does --with-nautilus-extension-dir do what you're looking for?

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

2 participants