Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424007 - dev-libs/libnl-3.2.7 requires >=sys-devel/bison-2.4.2
Summary: dev-libs/libnl-3.2.7 requires >=sys-devel/bison-2.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 18:58 UTC by Joseph C. Lehner
Modified: 2012-06-30 15:35 UTC (History)
1 user (show)

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


Attachments
ebuild patch (file_424007.txt,295 bytes, text/plain)
2012-06-28 18:59 UTC, Joseph C. Lehner
Details
ebuild patch (file_424007.txt,295 bytes, patch)
2012-06-28 19:01 UTC, Joseph C. Lehner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph C. Lehner 2012-06-28 18:58:22 UTC
emake fails in libnl-3.2.7 if <sys-devel/bison-2.4 is installed (saw this bug on an old machine with bison-2.3 still installed). 

The dependencies list virtual/yacc, but the package fails to build with the only stable version of yacc, yacc-1.9.1-r4. Attempting to build the package with bison-1.875d also fails. 

The package apparently uses bison-specific extensions introduced in bison-2.4.

This bug also applies to the latest unstable version, libnl-3.2.11 (and I'm assuming 3.2.9 too).

Reproducible: Always

Steps to Reproduce:
# emerge -1 =dev-libs/libnl-3.2.7

Actual Results:  
>>> Compiling source in /var/tmp/portage/dev-libs/libnl-3.2.7/work/libnl-3.2.7 ...
make -j1
Making all in include
make[1]: Entering directory `/var/tmp/portage/dev-libs/libnl-3.2.7/work/libnl-3.2.7/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libnl-3.2.7/work/libnl-3.2.7/include'
Making all in lib
make[1]: Entering directory `/var/tmp/portage/dev-libs/libnl-3.2.7/work/libnl-3.2.7/lib'
  GEN    route/cls/ematch_grammar.c
  GEN    route/cls/ematch_syntax.c
route/cls/ematch_syntax.y:32.14-22: syntax error, unexpected "string", expecting "="
make[1]: *** [route/cls/ematch_syntax.c] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libnl-3.2.7/work/libnl-3.2.7/lib'
make: *** [all-recursive] Error 1
 * ERROR: dev-libs/libnl-3.2.7 failed (compile phase):
 *   emake failed
Comment 1 Joseph C. Lehner 2012-06-28 18:59:38 UTC
Created attachment 316581 [details]
ebuild patch
Comment 2 Joseph C. Lehner 2012-06-28 19:01:21 UTC
Created attachment 316583 [details, diff]
ebuild patch

Fixed Content-Type
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-29 16:34:44 UTC
sys-devel/bison-2.4 went stable in April 2010, and 2.3 was removed in May 2011, so setting a minimum version is like telling everyone it's fine to never update your system.

However, I can confirm that dev-util/yacc fails where sys-devel/bison builds libnl fine, so I will make that change.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-29 16:37:08 UTC
(In reply to comment #2)
> Created attachment 316583 [details, diff]
> ebuild patch
> 
> Fixed Content-Type

You can actually change that afterwards by clicking Details next to the Attachment.

The change is in the tree. Thank you for reporting.
Comment 5 Joseph C. Lehner 2012-06-29 19:36:21 UTC
The >=sys-devel/bison-2.4.2 shouldn't serve to tell users it's OK to never update their system, but seeing as sys-devel/bison-1.875d is still in the tree but also fails to build this package, I'd say DEPEND should explicitly specify a minimum version!