Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_BK directory in reproducible build script should not be required #4014

Open
sxa opened this issue Oct 29, 2024 · 2 comments
Open

_BK directory in reproducible build script should not be required #4014

sxa opened this issue Oct 29, 2024 · 2 comments

Comments

@sxa
Copy link
Member

sxa commented Oct 29, 2024

What are you trying to do? Run the reproducible comparison tooling in tooling/reproducible

Expected behaviour: Temporary directory _BK under the current working directory should not be left around. It's not completely clear why this is required separate from the _CP ones.

Observed behaviour: _BK location under the current directory is created and left around after the build. Also the login around it in

seems incorrect - JDK_DIR is not necessarily defined which causes the directory to be created as just _BK under the current location.

Any other comments: Related: #4013

@sxa sxa changed the title _RP directory in reproducible build script should not be required _BK directory in reproducible build script should not be required Oct 29, 2024
@sxa
Copy link
Member Author

sxa commented Nov 1, 2024

@sophia-guo Can you take a look at this so I can understand the impact if this _BK and the JDK_DIR references are removed? There is no JDK_DIR directory defined at this point so the script leaves you with _BK directories on the file system. It seems to have been introduced into repro_compare.sh in commit 08621c7#diff-baa6ea4d277f52c24e6205a75e767f1dae477d0054d8fba3550e3551a4ae3eb3R54 as part of #3972

It looks like the related BK_JDK_DIR is only used in:

    removeSystemModulesHashBuilderParams "${JDK_DIR}" "${OS}" "${BK_JDK_DIR}"
    processModuleInfo "${JDK_DIR}" "${OS}" "${BK_JDK_DIR}"

Is the intended purpose of _BK different from _CP directory which is created elsewhere and can we re-use that instead?

@sophia-guo
Copy link
Contributor

No, _BK and _CP are created for same purpose to provide workable java or other jdk tools. Keep the _BK ( BK_JDK_DIR should be ${JDK_DIR1}_BK) one should be good I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants