Skip to content

Add FreeBSD platforms' build.#676

Closed
chirontt wants to merge 1 commit intoeclipse-jdt:masterfrom
chirontt:support_freebsd_aarch64_x86_64
Closed

Add FreeBSD platforms' build.#676
chirontt wants to merge 1 commit intoeclipse-jdt:masterfrom
chirontt:support_freebsd_aarch64_x86_64

Conversation

@chirontt
Copy link
Copy Markdown

Part of eclipse-platform/eclipse.platform.releng.aggregator#2959

Author checklist

@SougandhS
Copy link
Copy Markdown
Member

Build failures are due to https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5892

*/
public class ClasspathShortener implements IProcessTempFileCreator {
private static final String CLASSPATH_ENV_VAR_PREFIX = "CLASSPATH="; //$NON-NLS-1$
public static final int ARG_MAX_FREEBSD = 2097152;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ARG_MAX_FREEBSD & ARG_MAX_LINUX have identical values, can you reuse ARG_MAX_LINUX for freeBSD ?

}

protected int getMaxArgLength() {
if (os.equals(Platform.OS_FREEBSD)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks similar to if (os.equals(Platform.OS_LINUX)) block, as both are same, I would recommend something like
if (os.equals(Platform.OS_LINUX) || os.equals(Platform.OS_FREEBSD)) { .... }

public static final int ARG_MAX_LINUX = 2097152;
public static final int ARG_MAX_WINDOWS = 32767;
public static final int ARG_MAX_MACOS = 262144;
public static final int MAX_ARG_STRLEN_FREEBSD = 131072;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible to reuse MAX_ARG_STRLEN_LINUX ?

@SougandhS SougandhS force-pushed the support_freebsd_aarch64_x86_64 branch from 1857a53 to e0a55ea Compare April 28, 2025 23:53
@chirontt
Copy link
Copy Markdown
Author

Closing as there isn't a viable path forward for FreeBSD.

@chirontt chirontt closed this Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants