[Rpm-maint] 4.4.2.3: Packaging dangling symlinks

Rex Dieter rdieter at math.unl.edu
Mon Nov 23 15:03:47 UTC 2009


Axel Thimm wrote:

> Hi,
> 
> when trying to package dangling symlinks rpm-4.4.2.3-18.el5 as shipped
> by RHEL5 the build ignores the following %files section
> 
> %files devel
> %defattr(-,root,root,-)
> %{_includedir}/nvidia-graphics
> %{_libdir}/nvidia-graphics
> 
> 
> and errors out:
> 
> error: Installed (but unpackaged) file(s) found:
>    /usr/include/nvidia-graphics
>    /usr/lib64/nvidia-graphics
> 
> Later versions of rpm work fine. Is there a way to fix this on RHEL5's
> 4.4.2.3?

A hack I recall using way-back-when was to use 'touch' to create the symlink 
targets, then %exclude'ing them in %files




More information about the Rpm-maint mailing list