Bug 2049401 - mingw-scripts takes duplicate command-line arguments
Summary: mingw-scripts takes duplicate command-line arguments
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-filesystem
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kalev Lember
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-02 06:44 UTC by Daiki Ueno
Modified: 2022-02-11 01:20 UTC (History)
6 users (show)

Fixed In Version: mingw-filesystem-130-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-11 01:20:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daiki Ueno 2022-02-02 06:44:47 UTC
Description of problem:
I got the following error when running mingw64-make:

  $ mkdir -p a/b
  $ cd a
  $ mingw64-make -C b
  make: *** b: No such file or directory.  Stop.

Running the same command under sh -x revealed that it expands the command-line arguments twice:

  $ sh -x /usr/bin/mingw64-make -C b
  ...
  ++ make prefix=/usr/x86_64-w64-mingw32/sys-root/mingw ... -C b -C b
  make: *** b: No such file or directory.  Stop.

Version-Release number of selected component (if applicable):
mingw64-filesystem-128-1.fc35.noarch

How reproducible:
always

Steps to Reproduce:
1. see above
2.
3.

Actual results:
mingw64-make properly finds the subdirectory

Expected results:
mingw64-make stops processing

Additional info:
A workaround (for my case) is to use an absolute path to the subdirectory, so multiple -C's is idempotent.

Comment 1 Fedora Update System 2022-02-02 10:01:11 UTC
FEDORA-2022-652b322d50 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-652b322d50

Comment 2 Fedora Update System 2022-02-03 01:34:46 UTC
FEDORA-2022-652b322d50 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-652b322d50`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-652b322d50

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2022-02-11 01:20:14 UTC
FEDORA-2022-652b322d50 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


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