Bug 1128 - FR: brace expansion in %files section (esp. for %doc)
: FR: brace expansion in %files section (esp. for %doc)
Status: ASSIGNED
: Sisyphus
(All bugs in Sisyphus/rpm-build)
: unstable
: all Linux
: P5 enhancement
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2002-07-25 02:45 by
Modified: 2008-03-31 00:39 (History)


Attachments


Note

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


Description From 2002-07-25 02:45:50
When the file list contains a %doc line with an absolute path specification,
e.g.:
%doc %_docdir/%name-%version/{AUTHORS,README,TODO}
, the brace expansion doesn\'t occur, whereas a relative spec expands braces
just fine:
%doc subdir/{README,TODO}
---

---
------- Comment #1 From 2003-04-22 15:26:15 -------
As well as in other %files lines.
It is not a bug report but feature request.
------- Comment #2 From 2003-04-22 15:26:15 -------
As well as in other %files lines.
It is not a bug report but feature request.
------- Comment #3 From 2003-05-06 02:26:23 -------
But the relative form of %doc expands braces. It\'s inconsistent behaviour at
least.
------- Comment #4 From 2003-05-06 02:26:23 -------
But the relative form of %doc expands braces. It\'s inconsistent behaviour at
least.
------- Comment #5 From 2008-03-31 00:39:00 -------
In bourne shell, brace expansion is a separate stage of substitution that is
prefromed BEFORE glob.  There is no such stage in %files section.  However,
glob(3) has GLOB_BRACE option, which we may want (or may not want to use).