Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150542 - net-irc/inspircd-1.0.6.ebuild bad built_with_use check
Summary: net-irc/inspircd-1.0.6.ebuild bad built_with_use check
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: William Pitcock
URL:
Whiteboard:
Keywords:
: 152495 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-09 00:40 UTC by Wolf Giesen (RETIRED)
Modified: 2007-01-28 22:03 UTC (History)
2 users (show)

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


Attachments
inspircd-1.0.6-r1.ebuild (inspircd-1.0.6-r1.ebuild,3.50 KB, text/plain)
2006-10-09 01:26 UTC, William Pitcock
Details
inspircd-1.0.7.ebuild (inspircd-1.0.7.ebuild,4.02 KB, text/plain)
2006-10-21 23:15 UTC, William Pitcock
Details
inspircd-1.0.6-1.0.7.diff (inspircd-1.0.6-1.0.7.diff,2.25 KB, patch)
2006-10-21 23:18 UTC, William Pitcock
Details | Diff
inspircd-1.0.8.ebuild (inspircd-1.0.8.ebuild,3.50 KB, text/plain)
2006-11-28 10:30 UTC, William Pitcock
Details
inspircd-1.0.8-r1.ebuild (inspircd-1.0.8.ebuild,3.09 KB, text/plain)
2006-11-28 10:31 UTC, William Pitcock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolf Giesen (RETIRED) gentoo-dev 2006-10-09 00:40:50 UTC
Regardless of "ssl" USE flag, the ebuild fails on line 98 (the "rainy day section"):

>> inspircd_use_enable openssl ssl HAS_OPENSSL y n

resulting in
!!! ERROR: net-irc/inspircd-1.0.6 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  inspircd-1.0.6.ebuild, line 98:   Called inspircd_use_enable 'openssl' 'ssl' 'HAS_OPENSSL' 'y' 'n'
  inspircd-1.0.6.ebuild, line 38:   Called built_with_use 'openssl' 'ssl'
  eutils.eclass, line 1619:   Called die

!!! dev-libs/openssl-0.9.8d does not actually support the ssl USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.


Removed the check, built successfully.
Comment 1 William Pitcock 2006-10-09 01:15:11 UTC
Acknowledged, thanks.
Comment 2 William Pitcock 2006-10-09 01:26:59 UTC
Created attachment 99177 [details]
inspircd-1.0.6-r1.ebuild

Hi, can you test this and see if it fixes it for you? It worked for me, anyway.

If it works for you, mark this bug as resolved and I will send it to Hansmi for committing.
Comment 3 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-10-09 01:28:36 UTC
William, can you please add a diff? That's easier to see the differences. No need to send it to me, I'm watching this bug.
Comment 4 William Pitcock 2006-10-09 02:03:09 UTC
--- inspircd-1.0.6.ebuild       2006-10-09 04:01:18.000000000 -0500
+++ inspircd-1.0.6-r1.ebuild    2006-10-09 04:02:00.000000000 -0500
@@ -95,7 +95,8 @@
 _EOF_
 
        # for a rainy day: USE="ssl" could be gnutls too?
-       inspircd_use_enable openssl ssl HAS_OPENSSL y n
+       inspircd_use_enable openssl openssl HAS_OPENSSL y n
+       inspircd_use_enable gnutls gnutls HAS_GNUTLS y n
 
        # build makefiles based on our configure params
        # Please note that it's not the autoconf configure script, thus
