[CentOS] weird RPM dependency error; '/bin/sh' needed, but is provided

Tue Feb 12 22:27:17 UTC 2019
Brian Reichert <reichert at numachi.com>

On Tue, Feb 12, 2019 at 01:47:43PM -0800, Paul Heinlein wrote:
> That asterick where 0000040 (and its contents) should be is worrisome 
> to me. To my eye, something is amiss.

In the 'hexdump' and 'od' utilities, the '*' means a duplicate line
was suppressed.  From od(1):

       -v, --output-duplicates
		     do not use * to mark line suppression

To wit:

  $ rpm -q -requires -p openldap-ltb-2.4.47-1.el7.x86_64.rpm | od -c | head -5
  warning: openldap-ltb-2.4.47-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature,
  key ID 6d45bfc5: NOKEY
  0000000   /   b   i   n   /   b   a   s   h  \n   /   b   i   n   /   s
  0000020   h  \n   /   b   i   n   /   s   h  \n   /   b   i   n   /   s
  *
  0000060   h  \n   /   s   b   i   n   /   l   d   c   o   n   f   i   g
  0000100  \n   b   e   r   k   e   l   e   y   d   b   -   l   t   b
  $ rpm -q -requires -p openldap-ltb-2.4.47-1.el7.x86_64.rpm | od -cv | head -5
  warning: openldap-ltb-2.4.47-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature,
  key ID 6d45bfc5: NOKEY
  0000000   /   b   i   n   /   b   a   s   h  \n   /   b   i   n   /   s
  0000020   h  \n   /   b   i   n   /   s   h  \n   /   b   i   n   /   s
  0000040   h  \n   /   b   i   n   /   s   h  \n   /   b   i   n   /   s
  0000060   h  \n   /   s   b   i   n   /   l   d   c   o   n   f   i   g
  0000100  \n   b   e   r   k   e   l   e   y   d   b   -   l   t   b

And indeed, for whatever reason, openldap-ltb lists '/bin/sh' several times:

  $ rpm -q -requires -p openldap-ltb-2.4.47-1.el7.x86_64.rpm | head -5
  warning: openldap-ltb-2.4.47-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature,
  key ID 6d45bfc5: NOKEY
  /bin/bash
  /bin/sh
  /bin/sh
  /bin/sh
  /bin/sh

> 
> -- 
> Paul Heinlein
> heinlein at madboa.com
> 45?38' N, 122?6' W
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos

-- 
Brian Reichert				<reichert at numachi.com>
BSD admin/developer at large