Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356367 - asterisk-1.4.39.2 ebuild
Summary: asterisk-1.4.39.2 ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL: http://downloads.asterisk.org/pub/tel...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 354763
  Show dependency tree
 
Reported: 2011-02-25 04:15 UTC by kfm
Modified: 2011-02-25 14:15 UTC (History)
1 user (show)

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


Attachments
ebuild for asterisk-1.4.39.2 (asterisk-1.4.39.2.ebuild,7.06 KB, text/plain)
2011-02-25 04:17 UTC, kfm
Details
eclass (provides menuselect_use_enable function) (asterisk.eclass,1.03 KB, text/plain)
2011-02-25 04:19 UTC, kfm
Details
Fix for bug 354763 (06-app_voicemail-imap.patch,957 bytes, patch)
2011-02-25 04:20 UTC, kfm
Details | Diff
revised ebuild for asterisk-1.4.39.2 (use DONT_OPTIMIZE instead of flag-o-matic) (asterisk-1.4.39.2.ebuild,6.85 KB, text/plain)
2011-02-25 04:29 UTC, kfm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2011-02-25 04:15:28 UTC
Please find herewith an ebuild for asterisk-1.4.39.2. The changes relative to 1.4.39.1 are as follows:

* Resolves bug 352059 and bug 354763
* Uses menuselect binary to enable/disable features and feature groups
  (as per the 1.8 ebuild)
* Otherwise adapted to follow the structure of the 1.8 ebuild in so far as is
  possible
* Defunct flags "static" and "vanilla" removed from IUSE

IMPORTANT: I liked the idea of using menuselect but I didn't like the way it was implemented in the 1.8 ebuild. I think it is convoluted and difficult to read and manage. Therefore, may I also present to you a fledgling asterisk eclass which, at present, contains just one function:

# @FUNCTION: menuselect_use_enable
# USAGE: <flag> <option> [option] ...
# @DESCRIPTION:
# Utilises the menuselect binary in asterisk in order to enable or disable
# asterisk components. The first parameter should be a USE flag with one or
# more menuselect option names following. If the menuselect tool does not
# already exist then it will be compiled beforehand.

As a result, the ebuild enables/disables options in this manner which, I'm sure you'll agree, is much easier to comprehend:

menuselect_use_enable imap  IMAP_STORAGE 
menuselect_use_enable debug DEBUG_CHANNEL_LOCKS DEBUG_THREADS DEBUG_FD_LEAKS

I think that this eclass could be used in other ways to ensure greater consistency between the ebuilds moving forwards.

I am running this in production now and intend to do some more build tests tomorrow in order to test the various USE flag combinations. Speaking of which, repoman will moan about bad USE flags but it's lying.

@Chainsaw: if you intend to commit this, please do not modify it beforehand without consulting me. Thanks!
Comment 1 kfm 2011-02-25 04:17:52 UTC
Created attachment 263737 [details]
ebuild for asterisk-1.4.39.2
Comment 2 kfm 2011-02-25 04:19:19 UTC
Created attachment 263739 [details]
eclass (provides menuselect_use_enable function)
Comment 3 kfm 2011-02-25 04:20:56 UTC
Created attachment 263741 [details, diff]
Fix for bug 354763

This should be dropped in to the existing ast14 patchset tarball and bumped to 0.2
Comment 4 kfm 2011-02-25 04:21:49 UTC
As an aside, the tabulation looks off if you view the ebuild in a browser but it's fine once downloaded and viewed in a proper editor (ergo, vim with the default gentoo syntax files).
Comment 5 kfm 2011-02-25 04:29:52 UTC
Created attachment 263743 [details]
revised ebuild for asterisk-1.4.39.2 (use DONT_OPTIMIZE instead of flag-o-matic)

Sorry, there was nothing wrong with the prior attachment but it's not the one I meant to upload. I decided just to enable DONT_OPTIMIZE as a feature in the debug case instead of faffing around with flag-o-matic (as the differences are nebulous and the prior approach diverged from upstream). Now the ebuild is even shorter and more concise ...
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2011-02-25 09:11:27 UTC
(In reply to comment #0)
> @Chainsaw: if you intend to commit this, please do not modify it beforehand
> without consulting me. Thanks!

I am unable to work under such conditions; particularly if you are not present on IRC at all. 1.4 was an experiment in involving the community further; whilst I believe we have both learned from the experience I do not intend to continue it.

1.4 will be removed from portage (together with the unloved 1.2 ebuilds) once 1.6.2 has been stabilised. 
Comment 7 kfm 2011-02-25 14:15:01 UTC
Excuse me? Unlike you, I'm on IRC almost 24/7 in irssi/screen, although sometimes I drop out of channels following maintenance. I made it very clear to you privately that I was going through a very tough time in RL and that I might not be able to continue maintenance anyway after a few months. I only noticed one ping from you since that occasion - you'd gone by the time I saw it and, actually, I looked out for you but don't recall seeing you spend much time in the channel either. Nor do I recall a single one of my emails ever being answered either. Ergo, I don't appreciate being described publically as having "evaporated". None of my contributions were ever really incorporated anyway - IMAP fix, various QA fixes etc - with the ebuilds becoming increasingly disparate, and I certainly won't be offering any of the others brewing in my private tree.

Furthermore, your disposition to 1.4 has been erractic to say the least; verging on hostility initially, followed by eventual acceptance then sudden allusions to being interested in it as a target for stabilisation and now a throwaway comment about it having caused so much "trouble" and thus here we are back at the beginning. It's a slap in the face and I'm entirely done with your general flippancy and bolshiness - not just to me but other contributors. Please remove me from the voip email alias and duly shove it.