Comment 5 Wolf Giesen (RETIRED) gentoo-dev 2006-10-09 03:36:41 UTC
>>> Emerging (1 of 2) net-irc/inspircd-1.0.6-r1 to /
 * InspIRCd-1.0.6.tar.bz2 MD5 ;-) ...                                                                                                 [ ok ]
 * InspIRCd-1.0.6.tar.bz2 RMD160 ;-) ...                                                                                              [ ok ]
 * InspIRCd-1.0.6.tar.bz2 SHA1 ;-) ...                                                                                                [ ok ]
 * InspIRCd-1.0.6.tar.bz2 SHA256 ;-) ...                                                                                              [ ok ]
 * InspIRCd-1.0.6.tar.bz2 size ;-) ...                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                [ ok ]
 * checking InspIRCd-1.0.6.tar.bz2 ;-) ...                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking InspIRCd-1.0.6.tar.bz2 to /var/tmp/portage/inspircd-1.0.6-r1/work
tar: Read 5632 bytes from -
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/inspircd-1.0.6-r1/work/inspircd ...
 * Building configuration parameters file.

!!! ERROR: net-irc/inspircd-1.0.6-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  inspircd-1.0.6-r1.ebuild, line 98:   Called inspircd_use_enable 'openssl' 'openssl' 'HAS_OPENSSL' 'y' 'n'
  inspircd-1.0.6-r1.ebuild, line 38:   Called built_with_use 'openssl' 'openssl'
  eutils.eclass, line 1619:   Called die

!!! dev-libs/openssl-0.9.8d does not actually support the openssl USE flag!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 6 Wolf Giesen (RETIRED) gentoo-dev 2006-10-09 04:05:39 UTC
BTW: What about 1.0.7 ("fossil")? .-)
Comment 7 William Pitcock 2006-10-10 11:50:51 UTC
rats.

ok, i'll update it to 1.0.7 (fossil), and strip out SSL support for now until I can figure out what is going on with this openssl ebuild conflict... but I'm kinda busy right now so it will have to wait until tonight if that's OK.
Comment 8 Wolf Giesen (RETIRED) gentoo-dev 2006-10-10 13:26:36 UTC
Hey, I'm happy you're working on it!
Comment 9 Wolf Giesen (RETIRED) gentoo-dev 2006-10-11 00:39:51 UTC
Hm. SSL support in itself works; the obvious problem seems to me that your're testing whether openssl was built with "ssl" use flag, which in turn doesn't work. Sorry for pointing out the profane .-)
Comment 10 William Pitcock 2006-10-13 15:52:24 UTC
It shouldn't be testing openssl though. It should just be checking if SSL is in USE. ;)
Comment 11 Wolf Giesen (RETIRED) gentoo-dev 2006-10-14 01:09:10 UTC
Sorry, I don't get it ... you're calling

 "inspircd_use_enable openssl openssl HAS_OPENSSL y n"

and inspircd_use_enable in turn does a

  if built_with_use openssl openssl [...]

What else is supposed to happen?
Comment 12 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-10-14 04:04:03 UTC
(In reply to comment #10)
> It shouldn't be testing openssl though. It should just be checking if SSL is in
> USE. ;)

For that, use "use":

if use ssl
then
  echo foo
fi
Comment 13 William Pitcock 2006-10-14 05:20:55 UTC
That hit me right after I hit commit to add the comment.

Anyhow, 1.0.7 ebuild later today. :)
Comment 14 William Pitcock 2006-10-21 23:15:38 UTC
Created attachment 100192 [details]
inspircd-1.0.7.ebuild

InspIRCd 1.0.7 ebuild.

- fixes improper SSL built_with_use
- updates to 1.0.7 release
- changes USE=ssl to USE=openssl or USE=gnutls to select which SSL engine modules to enable
Comment 15 William Pitcock 2006-10-21 23:18:39 UTC
Created attachment 100193 [details, diff]
inspircd-1.0.6-1.0.7.diff

Differences between the 1.0.6 and 1.0.7 ebuilds.
Comment 16 William Pitcock 2006-10-21 23:33:15 UTC
Resolved by 1.0.7 ebuild, should be committed soon enough.
Comment 17 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-10-22 12:36:50 UTC
CVSed
Comment 18 Wolf Giesen (RETIRED) gentoo-dev 2006-10-23 00:50:12 UTC
Heh. I'll report once I have a test environment up (as I'm already using the SVN version now). BRB.
Comment 19 Wolf Giesen (RETIRED) gentoo-dev 2006-10-23 01:00:44 UTC
Well, that was easy (virtualization is really handy sometimes).

