Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949232 - dev-java/reflections-0.9.12-r6: tests write above ${WORKDIR} (leaves stray file in $PORTAGE_TMPDIR)
Summary: dev-java/reflections-0.9.12-r6: tests write above ${WORKDIR} (leaves stray fi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-02 18:16 UTC by Jonathan Lovelace
Modified: 2025-02-20 19:00 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,9.00 KB, text/plain; charset=utf-8)
2025-02-02 18:16 UTC, Jonathan Lovelace
Details
dev-java:reflections-0.9.12-r6:20250201-223326.log (dev-java:reflections-0.9.12-r6:20250201-223326.log,4.71 KB, text/plain; charset=utf-8)
2025-02-02 18:17 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2025-02-02 18:16:40 UTC
Created attachment 918082 [details]
emerge-info.txt

Every time dev-java/reflections is built, after it has built and installed successfully and the post-build cleaning has otherwise completed normally, it leaves one file behind in $PORTAGE_TMPDIR: /var/tmp/portage/dev-java/reflections-0/9/12-r6/work/reflections-0/9/12/src/test/java/org/reflections/MyTestModelStore.java . (This file does not seem to be mentioned in the build log anywhere, and I note that it is not under the package's actual $WORKDIR: it's under a directory named after $S but with every '.' in $PV changed to a / .)
Comment 1 Jonathan Lovelace 2025-02-02 18:17:13 UTC
Created attachment 918083 [details]
dev-java:reflections-0.9.12-r6:20250201-223326.log
Comment 2 Volkmar W. Pogatzki 2025-02-03 17:19:00 UTC
Confirmed if running with FEATURES=test and then indeed, the path looks very interesting:

/var/tmp/portage/dev-java/reflections-0
└── 9
    └── 12-r6
        └── work
            └── reflections-0
                └── 9
                    └── 12
                        └── src
                            └── test
                                └── java
                                    └── org
                                        └── reflections
                                            └── MyTestModelStore.java

No idea why that happens, but I could identify the culprit with
JAVA_TEST_RUN_ONLY="org.reflections.JavaCodeSerializerTest".
Comment 3 Volkmar W. Pogatzki 2025-02-04 12:45:49 UTC
Should we remove it?

src_test() {
    java-pkg-simple_src_test
    rm -rfv "${WORKDIR}/../../reflections-0"
}
Comment 5 NHO 2025-02-20 19:00:21 UTC
Reported bug upstream:
https://github.com/ronmamo/reflections/issues/478