Bug 21218 - [errata glibc]: /usr/share owned by this package
[errata glibc]: /usr/share owned by this package
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-11-21 21:27 EST by Enrico Scholz
Modified: 2016-11-24 10:25 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-11-22 12:07:58 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Enrico Scholz 2000-11-21 21:27:46 EST
/usr/share is being owned by glibc:

$ rpm -qlp -vv glibc-2.2-5.fixarch.i686.rpm
...
drwxr-xr-x    1 root    root             4096 Nov 22 02:39 /usr/share


(Because rpm is buggy, cpio will fail if /usr/shared is %netshared and
mounted ro. So installation of glibc gets incomplete)

No other package (except filesystem) owns /usr/share so it seems to be a
bug in glibc.

I think the statement
-----------------
for n in %{_prefix}/share %{_prefix}/include %{_prefix}/lib/locale; do 
    find ${RPM_BUILD_ROOT}${n} -type d | \
        grep -v '^%{_prefix}/share$' | \
        sed "s/^/%dir /" >> rpm.filelist.in
done
-----------------

in glibc.spec is wrong. You are grep'ping for directories *beginning* (^)
with /usr/share, but
`find' returns $RPM_BUILD_ROOT/usr/share.
Comment 1 Jakub Jelinek 2000-11-22 12:07:55 EST
Fixed in our CVS, but will appear only in 7.1 or if we'll be doing another
errata for some reason some day. E.g. glibc-2.1.2-15 owns /usr/share because
of this as well.
Comment 2 Jakub Jelinek 2000-12-18 17:39:28 EST
This is in glibc-2.2-9.

Note You need to log in before you can comment on or make changes to this bug.