Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102904 - tos-getenv-1.1.14 for tinyos-1.1.14-r1
Summary: tos-getenv-1.1.14 for tinyos-1.1.14-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Sandro Bonazzola (RETIRED)
URL: http://www.tinyos.net
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 78908 102905
  Show dependency tree
 
Reported: 2005-08-17 14:50 UTC by Sandro Bonazzola (RETIRED)
Modified: 2006-02-12 09:00 UTC (History)
3 users (show)

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


Attachments
tos-getenv-1.1.14.ebuild (tos-getenv-1.1.14.ebuild,1.79 KB, text/plain)
2005-08-17 14:51 UTC, Sandro Bonazzola (RETIRED)
Details
update to 1.1.15, with ebuild enhancements (tos-getenv-1.1.15.ebuild,1.69 KB, text/plain)
2006-01-29 07:28 UTC, Sandro Bonazzola (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Bonazzola (RETIRED) gentoo-dev 2005-08-17 14:50:20 UTC
JNI library support for getenv. An ebuild will follow.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sandro Bonazzola (RETIRED) gentoo-dev 2005-08-17 14:51:38 UTC
Created attachment 66177 [details]
tos-getenv-1.1.14.ebuild
Comment 2 Aurélien Francillon 2006-01-16 03:29:08 UTC
no source code changes in tinyos 1.1.15, no version bump needed
Comment 3 Sandro Bonazzola (RETIRED) gentoo-dev 2006-01-29 07:28:14 UTC
Created attachment 78429 [details]
update to 1.1.15, with ebuild enhancements
Comment 4 Sandro Bonazzola (RETIRED) gentoo-dev 2006-01-29 07:31:41 UTC
java team, please review this ebuild. I don't want to break anything, and maybe there are other jdk that support javacomm.
Comment 5 Sandro Bonazzola (RETIRED) gentoo-dev 2006-01-29 12:11:21 UTC
Just a little change to the submitted ebuild.

--- Desktop/tos-getenv-1.1.15.ebuild    2006-01-29 21:08:02.000000000 +0100
+++ /mnt/gentoo32/usr/local/portage/dev-tinyos/tos-getenv/tos-getenv-1.1.15.ebuild      2006-01-29 17:44:17.000000000 +0100
@@ -6,7 +6,7 @@
 CVS_YEAR="2005"
 MY_P="tinyos"

-inherit java-utils toolchain-funcs
+inherit eutils java-utils toolchain-funcs

 DESCRIPTION="TinyOS JNI getenv support library"
 HOMEPAGE="http://www.tinyos.net/"
@@ -21,6 +21,12 @@
 S="${WORKDIR}/${MY_P}-${PV}${CVS_MONTH}${CVS_YEAR}cvs/tools/java/jni"

 pkg_setup() {
+       if ! built_with_use dev-java/ibm-jdk-bin javacomm ; then
+               eerror "javacomm is required! Add javacomm to your use flag then re-emerge ibm-jdk-bin."
+               eerror "Then re-emerge this package."
+               die "setup failed due to missing prerequisite: javacomm"
+       fi
+
        java-utils_setup-vm
        java-utils_ensure-vm-version-ge 1 4 0

@@ -31,12 +37,6 @@
                eerror "Please use java-config -S to set your system vm to a ibm-jdk."
                die "setup failed due to missing prerequisite: ibm-jdk-bin"
        fi
-
-       if ! useq javacomm ; then
-               eerror "javacomm is required! Add javacomm to your use flag then re-emerge ibm-jdk-bin."
-               eerror "Then re-emerge this package."
-               die "setup failed due to missing prerequisite: javacomm"
-       fi
 }
Comment 6 Josh Nichols (RETIRED) gentoo-dev 2006-01-29 13:24:10 UTC
It looks like javacomm might be available independently from the JDK. It would be better to depend on that, than depending on using a particular JDK.

http://java.sun.com/products/javacomm/

Will need to look into it a little more though.
Comment 7 Sandro Bonazzola (RETIRED) gentoo-dev 2006-01-30 11:14:37 UTC
ibm-jdk-bin has it's own jvacomm package, I don't know if ther's a more general way to require javacomm.
What seems to require ibm instead of any other jdk is a comment in the make file shipped with tinyos. It says:

# The install rules assume that JNI libraries should be placed in .../jre/bin
# This seems to be true on Windows, and IBM's Linux Java
# It's not true for Sun's Linux Java (but we don't have javax.comm for that, so...)
Comment 8 Sandro Bonazzola (RETIRED) gentoo-dev 2006-02-12 09:00:57 UTC
Now in portage, closing.