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

devil.spec: /usr/share/info/dir conflict. solution provided. #331

Open
olahaye74 opened this issue Mar 28, 2014 · 1 comment
Open

devil.spec: /usr/share/info/dir conflict. solution provided. #331

olahaye74 opened this issue Mar 28, 2014 · 1 comment

Comments

@olahaye74
Copy link

Hi,

When building the rpm on rhel6.5, the resulting rpm has a conflict on /usr/share/info/dir file.
The solution is to remove this file after make install:
%{__rm} -f %{buildroot}/usr/share/info/dir
And use the following post scriptlets:
%post
/sbin/ldconfig
/sbin/install-info /usr/share/info/DevIL_manual.info.gz /usr/share/info/dir 2> /dev/null || :

%postun
/sbin/ldconfig
/sbin/install-info --delete /usr/share/info/DevIL_manual.info.gz /usr/share/info/dir 2> /dev/null || :

@jayvdb
Copy link

jayvdb commented Oct 18, 2017

(I have no idea if this is still a bug, but the .spec suggests it isnt fixed yet, and the website suggests this repo may now be irrelevant ..)

Note to be a bit more generic

%{__rm} -f %{buildroot}/usr/share/info/dir

should be

%{__rm} -f %{buildroot}%{_infodir}/dir

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

2 participants