On 7/26/12 7:31 AM, Sjors Gielen wrote:
> Op 26-07-12 16:06, Alexander Hansen schreef:
>> On 7/26/12 6:50 AM, Hanspeter Niederstrasser wrote:
>>> Is there a way to copy the tarball from Source2 into a specific dir 
>>> inside the expanded Source1 tree *without* expanding Source2?
>>>
>>> A package I'm making needs several auxiliary tarballs, but it checks for 
>>> the tarball inside %b/external/src and tries to download it 
>>> automatically if missing.  "Source2ExtractDir" doesn't work for this case.
>>>
>>> Hanspeter
>>>
>>
>> I believe fink tries to expand any tarball listed in a SourceN field.
>> You might have to go with a hackish option and "re-tar" the expanded
>> Source2 in %b/external/src, since one can't really count on a source
>> being in e.g. %b/../../.. .  I face this same problem with the Octave
>> Forge packages, which insist on being installed from tarballs for
>> current Octave versions.
> 
> I think you could try renaming the file (SourceFileRename, or something like 
> that) to get around Fink's file type detection, then move and rename it back 
> in your PatchScript.
> 
> Sjors
> 
> 
> 

Again, there's no way for the .info file to tell _where_ the source
resides relative to %b.  Through fink.conf options:

1)  The source can come from a FetchAltDir rather than %p/src
2)  The build directory doesn't have to be in %p/src

So renaming the tarball might avoid expansion, but the build can't then
find the tarball with 100% reliability.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to