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

/usr/etc/ is not a standards conforming directory for configuration files. Please use /etc/ or /usr/lib/rtl_433/. #2827

Closed
dreirund opened this issue Feb 7, 2024 · 0 comments

Comments

@dreirund
Copy link

dreirund commented Feb 7, 2024

Building your software with -DCMAKE_INSTALL_PREFIX=/usr, it installs configuration files into /usr/etc/rtl_433/. Even if I pass -DCMAKE_INSTALL_SYSCONFDIR=/etc (with leading slash), they end up in /usr/etc/rtl_433/ and not /etc/rtl_433/:

With build carried out as:

git clone https://github.com/merbanan/rtl_433.git
mkdir -p build
cmake -S rtl_433 -B build \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_INSTALL_BINDIR=/usr/bin \
  -DCMAKE_INSTALL_SBINDIR=/usr/bin \
  -DCMAKE_INSTALL_SYSCONFDIR=/etc \
  -DBUILD_DOCUMENTATION=OFF \
  -DBUILD_TESTING=ON \
  -DBUILD_TESTING_ANALYZER=OFF \
  -DENABLE_IPV6=ON \
  -DENABLE_OPENSSL=ON \
  -DENABLE_RTLSDR=ON \
  -DENABLE_SOAPYSDR=ON \
  -DENABLE_THREADS=ON

make -C build
make DESTDIR=/tmp/rtl_433 install

installs configuration files into /tmp/rtl_433/usr/etc/rtl_433 and not /tmp/rtl_433/etc/rtl_433.

This is not standards conforming. They should go into /etc/rtl_433/ (without /usr), or if they are not meant to be modified by the user use /usr/lib/rtl_433.

Regards and thanks for the software and for maintaining!

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