Summary: | =app-admin/eselect-opengl-1.3.1-r2 - pkg_postinst(): find: `//usr/lib*/opengl': No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Coacher <itumaykin+gentoo> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jer, mgorny, rhill |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Coacher
2015-01-21 11:30:07 UTC
Why is this a problem? (In reply to Jeroen Roovers from comment #1) > Why is this a problem? Because this is an error message from `find`. It shouldn't be in the portage output. It's because the glob doesn't expand if the directory doesn't exist. But even if it does this is going to give you an error. If /usr/lib is a symlink to /usr/lib64 find will end up passing two paths to rmdir, and obviously the second will fail. I don't think -xtype is portable. I can't remember if we require gnu find. Something like this should work: find /usr/lib*/ -name opengl -xtype l -delete find /usr/lib*/ -depth -name opengl -type d -empty -exec rm -dfv {} + (In reply to Ryan Hill from comment #3) > It's because the glob doesn't expand if the directory doesn't exist. But > even if it does this is going to give you an error. If /usr/lib is a > symlink to /usr/lib64 find will end up passing two paths to rmdir, and > obviously the second will fail. > > I don't think -xtype is portable. I can't remember if we require gnu find. We do. > Something like this should work: > > find /usr/lib*/ -name opengl -xtype l -delete > find /usr/lib*/ -depth -name opengl -type d -empty -exec rm -dfv {} + Nope. It will find random 'opengl' symlinks and directories throughout /usr/lib*. + 22 Jan 2015; Michał Górny <mgorny@gentoo.org> eselect-opengl-1.3.1-r2.ebuild: + Avoid error messages when /usr/lib*/opengl does not exist, bug #537224. Used the easy way of path_exists. (In reply to Michał Górny from comment #5) > + 22 Jan 2015; Michał Górny <mgorny@gentoo.org> > eselect-opengl-1.3.1-r2.ebuild: > + Avoid error messages when /usr/lib*/opengl does not exist, bug #537224. > > Used the easy way of path_exists. Thanks. |