Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550908 - dev-java/rxtx-2.2_pre2 fails to build with USE lfd
Summary: dev-java/rxtx-2.2_pre2 fails to build with USE lfd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2015-05-31 20:44 UTC by Marco Clocchiatti
Modified: 2020-09-18 08:32 UTC (History)
2 users (show)

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


Attachments
emerge info (emerge.info,9.61 KB, application/x-info)
2015-05-31 20:45 UTC, Marco Clocchiatti
Details
build log (build.log,55.67 KB, text/plain)
2015-05-31 20:46 UTC, Marco Clocchiatti
Details
emerge --info (as plain text) (emerge.info,9.61 KB, text/plain)
2015-05-31 20:48 UTC, Marco Clocchiatti
Details
environment (environment,164.06 KB, text/plain)
2015-05-31 20:49 UTC, Marco Clocchiatti
Details
workaround to compile ebuild. (workaroundForBug-550908.patch,613 bytes, patch)
2016-02-17 20:10 UTC, Marco Clocchiatti
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Clocchiatti 2015-05-31 20:44:26 UTC
dev-java/rxtx-2.2_pre2 fails to build with USE fld.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-java/rxt
Actual Results:  
the ebuild failes with error:

src/lfd/lockdaemon.c: In function ‘main’:
src/lfd/lockdaemon.c:829:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  write( 0, str, strlen(str) );

Expected Results:  
it should compile.

GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.5.5"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
Comment 1 Marco Clocchiatti 2015-05-31 20:45:04 UTC
Created attachment 404392 [details]
emerge info
Comment 2 Marco Clocchiatti 2015-05-31 20:46:24 UTC
Created attachment 404394 [details]
build log
Comment 3 Marco Clocchiatti 2015-05-31 20:48:00 UTC
Created attachment 404396 [details]
emerge --info (as plain text)
Comment 4 Marco Clocchiatti 2015-05-31 20:49:17 UTC
Created attachment 404398 [details]
environment
Comment 5 James Le Cuirot gentoo-dev 2015-05-31 20:50:16 UTC
The flag is lfd, not fld, and that part of the output is not the actual error but yes, it fails for me too.
Comment 6 Marco Clocchiatti 2016-02-17 20:10:43 UTC
Created attachment 425746 [details, diff]
workaround to compile ebuild.

the error reported in teh ebuild log is:

src/lfd/lockdaemon.c: In function ‘check_group_uucp’:
src/lfd/lockdaemon.c:473:14: error: ‘NGROUPS_MAX’ undeclared (first use in this function)
  gid_t list[ NGROUPS_MAX ];

in the attachment, a workaround patch, sufficient to compile the ebuild.
Comment 7 James Le Cuirot gentoo-dev 2016-02-17 21:24:13 UTC
Fixed in 2.2_pre2-r1. The correct fix was to include limits.h. I'll close this when stable.
Comment 8 Marco Clocchiatti 2016-02-18 02:52:01 UTC
ok.
but now we have a 2.2_pre2 version with not tilde KEYWORDS which does not compile and a 2.2_pre2-r1 with tilde KEYWORDS which does.
Comment 9 James Le Cuirot gentoo-dev 2016-02-18 08:45:57 UTC
(In reply to Marco Clocchiatti from comment #8)
> ok.
> but now we have a 2.2_pre2 version with not tilde KEYWORDS which does not
> compile and a 2.2_pre2-r1 with tilde KEYWORDS which does.

Right, that's how things work. You can't just mark things stable straight away except in exceptional circumstances like security. I must admit that I find this policy odd at times but I don't make the rules.
Comment 10 Miroslav Šulc gentoo-dev 2020-09-18 08:32:09 UTC
fixed in 2.2_pre2-r1