public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/netbeans: ChangeLog netbeans-6.5-r1.ebuild netbeans-6.5.ebuild
       [not found] <E1L3wx3-00078K-4Q@stork.gentoo.org>
@ 2008-11-22 19:02 ` Peter Volkov
  2008-11-22 19:47   ` Jeremy Olexa
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Volkov @ 2008-11-22 19:02 UTC (permalink / raw
  To: gentoo-dev, fordfrog

В Сбт, 22/11/2008 в 18:11 +0000, Miroslav Sulc (fordfrog) пишет:
> fordfrog    08/11/22 18:11:25
>   Added:                netbeans-6.5-r1.ebuild
>   Log: netbeans compiles fine even with JDK 1.6 so I dropped the restriction on JDK, also commons-fileupload linking fixed

> Index: netbeans-6.5-r1.ebuild
> ===================================================================
> pkg_setup() {
> 	if use netbeans_modules_apisupport && ! ( use netbeans_modules_harness && use netbeans_modules_ide && use netbeans_modules_java ) ; then
> 		eerror "'apisupport' USE flag requires 'harness', 'ide' and 'java' USE flags"
> 		exit 1
> 	fi

Why do you use exit 1 instead of die?

> 	local tmpfileplatform="${T}/platform.txt"
> 	cat ${tmpfile} | grep -v "libs.jna/external/jna-3.0.2.jar" > ${tmpfileplatform}
> 	mv ${tmpfileplatform} ${tmpfile}

grep can read files on it's own so no need for cat file | grep... Also possibly

sed -e "/libs\.jna\/external\/jna-3\.0\.2\.jar/d" -i ${tmpfile}

will work better here and in some other places...

-- 
Peter.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/netbeans: ChangeLog netbeans-6.5-r1.ebuild netbeans-6.5.ebuild
  2008-11-22 19:02 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/netbeans: ChangeLog netbeans-6.5-r1.ebuild netbeans-6.5.ebuild Peter Volkov
@ 2008-11-22 19:47   ` Jeremy Olexa
  2008-11-23 17:13     ` "Miroslav Šulc (fordfrog)"
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Olexa @ 2008-11-22 19:47 UTC (permalink / raw
  To: gentoo-dev; +Cc: fordfrog

Peter Volkov wrote:
> В Сбт, 22/11/2008 в 18:11 +0000, Miroslav Sulc (fordfrog) пишет:
>> fordfrog    08/11/22 18:11:25
>>   Added:                netbeans-6.5-r1.ebuild
>>   Log: netbeans compiles fine even with JDK 1.6 so I dropped the restriction on JDK, also commons-fileupload linking fixed
> 
>> Index: netbeans-6.5-r1.ebuild
>> ===================================================================
>> pkg_setup() {
>> 	if use netbeans_modules_apisupport && ! ( use netbeans_modules_harness && use netbeans_modules_ide && use netbeans_modules_java ) ; then
>> 		eerror "'apisupport' USE flag requires 'harness', 'ide' and 'java' USE flags"

Additionally, 'apisupport', 'harness', 'ide' and 'java' are not USE 
flags. You have to set NETBEANS_MODULES, not USE. You can easily test 
this by trying "NETBEANS_MODULES="apisupport" USE="java" emerge -pv 
netbeans" and see that netbeans_modules_java does not get set.
-Jeremy

>> 		exit 1
>> 	fi
> 
> Why do you use exit 1 instead of die?
> 
>> 	local tmpfileplatform="${T}/platform.txt"
>> 	cat ${tmpfile} | grep -v "libs.jna/external/jna-3.0.2.jar" > ${tmpfileplatform}
>> 	mv ${tmpfileplatform} ${tmpfile}
> 
> grep can read files on it's own so no need for cat file | grep... Also possibly
> 
> sed -e "/libs\.jna\/external\/jna-3\.0\.2\.jar/d" -i ${tmpfile}
> 
> will work better here and in some other places...
> 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/netbeans: ChangeLog netbeans-6.5-r1.ebuild netbeans-6.5.ebuild
  2008-11-22 19:47   ` Jeremy Olexa
@ 2008-11-23 17:13     ` "Miroslav Šulc (fordfrog)"
  0 siblings, 0 replies; 3+ messages in thread
From: "Miroslav Šulc (fordfrog)" @ 2008-11-23 17:13 UTC (permalink / raw
  To: gentoo-dev

Thank you both for the suggestions, I fixed these issues in updated 
netbeans-6.5-r1.

Miroslav Šulc (fordfrog)
Gentoo Java Team

Jeremy Olexa napsal(a):
> Peter Volkov wrote:
>> В Сбт, 22/11/2008 в 18:11 +0000, Miroslav Sulc (fordfrog) пишет:
>>> fordfrog    08/11/22 18:11:25
>>>   Added:                netbeans-6.5-r1.ebuild
>>>   Log: netbeans compiles fine even with JDK 1.6 so I dropped the 
>>> restriction on JDK, also commons-fileupload linking fixed
>>
>>> Index: netbeans-6.5-r1.ebuild
>>> ===================================================================
>>> pkg_setup() {
>>>     if use netbeans_modules_apisupport && ! ( use 
>>> netbeans_modules_harness && use netbeans_modules_ide && use 
>>> netbeans_modules_java ) ; then
>>>         eerror "'apisupport' USE flag requires 'harness', 'ide' and 
>>> 'java' USE flags"
> 
> Additionally, 'apisupport', 'harness', 'ide' and 'java' are not USE 
> flags. You have to set NETBEANS_MODULES, not USE. You can easily test 
> this by trying "NETBEANS_MODULES="apisupport" USE="java" emerge -pv 
> netbeans" and see that netbeans_modules_java does not get set.
> -Jeremy
> 
>>>         exit 1
>>>     fi
>>
>> Why do you use exit 1 instead of die?
>>
>>>     local tmpfileplatform="${T}/platform.txt"
>>>     cat ${tmpfile} | grep -v "libs.jna/external/jna-3.0.2.jar" > 
>>> ${tmpfileplatform}
>>>     mv ${tmpfileplatform} ${tmpfile}
>>
>> grep can read files on it's own so no need for cat file | grep... Also 
>> possibly
>>
>> sed -e "/libs\.jna\/external\/jna-3\.0\.2\.jar/d" -i ${tmpfile}
>>
>> will work better here and in some other places...
>>
> 
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-23 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1L3wx3-00078K-4Q@stork.gentoo.org>
2008-11-22 19:02 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-util/netbeans: ChangeLog netbeans-6.5-r1.ebuild netbeans-6.5.ebuild Peter Volkov
2008-11-22 19:47   ` Jeremy Olexa
2008-11-23 17:13     ` "Miroslav Šulc (fordfrog)"

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox