Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397985 - dev-java/netbeans-java-7.1 - dosym: two arguments needed (when multiple ant-tasks are installed)
Summary: dev-java/netbeans-java-7.1 - dosym: two arguments needed (when multiple ant-t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-07 09:41 UTC by Michael Baer
Modified: 2012-03-05 14:25 UTC (History)
2 users (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 Michael Baer 2012-01-07 09:41:15 UTC
I've tried to emerge netbeans-java-7.1.

It fails with 
>>> Install netbeans-java-7.1 into /var/tmp/portage/dev-java/netbeans-java-7.1/image/ category dev-java 
* ERROR: dev-java/netbeans-java-7.1 failed (install phase): 
* dosym: two arguments needed 

Same problem had user "dabicho" at forum (copied the lines above from the following post):
http://forums.gentoo.org/viewtopic-t-898620-start-0-postdays-0-postorder-asc-highlight-.html

And he pointed out the problem for netbeans-java-7.0.1:

-------------------------------
I have found the problem. 
For some reason I have mutlitple ant-tasks, and this line on the netbeans-java ebuild (184) 
Code:
    local vertasks=$(ls -d /usr/share/ant/tasks-*)

As a result, the following line gets more than two parameters. 
Code:
    dosym ${vertasks} ${INSTALL_DIR}/ant/$(basename ${vertasks})

-------------------------------

As a solution I've added " | head -n1" to the line "local vertasks=...."

I'm not quiet sure, if this results in the expected behaviour. 

Maybe this one is more what you want

for i in ${vertasks}; do
    dosym ${i} ${INSTALL_DIR}/ant/$(basename ${i})
done

But, please, add something to the "local vertasks" line as it will fail each time more than one ant-tasks are installed.

Maybe it's an uncommon situation. But least two people had have problems with this until now...
Comment 1 Miroslav Šulc gentoo-dev 2012-02-19 12:19:19 UTC
well, afaik, you should never have more versions of ant-tasks installed so this is unsupported behavior. the cause is in incorrect system update. you should always have only ant-tasks of single version of ant installed. the solution is to run 'emerge --sync' and then 'emerge -uDN'.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2012-02-19 12:51:19 UTC
Sorry, Miroslav was wrong. This situation can indeed happen.
Comment 3 Miroslav Šulc gentoo-dev 2012-03-05 14:25:58 UTC
should be fixed in version 7.1.1. i reverted back to bundled ant for now and it does not use the external ant tasks anymore.