pasnox / qwbfsmanager

QWBFS Manager is a Wii games manager
62 stars 7 forks source link

Bundled fresh does not respect PREFIX and wants to install itself into /usr/... #24

Open pasnox opened 10 years ago

pasnox commented 10 years ago

From m...@gmx.us on October 12, 2012 06:01:38

What steps will reproduce the problem? 1. Make sure /opt/ is writable

  1. qmake PREFIX=/opt/qwbfs
  2. make install What is the expected output? What do you see instead? I expect everything to go under /opt/qwbfs/ . However I'm getting the following:

mlt@nb:/tmp/qwbfsmanager-1.2.3-src$ make install cd fresh/ && make -f Makefile install make[1]: Entering directory /tmp/qwbfsmanager-1.2.3-src/fresh' mkdir: cannot create directory/usr/include/qt4/FreshCore/': Permission denied make[1]: * [install_fresh_core_headers] Error 1 make[1]: Leaving directory `/tmp/qwbfsmanager-1.2.3-src/fresh' make: * [sub-fresh-install_subtargets-ordered] Error 2 What version of the product are you using? On what operating system? 1.2.3 Please provide any additional information below. I'm running Ubuntu GNU/Linux 12.04.1

Original issue: http://code.google.com/p/qwbfs/issues/detail?id=24

pasnox commented 10 years ago

From m...@gmx.us on October 11, 2012 21:27:07

I did not look into details but here is what I did. It looks like qwbfs links statically with fresh. So I had to reconfigure fresh so it does not want to install into /usr/...

cd fresh cmake -D CMAKE_INSTALL_PREFIX=/opt/qwbfs . make install DESTDIR=/opt/qwbfs cd .. make install DESTDIR=/opt/qwbfs

Not perfect at all, but

ldd /opt/qwbfs/bin/qwbfsmanager| grep -i fresh

does not show anything and qwbfsmanager starts ok

pasnox commented 10 years ago

From pasnox on October 18, 2012 10:26:24

Hi,

Looks like it's a bug in the qmake handling. theorically the make install step should not install fresh library, it's only used. Only qwbfsmanager itself should be installed ( and its dependenceis like resources etc).

Hi will investigate that.

Thanks,