Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909547 - [guru] dev-libs/lsbcrypt-1.0.0 installs less files with -native-symlinks and does not die in src_compile
Summary: [guru] dev-libs/lsbcrypt-1.0.0 installs less files with -native-symlinks and ...
Status: CONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: trakrailysurely
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-03 07:17 UTC by Agostino Sarubbo
Modified: 2023-07-04 06:49 UTC (History)
2 users (show)

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


Attachments

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

Issue: dev-libs/lsbcrypt-1.0.0 installs more files with FEATURES=test.
Discovered on: amd64 (internal ref: guru_ci)

NOTE:
To reproduce this issue:
1) Install the package with FEATURES=test
2) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist_test )
3) Install the package without FEATURES=test
4) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist_notest )
5) See the diff between the two files ( diff -ru /tmp/qlist_test /tmp/qlist_notest )

On this machine:
- the installed files with FEATURES=test are 2
- the installed files without FEATURES=test are 1

This type of report comes from a check that is a bit outside of the tinderbox, that's the reason because build.log was not provided (however in cases like these the build.log doesn't help much) but if you need further help to diagnose this issue feel free to ask.

In any case I'm providing a diff.
Comment 1 Agostino Sarubbo gentoo-dev 2023-07-03 07:18:10 UTC
DIFF:
--- /dev/fd/63  2023-07-01 23:23:03.178529879 +0200
+++ /dev/fd/62  2023-07-01 23:23:03.178529879 +0200
@@ -1 +1,2 @@
 /usr/include/bcrypt.h
+/usr/lib/bcrypt.a
Comment 2 Lucio Sauer 2023-07-03 16:49:32 UTC
I can't reproduce this neither at commit e01c54343b75e3e083758f6897200e72dfeee06a nor at commit a2da0bfeaa5e4a8a79e252efda8d943a80ef5613.

I tried it with dev-libs/lsbcrypt-1.0.0 and with dev-libs/lsbcrypt-1.0.0-r1.
dev-libs/lsbcrypt-1.0.0 installs this regardless of FEATURES=test:
> /usr/include/bcrypt.h
> /usr/lib/bcrypt.a

dev-libs/lsbcrypt-1.0.0-r1 installs this regardless of FEATURES=test:
> /usr/lib64/libbcrypt.a
> /usr/share/doc/lsbcrypt-1.0.0-r1/README.bz2

What am I missing here?
(Apart from the header file that I forgot to install... I'll commit that right away.)
Comment 3 Agostino Sarubbo gentoo-dev 2023-07-04 06:44:54 UTC
(In reply to Lucio Sauer from comment #2) 
> What am I missing here?

/usr/lib/bcrypt.a is not installed in case of -native-symlinks

here is the log:

>>> Compiling source in /var/tmp/portage/dev-libs/lsbcrypt-1.0.0/work/lsbcrypt-1.0.0 ...
gcc  -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wundef -Wpointer-arith -O2 -fomit-frame-pointer -funroll-loops -c bcrypt.c
make: gcc: No such file or directory
make: *** [Makefile:15: bcrypt.o] Error 127
>>> Source compiled.
>>> Test phase [not enabled]: dev-libs/lsbcrypt-1.0.0

>>> Install dev-libs/lsbcrypt-1.0.0 into /var/tmp/portage/dev-libs/lsbcrypt-1.0.0/image
>>> Completed installing dev-libs/lsbcrypt-1.0.0 into /var/tmp/portage/dev-libs/lsbcrypt-1.0.0/image

 * Final size of build directory: 260 KiB
 * Final size of installed tree:    0 KiB


>>> Installing (1 of 1) dev-libs/lsbcrypt-1.0.0::guru
 * checking 0 files for package collisions
>>> Merging dev-libs/lsbcrypt-1.0.0 to /
cp: cannot stat '/var/tmp/portage/dev-libs/lsbcrypt-1.0.0/work/lsbcrypt-1.0.0/bcrypt.a': No such file or directory
--- /usr/
--- /usr/lib/
--- /usr/include/
=== /usr/include/bcrypt.h
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
<<<          obj /usr/lib/bcrypt.a
--- replaced dir /usr/lib
--- replaced obj /usr/include/bcrypt.h
--- replaced dir /usr/include
--- replaced dir /usr
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> dev-libs/lsbcrypt-1.0.0 merged.

>>> Completed (1 of 1) dev-libs/lsbcrypt-1.0.0::guru

 * GNU info directory index is up-to-date.




 ~ $ qlist -e lsbcrypt
/usr/include/bcrypt.h
Comment 4 Agostino Sarubbo gentoo-dev 2023-07-04 06:46:29 UTC
also:

- from the gcc line it also seems to not respect cflags/ldflags
- the ebuild does not use emake and calls useless true