Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 848912 - dev-java/jna-5.13.0 installs pre-stripped files
Summary: dev-java/jna-5.13.0 installs pre-stripped files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-06-01 06:16 UTC by Agostino Sarubbo
Modified: 2023-05-20 09:39 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,74.24 KB, text/plain)
2022-06-01 06:16 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-06-01 06:16:03 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-java/jna-5.11.0 installs pre-stripped files.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-06-01 06:16:09 UTC
CC'ing also the author of the commit (14be4a0ea20880015e350f99b0f0140a10877736)
Comment 2 Agostino Sarubbo gentoo-dev 2022-06-01 06:16:10 UTC
Created attachment 781784 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2022-07-23 08:09:30 UTC
ci has reproduced this issue with version 5.11.0-r1 - Updating summary.
Comment 4 Agostino Sarubbo gentoo-dev 2023-05-10 06:58:55 UTC
ci has reproduced this issue with version 5.13.0 - Updating summary.
Comment 5 Volkmar W. Pogatzki 2023-05-11 14:22:23 UTC
Really strange. Unlike for other packages like app-misc/rox-filer-2.11 I cannot even reproduce that "QA Notice" for dev-java/jna.  

This bug report made me think my portage is broken, then I tested with rox-filer and there I can see the "QA Notice".  But not for dev-java/jna.


Here is what I have after src_compile:
$ file /var/tmp/portage/dev-java/jna-5.13.0/work/jna-5.13.0/build/native/libjnidispatch.so 
/var/tmp/portage/dev-java/jna-5.13.0/work/jna-5.13.0/build/native/libjnidispatch.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped


And here what's in image after src_install:
$ file /var/tmp/portage/dev-java/jna-5.13.0/image/usr/lib64/jna-4/libjnidispatch.so 
/var/tmp/portage/dev-java/jna-5.13.0/image/usr/lib64/jna-4/libjnidispatch.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
Comment 6 Agostino Sarubbo gentoo-dev 2023-05-11 14:55:05 UTC
(In reply to Volkmar W. Pogatzki from comment #5)
> Really strange. Unlike for other packages like app-misc/rox-filer-2.11 I
> cannot even reproduce that "QA Notice" for dev-java/jna.  
> 
> This bug report made me think my portage is broken, then I tested with
> rox-filer and there I can see the "QA Notice".  But not for dev-java/jna.
> 
> 
> Here is what I have after src_compile:
> $ file
> /var/tmp/portage/dev-java/jna-5.13.0/work/jna-5.13.0/build/native/
> libjnidispatch.so 
> /var/tmp/portage/dev-java/jna-5.13.0/work/jna-5.13.0/build/native/
> libjnidispatch.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
> dynamically linked, not stripped
> 
> 
> And here what's in image after src_install:
> $ file
> /var/tmp/portage/dev-java/jna-5.13.0/image/usr/lib64/jna-4/libjnidispatch.so 
> /var/tmp/portage/dev-java/jna-5.13.0/image/usr/lib64/jna-4/libjnidispatch.so:
> ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked,
> stripped



The only thing that differs is the path.

You said:
/var/tmp/portage/dev-java/jna-5.13.0/work/jna-5.13.0/build/native/libjnidispatch.so 
whil build log says:
/var/tmp/portage/dev-java/jna-5.11.0/work/jna-5.11.0/build/native-linux-x86-64/libjnidispatch.so

In any case, are you able to see the strip line on your log?
     [exec] x86_64-pc-linux-gnu-strip /var/tmp/portage/dev-java/jna-5.11.0/work/jna-5.11.0/build/native-linux-x86-64/libjnidispatch.so
Comment 7 Larry the Git Cow gentoo-dev 2023-05-20 09:39:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3768708989ba388546542ddb11e10f2140fcca93

commit 3768708989ba388546542ddb11e10f2140fcca93
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2023-05-10 11:00:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-20 09:39:13 +0000

    dev-java/jna: avoid installing pre-stripped files
    
    Closes: https://bugs.gentoo.org/848912
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/30971
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/jna/{jna-5.13.0.ebuild => jna-5.13.0-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)