Bug 162783 - Bogus flock(1) in util-linux package breaks kernel.org
Bogus flock(1) in util-linux package breaks kernel.org
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: util-linux (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karel Zak
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-08 12:39 EDT by H. Peter Anvin
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-05 10:01:49 EDT
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 H. Peter Anvin 2005-07-08 12:39:55 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.0.4-1.3.1 Firefox/1.0.4

Description of problem:
Since FC4 at least, the util-linux package has added an flock(1) utility from Adam Richter.  Unfortunately this is incompatible with and much more limited than a preexisting flock(1) utility used on kernel.org.

http://www.kernel.org/pub/software/utils/script/flock/

THIS HAS ALREADY BROKEN KERNEL.ORG ONCE AND IS THREATENING TO DO SO AGAIN.

Please unbundle this utility from the critical util-linux package, and preferrably, please include the kernel.org utility in your distribution.


Version-Release number of selected component (if applicable):
util-linux-2.12p-9.3

How reproducible:
Always

Steps to Reproduce:
Execute "flock -x 2"

  

Actual Results:  Error message

Expected Results:  Exclusive lock on file descriptor 2


Additional info:
Comment 1 H. Peter Anvin 2005-07-08 12:40:32 EDT
I have tried to contact the util-linux maintainers about this issue as well.
Comment 2 H. Peter Anvin 2005-07-11 01:44:26 EDT
At the request of the util-linux maintainers, I have updated my version of flock
to become a proper superset of the one currently in util-linux.

See the URL above.
Comment 3 Karel Zak 2005-07-12 06:21:57 EDT
I don't want to change any util in FC4 update. We can think about it for FC5.
You're right that your flock version looks better. It would be nice if you add
locale support to your code:

    setlocale(LC_ALL, "");
    bindtextdomain(PACKAGE, LOCALEDIR);
    textdomain(PACKAGE);
Comment 4 Karel Zak 2005-09-05 10:01:49 EDT
Accepted by upstream, already in FC5.

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