Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 791400 - =dev-util/ragel-7.0.4 misses USE=static-libs and installs '.a' files
Summary: =dev-util/ragel-7.0.4 misses USE=static-libs and installs '.a' files
Status: RESOLVED DUPLICATE of bug 766210
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: static-libs
  Show dependency tree
 
Reported: 2021-05-22 05:10 UTC by Agostino Sarubbo
Modified: 2021-05-30 05:33 UTC (History)
3 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 2021-05-22 05:10:06 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/ragel misses USE=static-libs and installs '.a' files.
Discovered on: amd64 (internal ref: ci)

The best solution is avoid to build the '.a' files by touching the configure. In case the buildsystem makes your life hard, a good compromise would be just remove the files.
See also:https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0302

NOTE: If you want to change the summary, to avoid auto-filed duplicates, please at least keep the word 'static-libs'
Comment 1 Ionen Wolkens gentoo-dev 2021-05-24 05:14:23 UTC
--disable-static seems to have been lost in the 7.0.3 (which I can also reproduce with):
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebce5ce15ff3205035359cece6d9b547affe4af1

Still there in 7.0.0.12
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-24 05:17:51 UTC
I suspect I did that when playing with the .la files but Iā€™d need to check if we always need the static libs or not. We might for colm.
Comment 3 Anton Bolshakov 2021-05-30 04:51:39 UTC
I have INSTALL_MASK="*.la" in my system and ragel failed to compile:

make[3]: Entering directory '/var/tmp/portage/dev-util/ragel-7.0.4-r1/work/ragel-7.0.4/src'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I../aapl -I../colm/include -I/usr/include/aapl -I/usr/include   -march=native -O2 -pipe -c -o ragel-main.o `test -f 'main.cc' || echo './'`main.cc
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I../aapl -I../colm/include -I/usr/include/aapl -I/usr/include   -march=native -O2 -pipe -c -o ragel-parse.o `test -f 'parse.c' || echo './'`parse.c
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I../aapl -I../colm/include -I/usr/include/aapl -I/usr/include   -march=native -O2 -pipe -c -o ragel-rlreduce.o `test -f 'rlreduce.cc' || echo './'`rlreduce.cc
make[3]: *** No rule to make target '/usr/lib64/libfsm.la', needed by 'ragel'.  Stop.

Would be good to find a solution. 

Also, is that bug a dup? https://bugs.gentoo.org/766210
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-30 04:55:14 UTC
(In reply to Anton Bolshakov from comment #3)
> I have INSTALL_MASK="*.la" in my system and ragel failed to compile:
> 

"Doctor, it hurts when I do this"
"Don't do that"

:)

Honestly, for now, this is still not the right thing to be doing. ImageMagick still uses .la files AFAIK. You can't unconditionally strip them.

What we need to do is delete them per-package for now.

> make[3]: Entering directory
> '/var/tmp/portage/dev-util/ragel-7.0.4-r1/work/ragel-7.0.4/src'
> x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I../aapl -I../colm/include
> -I/usr/include/aapl -I/usr/include   -march=native -O2 -pipe -c -o
> ragel-main.o `test -f 'main.cc' || echo './'`main.cc
> x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I../aapl -I../colm/include
> -I/usr/include/aapl -I/usr/include   -march=native -O2 -pipe -c -o
> ragel-parse.o `test -f 'parse.c' || echo './'`parse.c
> x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I../aapl -I../colm/include
> -I/usr/include/aapl -I/usr/include   -march=native -O2 -pipe -c -o
> ragel-rlreduce.o `test -f 'rlreduce.cc' || echo './'`rlreduce.cc
> make[3]: *** No rule to make target '/usr/lib64/libfsm.la', needed by
> 'ragel'.  Stop.
> 
> Would be good to find a solution. 
> 
> Also, is that bug a dup? https://bugs.gentoo.org/766210

Yeah, it is.

*** This bug has been marked as a duplicate of bug 766210 ***
Comment 5 Anton Bolshakov 2021-05-30 05:33:06 UTC
LOL yeah, but I have been running my system for years.
I do have few exceptions including ImageMagick, you are right.

So I added colm to that list:
/etc/portage/env/dev-util:
INSTALL_MASK=
PKG_INSTALL_MASK=