Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298790 - sys-apps/portage-2.1.6.13: QA_TEXTRELS -- Discrepancy between documentations and implementation
Summary: sys-apps/portage-2.1.6.13: QA_TEXTRELS -- Discrepancy between documentations ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-28 21:36 UTC by Alexander Bezrukov
Modified: 2009-12-28 22:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,3.88 KB, text/plain)
2009-12-28 21:36 UTC, Alexander Bezrukov
Details
A testcase (ics-11.1.064.ebuild,6.53 KB, text/plain)
2009-12-28 21:42 UTC, Alexander Bezrukov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bezrukov 2009-12-28 21:36:09 UTC
ebuild(5) man page states that:

QA_TEXTRELS
   This variable can be set to a list of file paths, relative to the
   image directory, of files that contain text relocations that can‐
   not be eliminated.  The paths may contain regular expressions.
   This variable is intended to  be  used  on  closed-source  binary
   objects that cannot be altered.

What I see however is that a special subset of shell-style patterns, not regular expressions are allowed. Either documentation or implementation should be updated.

Reproducible: Always

Steps to Reproduce:
1. Write an ebuild which installs some files with .text relocations or pick one I attached (be careful, HUGE download in SRC_URI)
2. Try to match a sub-string with a '.*' regular expression, not '*' shell-style pattern in QA_TEXTRELS
3. See what happens

Actual Results:  
Paths not matched

Expected Results:  
Paths should match
Comment 1 Alexander Bezrukov 2009-12-28 21:36:52 UTC
Created attachment 214486 [details]
emerge --info
Comment 2 Alexander Bezrukov 2009-12-28 21:42:23 UTC
Created attachment 214488 [details]
A testcase

build with USE=idb and all other flags negated, this would minimize amount of download and temp disk space.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-28 22:17:13 UTC
Fixed in 2.1.7.

http://sources.gentoo.org/viewcvs.py/portage?rev=14184&view=rev
http://sources.gentoo.org/viewcvs.py/portage?rev=14536&view=rev