Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378567 - dev-lang/ruby-1.8.7_p334-r2 creates "$as_dir" during 'install' phase
Summary: dev-lang/ruby-1.8.7_p334-r2 creates "$as_dir" during 'install' phase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-09 20:53 UTC by Sergei Trofimovich (RETIRED)
Modified: 2012-07-07 06:58 UTC (History)
0 users

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


Attachments
ruby-1.8.7_p334-as_dir.patch (ruby-1.8.7_p334-as_dir.patch,316 bytes, patch)
2011-08-09 20:53 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2011-08-09 20:53:32 UTC
Created attachment 282759 [details, diff]
ruby-1.8.7_p334-as_dir.patch

Right after 'ebuild install' i've noticed dir named '"$as_dir"'

    work/ruby-1.8.7-p334$ ls -1dQ *as_dir*

        "\"$as_dir\""

Patch should be selfexplanatory.

configure snippets:

set var:

    if mkdir -p . 2>/dev/null; then
      as_mkdir_p='mkdir -p "$as_dir"'
    else
      test -d ./-p && rmdir ./-p
      as_mkdir_p=false
    fi

check var (wrong?):

    if $as_mkdir_p; then
      MAKEDIRS='mkdir -p'
    else
      MAKEDIRS='install -d'
    fi


"fixed" as s/$as_mkdir_p/eval $as_mkdir_p/
Comment 1 Hans de Graaff gentoo-dev Security 2012-04-30 09:04:53 UTC
This only applies to ruby 1.8.7 since ruby 1.9.3 requires mkdir -p to work (and uses a different check). Should be reported upstream. I don't really want to do a revision bump just for this change, so hopefully we'll pick it up in the next upstream revision.
Comment 2 Hans de Graaff gentoo-dev Security 2012-07-07 06:58:17 UTC
This will be fixed in ruby 1.8.7-p370. Thanks for the report and patch. Not reported upstream since p370 is the last release in the 1.8 series.