Here's what I get without any of the ssl USE flags:

make[1]: Leaving directory `/var/tmp/portage/inspircd-1.0.7/work/inspircd/src/modules'
*************************************
*        BUILD COMPLETE!            *
*   To install InspIRCd, type:      *
*         make install              *
*************************************

!!! ERROR: net-irc/inspircd-1.0.7 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  inspircd-1.0.7.ebuild, line 128:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


With USE="openssl", it builds correctly, though.

Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-10-23 03:38:18 UTC
*** Bug 152495 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-10-23 03:38:42 UTC
Fixing it in ~arch won't exactly help for folks that run stable. Reopen.
Comment 22 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-10-23 10:12:07 UTC
(In reply to comment #19)
> Here's what I get without any of the ssl USE flags:

I tried this:
USE="-*" ebuild inspircd-1.0.7.ebuild clean install

and it worked. How to reproduce your error?
Comment 23 Wolf Giesen (RETIRED) gentoo-dev 2006-10-23 23:38:35 UTC
Good question, since I can't reproduce it myself now. I'll have to retry with a fresh VM, I guess.
Comment 24 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-11-25 03:43:37 UTC
Anything new on this?
Comment 25 Wolf Giesen (RETIRED) gentoo-dev 2006-11-28 06:56:30 UTC
I just checked out the 1.0.7 ebuild, and there are still a couple if issues:

Logging goes to the wrong place (it would want to put it to /usr/bin/...); if that isn't a compile-time option (don't remember whether it was), it should be put in the init script with "-logfile /var/log/inspircd.log" or sth. like that.

You should be nice and pre-edit the .conf file to reflect the locations you install stuff to; it's all set to "/path/to/..."

I built with USE="openssl"; I know gnutls is preferred, but I had openssl on that server but no gnutls. Anyway, the module is not built (or not installed):

# equery f inspircd |grep ssl
/usr/lib/inspircd/modules/m_ssl_dummy.so
/usr/lib/inspircd/modules/m_sslmodes.so

Alas, m_ssl_openssl.so is missing.

There may be more, I was kinda in a hurry to set that one up and thought I'd try the ebuild for a change ^_^, but those are stumbling blocks; especially the missing logging is annoying since there does not seem to be a config option (or it's not included in the .example) and you just can't see why it doesn't work :D
Comment 26 William Pitcock 2006-11-28 10:24:23 UTC
It's because the damn InspIRCd buildsystem doesn't listen unless you do manual configure. The only solution is the pull SSL support entirely, or drop the ebuild.

I do not wish to package 1.1 because there are drastic changes being made to it, but it uses a more autoconf-like system (think: mplayer).
Comment 27 William Pitcock 2006-11-28 10:30:20 UTC
Created attachment 102933 [details]
inspircd-1.0.8.ebuild

inspircd-1.0.8 ebuild:

- version bump
- remove SSL support due to inspircd 1.0.x buildsystem not supporting it any other way than by manual configure

this ebuild can be used as 1.0.6-r1, 1.0.7-r1 too.
Comment 28 William Pitcock 2006-11-28 10:31:55 UTC
Created attachment 102934 [details]
inspircd-1.0.8-r1.ebuild

inspircd-1.0.8.ebuild with how-to-use-SSL information removed.
Comment 29 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-11-28 11:09:44 UTC
1.0.7-r1 in CVS
Comment 30 Wolf Giesen (RETIRED) gentoo-dev 2006-11-28 22:41:33 UTC
From the diff I'd say 1.0.7-r1 is not supposed to fix the logging, right?
Comment 31 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2007-01-28 22:03:42 UTC
Please reopen and bug nenolod if there's someething left.