1 |
hi, |
2 |
|
3 |
i was not on this list (now i am) so thanks for cc'ing me. |
4 |
|
5 |
Dne 06. 07. 20 v 3:09 Benda Xu napsal(a): |
6 |
> Zhang Zongyu <zzy2529420793@×××××.com> writes: |
7 |
> |
8 |
>> This week I have done a lot of repetitive work. That is, to go through |
9 |
>> all of the ebuild files in Gentoo Repository and to get them the |
10 |
>> equivalent GroupId and ArtifactId in Maven Central. There are more |
11 |
>> than 500 packages in dev-java/ and java-virtual/ category, and |
12 |
>> sometimes one Gentoo package may correspond to more than one Maven |
13 |
>> artifact, so it took me a lot of time to complete them. And here is my |
14 |
>> lookup up table which covers all packages in dev-java/ and maps |
15 |
>> "category/package:slot" into "groupId:artifactId".[1] As a result, |
16 |
>> spark-core can make use of more than 100 Gentoo native packages now. |
17 |
i just would like to bring to your attention the content of |
18 |
~/.java-ebuilder/cache. it contains all packages that are based at least |
19 |
on one of java eclasses, and those eclasses are also listed at the end |
20 |
of each row. might help you to find all packages that are java packages, |
21 |
even outside dev-java/ category. |
22 |
> My previous approach was to `ebuild xxxx prepare` the packages in |
23 |
> ::gentoo and inspect the pom.xml file inside ${WORKDIR}. Does that work |
24 |
> for you? |
25 |
> |
26 |
> https://github.com/gentoo/java-ebuilder/blob/master/scripts/meta.sh |
27 |
this seems to be a really clever idea :-) |
28 |
>> Besides, I have also added java-ebuilder some features. It can check |
29 |
>> the metadata of a package and get the correct SLOT, and it can make |
30 |
>> ebuild unpack "Maven Central distributed source files" into proper |
31 |
>> ${JAVA_SRC_DIR} now. |
32 |
> Good! |
33 |
|
34 |
i wanted to merge your commits to the main repo but your commits are not |
35 |
signed (which is required by gentoo) so the merge failed: |
36 |
|
37 |
$ git push --signed |
38 |
Enumerating objects: 160, done. |
39 |
Counting objects: 100% (160/160), done. |
40 |
Delta compression using up to 8 threads |
41 |
Compressing objects: 100% (32/32), done. |
42 |
Writing objects: 100% (140/140), 10.91 KiB | 10.91 MiB/s, done. |
43 |
Total 140 (delta 48), reused 140 (delta 48), pack-reused 0 |
44 |
remote: Resolving deltas: 100% (48/48), completed with 13 local objects. |
45 |
remote: FATAL: VREF/proj-gentoo-06-copyright: helper program exit status 256 |
46 |
remote: dd579db2a1505cec77815479ae6a3d6ef3a0c5ce: missing Signed-off-by |
47 |
on commit |
48 |
remote: 99097c6f99c248ccd30fce4519215c257c0c7a89: missing Signed-off-by |
49 |
on commit |
50 |
remote: 58874c99da6c32a2956b8ce4bb4b53478634c0da: missing Signed-off-by |
51 |
on commit |
52 |
remote: 85f88068c6fe41ce0984f90818715967b9b4d15c: missing Signed-off-by |
53 |
on commit |
54 |
remote: d93842e5ba03c6169cc040bab72b5abfc6626d68: missing Signed-off-by |
55 |
on commit |
56 |
remote: ad49c323e6f023c2ddd4935dd1dee1f4a3ad0b60: missing Signed-off-by |
57 |
on commit |
58 |
remote: 0ef403839d003795bb0afcca122e10b6bd0a8c44: missing Signed-off-by |
59 |
on commit |
60 |
remote: e22c64c1c277b3a882cc30d7664cdf508f7f05eb: missing Signed-off-by |
61 |
on commit |
62 |
remote: 974268aa05144c8f28a7b5872e85b4ef2059fb94: missing Signed-off-by |
63 |
on commit |
64 |
remote: a1843f1c17aad889d5b6614bd14eeb992abf9925: missing Signed-off-by |
65 |
on commit |
66 |
remote: 58ee12330f57eeb9b6772ef44889de8e93af4f1e: missing Signed-off-by |
67 |
on commit |
68 |
remote: 2ff7dd8b48f5bc71636e9cedb9f03a95f234208e: missing Signed-off-by |
69 |
on commit |
70 |
remote: f3a06517706afe5868f15508ead6d94c0c9c2080: missing Signed-off-by |
71 |
on commit |
72 |
remote: |
73 |
remote: Please make sure to read the copyright policy before adding |
74 |
Signed-off-by! |
75 |
remote: https://www.gentoo.org/glep/glep-0076.html |
76 |
remote: error: hook declined to update refs/heads/master |
77 |
To git+ssh://git.gentoo.org/proj/java-ebuilder.git |
78 |
! [remote rejected] master -> master (hook declined) |
79 |
error: failed to push some refs to |
80 |
'git+ssh://git.gentoo.org/proj/java-ebuilder.git' |
81 |
|
82 |
generally, using `git commit -s ...` adds the required line on new |
83 |
commits. you can also rebase your commit messages ( `git rebase -i |
84 |
c3b197f0e69c06f58f982f8d8dd16c88e2d5d518`) and push the commits again |
85 |
afaik. |
86 |
|
87 |
>> Next week I am going to test and add jaxb (javax.xml.bind:jaxb-api and |
88 |
>> javax.xml.bind:jaxb-impl) and some newer version packages which are |
89 |
>> required by spark-core, and |
90 |
> Good to know we are getting back jaxb. It is strange to me that without |
91 |
> such a seemingly central package packages in ::gentoo still work. Is it |
92 |
> now part of icedtea jdk? Please dig more into the story behind jaxb in |
93 |
> the #gentoo-java IRC and bugzilla. |
94 |
> |
95 |
> Maybe fordfrog have a better answer (@fordfrog, not sure if you have |
96 |
> subscribed to gentoo-soc, I am Ccing you). |
97 |
javax/xml/bind is part of jdk:8 but was dropped later and is not present |
98 |
in jdk:11 anymore which causes some packages to fail to compile against |
99 |
jdk:11 (you can easily check with something like this: `for jdk in |
100 |
icedtea:8 openjdk:8 openjdk:11; do echo; echo $jdk; for jar in $(equery |
101 |
files $jdk | grep -E ".*\.jar$"); do echo $jar; unzip -l $jar | grep |
102 |
javax/xml/bind; done; done`). you have to have those jdk installed |
103 |
before running this command. |
104 |
>> I hope the newer version ebuild files could be accepted by Gentoo-Java |
105 |
>> team. The prototype of the ebuild files that are just generated by |
106 |
>> java-ebuilder are listed in [2]. |
107 |
> Please start the code review processes of the new java packages by |
108 |
> submitting bug reports and pull requests when you see fit. |
109 |
|
110 |
do these work with java-pkg-simple.eclass as is in the tree or it needs |
111 |
your updated eclass? getting the changes in the eclass into the main |
112 |
tree requires review and approval by devs. |
113 |
|
114 |
also, before getting the ebuilds into the tree, i would really like to |
115 |
see an automated test to verify that the content of our jar files |
116 |
matches the content of the maven repo jar files. without this, we might |
117 |
get issues because of missing resources and maybe even other causes. |
118 |
|
119 |
> Benda |
120 |
|
121 |
thank you for the work you do! :-) |
122 |
|
123 |
|
124 |
miroslav |
125 |
|
126 |
>> [1] lookup table containing all packages from dev-java/ |
127 |
>> https://github.com/6-6-6/JEbuilder/blob/master/app-portage/java-ebuilder/files/scripts/LUT/LUT |
128 |
>> [2] a prototype overlay |
129 |
>> https://github.com/6-6-6/spark-overlay/tree/master/dev-java |