<div dir="ltr"><div>Hi, </div><div><br></div><div>Thanks for the suggestions. However, having tried a pull request, I unfortunately faced a build error on Azure Pipelines. As per my observation on my local machine, there shouldn't have been an error, as the distfile was fetched correctly, and the build statement mentioned explicitly to prevent any error. Any suggestions for possible rectification or identification of error would be highly appreciated.</div><div><br></div><div>The link to the pull request committed is as follows: <a href="https://github.com/macports/macports-ports/pull/6784">https://github.com/macports/macports-ports/pull/6784</a>.</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Thanks and Regards,</div><div>Yours Sincerely,</div><div dir="ltr"><i>Saptarshi Mukherjee,</i><div><i>A GSoC 2020 Aspirant.</i><br></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 3, 2020 at 10:37 PM Nils Breunese <<a href="mailto:nils@breun.nl">nils@breun.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ryan Schmidt wrote:<br>
<br>
> On Apr 2, 2020, at 09:39, SAPTARSHI MUKHERJEE wrote:<br>
> <br>
>> Thanks again for assigning to me the issue #60219 related to port ehcache. It helped me develop a much better understanding about a few things related to the portfile and the ports. <br>
>> <br>
>> I've made the necessary changes that fetches the new jar file appropriately, checks with updated checksum values correctly, and I've removed the Kaffe dependency, replacing it with the Java Portgroup. It has given expected results on testing, however following are few things that I'd like to know:-<br>
>> <br>
>> 1) Does this port still need to depend on apache-ant? Facing an error in apache-ant, I've removed the statement, which helped me get rid of the build-related error. If the apache-ant still needs to be retained, I'll have to look into it to fix the error that was like "Command failed : ant clean dist". Please tell me if the dependency becomes redundant after inclusion of Java portgroup or is still important.<br>
> <br>
> The Java portgroup doesn't mention anything about ant, so I don't know. If the port builds in trace mode without a dependency on ant then I guess it doesn't need it anymore. You can also consult any installation documentation that this project might provide; hopefully they would tell you what their dependencies are.<br>
<br>
The current Portfile for the EhCache library at <a href="https://github.com/macports/macports-ports/blob/master/java/ehcache/Portfile" rel="noreferrer" target="_blank">https://github.com/macports/macports-ports/blob/master/java/ehcache/Portfile</a> is for version 1.1, which is pretty ancient. According to <a href="https://search.maven.org/artifact/net.sf.ehcache/ehcache" rel="noreferrer" target="_blank">https://search.maven.org/artifact/net.sf.ehcache/ehcache</a> EhCache 1.2 was added to the Maven Central repository on April 26, 2006. So EhCache 1.1 will be older than that.<br>
<br>
EhCache 2.x used Maven 2 to build: <a href="https://www.ehcache.org/documentation/2.7/get-started/building.html" rel="noreferrer" target="_blank">https://www.ehcache.org/documentation/2.7/get-started/building.html</a><br>
<br>
According to <a href="https://www.ehcache.org/downloads/" rel="noreferrer" target="_blank">https://www.ehcache.org/downloads/</a> the current version of EhCache is 3.8.1. Looking at <a href="https://github.com/ehcache/ehcache3" rel="noreferrer" target="_blank">https://github.com/ehcache/ehcache3</a> EhCache 3.x uses Gradle Wrapper to build from source. Running something like `./gradlew build` should work, requiring only a Java Development Kit (JDK) to be installed. If the new Portfile fetches a pre-built JAR using one of the download links from <a href="https://www.ehcache.org/downloads/" rel="noreferrer" target="_blank">https://www.ehcache.org/downloads/</a> then there is nothing to build.<br>
<br>
I’m a Java developer myself and I actually wouldn’t know what Java developer these days would use a package manager like MacPorts to install a library. The popular Java build tools (Maven, Gradle) fetch their dependencies from Maven repositories.<br>
<br>
According to `port echo depends:ehcache` there are no ports that depend on the ehcache port that is currently in MacPorts, so I actually think it would be better to remove a port like this from MacPorts.<br>
<br>
Nils.<br>
<br>
</blockquote></div>