Closed Bug 509785 Opened 15 years ago Closed 11 years ago

Search dehydra system scripts in the same directory as the user script

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dnovillo, Assigned: taras.mozilla)

References

Details

Attachments

(1 file)

Dehydra searches for its own scripts in the same directory where gcc_dehydra.so lives.  In our build system this is not a good location as it would mean replicating the system scripts in several directories.

This patch makes dehydra look for its scripts in the same directory where the user script lives.  This may only be useful for our internal installation, though.
The setting for STD_INCLUDE is needed for running the dehydra testsuite.  Otherwise, it fails to find dehydra.js, since it execute under tests.
Blocks: 437502
While I agree with you that the current system path situation sucks, this patch is not a step in the right direction.

I think the proper solution is to support a compile-time install path. My preferred way would be
to do ./configure --prefix=/path/to/dehydra/lib/
This would default to `pwd`/lib and you'd be able to override it.

Alternatively we could settle for a crappier solution by something like
./configure --library_path_relative_to=dehydra.so|dehydra_script
ie to toggle between what we do currently and what your patch does.
(In reply to comment #2)
> While I agree with you that the current system path situation sucks, this patch
> is not a step in the right direction.
> 
> I think the proper solution is to support a compile-time install path. My
> preferred way would be
> to do ./configure --prefix=/path/to/dehydra/lib/
> This would default to `pwd`/lib and you'd be able to override it.
> 
> Alternatively we could settle for a crappier solution by something like
> ./configure --library_path_relative_to=dehydra.so|dehydra_script
> ie to toggle between what we do currently and what your patch does.

How about a -fplugin-arg-dehydra-library-path=<path> solution?  The default value for this would be provided at compile-time, but this would allow relocating scripts which gives us better control over where to put things.

If that's acceptable, I will prepare a patch.  Otherwise, it should not be a big patch to maintain locally.
(In reply to comment #3)

> How about a -fplugin-arg-dehydra-library-path=<path> solution?  The default
> value for this would be provided at compile-time, but this would allow
> relocating scripts which gives us better control over where to put things.
> 
> If that's acceptable, I will prepare a patch.  Otherwise, it should not be a
> big patch to maintain locally.

sounds great.
Dehydra and treehydra are no longer maintained by Mozilla.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: