flipperdevices / qFlipper

qFlipper — desktop application for updating Flipper Zero firmware via PC
https://update.flipperzero.one
GNU General Public License v3.0
1.07k stars 142 forks source link

make install sandbox violation (packaging issue) #58

Closed ZeroChaos- closed 2 years ago

ZeroChaos- commented 2 years ago

Describe the bug What were you trying to do? I am packaging qFlipper for the Gentoo Linux distribution

To Reproduce Steps to reproduce the behavior: Steps are a little complex, but the gist is that the package manager installs everything to a temporary directory before merging into the live filesystem, and I can't figure out how to make it do that. make install always tries to mkdir /usr/lib/qFlipper

Expected behavior Typically there is a variable to override installation location. I tried to set PREFIX="${variable_that_holds_tmpdir}/usr" but make install still tries to mkdir /usr/lib/qFlipper

Actual behavior The sandbox that prevents directly writing to the filesystem stops make install when it does mkdir /usr/lib/qFlipper This could entirely be my fault and masked by my inexperience with qmake, so feel free to tell me I'm doing it wrong and it's not a bug.

ZeroChaos- commented 2 years ago

...and I was doing it incorrectly. Sorry for the noise. For anyone following me, pass PREFIX to make install not just qmake.