rpmbuild whatnot
07 Mar 2012Random rpmbuild stuff:
Here's how to create symlinks when building an RPM
If you're packaging a statically-built binary (I know, I know) and it suddenly craps out with "unexpected reloc type in static binary", put this in your spec file:
%define __os_install_post %{nil}
- To see what macros are defined for your RPMs, run:
rpm --showrc
- The best way I found to make a symlink in an RPM is like so:
pushd $RPM_BUILD_ROOT/opt/bin
ln -sf ../package/bin/foo .
- If an rpmbuild invocation fails, don't forget to remove $RPMBUILDROOT. OTOH, that might be my fault for not including that as part of the setup...not sure.
Add a comment:
Name and email required; email is not displayed.
Related Posts
QRP weekend 08 Oct 2018
Open Source Cubesat Workshop 2018 03 Oct 2018
mpd crash? try removing files in /var/lib/mpd/ 11 Aug 2018