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

./configure --prefix doesn't work #53

Open
dhelgerson opened this issue Dec 9, 2024 · 0 comments
Open

./configure --prefix doesn't work #53

dhelgerson opened this issue Dec 9, 2024 · 0 comments

Comments

@dhelgerson
Copy link

I'm attempting to build this software as a dependency for another in userspace. I run ./configure --prefix=$PWD/install to keep things where I can access them. the build fails because the makefile tries to write to /usr/share/

steps to reproduce:

  1. clone repo and checkout latest release
  2. $ ./configure --prefix=$PWD/install
  3. make install
    result:
datadir="/usr/share"; \
if [ "${datadir#/mnt/localscratch/tah568/hyprland/deps/aquamarine/deps/hwdata/install}" != "$datadir" ]; then \
	datadir="\${prefix}${datadir#/mnt/localscratch/tah568/hyprland/deps/aquamarine/deps/hwdata/install}"; \
fi; \
sed -e 's|@prefix@|/mnt/localscratch/tah568/hyprland/deps/aquamarine/deps/hwdata/install|g' \
	-e "s|@datadir@|$datadir|g" \
	-e 's|@pkgdatadir@|${datadir}/hwdata|g' \
	-e 's|@VERSION@|0.390|g' \
	-e 's|@NAME@|hwdata|g' \
	hwdata.pc.in > hwdata.pc
mkdir -p -m 755 /usr/share/hwdata
for foo in pci.ids usb.ids oui.txt iab.txt pnp.ids ; do \
	install -m 644 $foo /usr/share/hwdata ;\
done
install: cannot remove '/usr/share/hwdata/pci.ids': Permission denied
install: cannot remove '/usr/share/hwdata/usb.ids': Permission denied
install: cannot remove '/usr/share/hwdata/oui.txt': Permission denied
install: cannot remove '/usr/share/hwdata/iab.txt': Permission denied
install: cannot remove '/usr/share/hwdata/pnp.ids': Permission denied
make: *** [Makefile:48: install] Error 1```
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

1 participant