Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612996 - <app-text/tesseract-4*: globs on DISTDIR
Summary: <app-text/tesseract-4*: globs on DISTDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 612994
  Show dependency tree
 
Reported: 2017-03-18 09:41 UTC by Michał Górny
Modified: 2017-03-22 16:27 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-18 09:41:42 UTC
src_unpack() {
    unpack ${P}.tar.gz
    find "${DISTDIR}/" -name "*traineddata-${LANGPACKV}" \
      -execdir sh -c 'cp -- "$0" "${S}/tessdata/${0%-*}"' '{}' ';' || die
  }

This can really catch random downloaded files from DISTDIR. I see that it has been fixed in 4.00.00_alpha but it's pmasked.
Comment 1 Bernard Cafarelli gentoo-dev 2017-03-21 12:34:13 UTC
Yes, my plan was to make most changes in 4.00.00_alpha so it'd get some testing, but 4.00.00 final will not be there for some time (upstream has opened a 3.05 branch with probably another point release soon)

I will look into backporting at least this glob change in 3.05*
Comment 2 Bernard Cafarelli gentoo-dev 2017-03-22 16:27:08 UTC
OK, all current ebuilds in tree updated to use the fixed code from 4.00.00_alpha (I thought the other linguas changes would be needed, but they were not)