bugmonotone - Bugs: bug #24639, No dynamic library support in Lua...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #24639: No dynamic library support in Lua enabled?

Submitted by:  None
Submitted on:  Thu 23 Oct 2008 04:45:38 PM UTC  
Votes:  100  
 
Category: hook functionsSeverity: 3 - Normal
Item Group: incorrect behaviorStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

monotone 0.41 (base revision: 9b264ec9247ce99cd1fdc5293e869c1a60b01c4c)
Running on : Darwin 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386
C++ compiler : GNU C++ version 4.0.1 (Apple Inc. build 5484)
C++ standard library: GNU libstdc++ version 20050421
Boost version : 1_34
Changes since base revision:
format_version "1"

new_manifest [f47c3ba0224da029cab56abdaed3680ebd2af83e]

old_revision [dedb7e96fe917e0e8a30862b38e8092eefd7afa3]

patch "Makefile.am"
from [dfaa00d12056b5dc7a53ea779ba605d890669470]
to [6fe020d8ab470f53c98204bb139ed6e4d7bf4b93]

Generated from data cached in the distribution;
further changes may have been made.

Wed 25 Feb 2009 05:21:25 AM UTC, comment #1:

We now use system-provided lua instead of bundling our own, so this should be gone.

Timothy Brownawell <tbrownaw>
Project Member
Thu 23 Oct 2008 04:45:38 PM UTC, original submission:

"dynamic libraries not enabled; check your Lua installation"

That's what I get when trying to load a library using package.loadlib. I'd really love to use hooks for extending monotone without patching it's source and keep working on unofficial, customized builds. However, Lua has its limits. Fortunately, they could easily be expanded (at least for a given system, that is OS + CPU kind) by writing your code in C or C++ and compile that to library, which can be loaded from within Lua.

I see no reason why dynamic lib loading has to be disabled on OS X. OS X supports all necessary interfaces for that and if I just install Lua from its webpage and run my Lua code from command line, it loads libraries just fine and everything works as expected. This is really a bummer :-(

E.g. I'm not too happy with entering the password each time, the SSH-Agent approach is very un-Mac-like and also patching the SSH Agent Keychain tool (another customized software to run) is no solution. Actually I could write a simple library (about 100-200 lines of code) and maybe 10 lines of Lua to have monotone use the keychain like if it was designed for Mac OS since day one in a great consistent way. I would distribute my code to the public, so all Mac users can benefit. But I can't. monotone won't let me.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tbrownaw (Posted a comment)
  • -unavailable- added by mecki (Voted in favor of this item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 25 Feb 2009 05:21:25 AM UTCtbrownawStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 23 Oct 2008 05:44:40 PM UTCmeckiCarbon-Copy-=>Added mecki

    Back to the top


    Powered by Savane 3.1-cleanup1