[arch-general] Referencing $srcdir in PKGBUILD?

Nathan Wayde kumyco at konnichi.com
Tue Aug 17 05:11:11 EDT 2010


On 17/08/10 10:15, Allan McRae wrote:
> On 17/08/10 19:05, Magnus Therning wrote:
>> Lately my PKGBUILDs result in a warning when building:
>>
>> ==> WARNING: Package contains reference to $srcdir
>>
>> It's a bit confusing, since PKGBUILD(5) has the following to say about
>> $srcdir:
>>
>> srcdir
>> This points to the directory where makepkg extracts or
>> copies all source files.
>>
>> What should I do to get rid of the warning?
>>
>> /M
>>
>
> grep your files in your package for $srcdir (the actual value...). If it
> is not in a config file or RPATH or the like, you can probably ignore it.
>
> Allan
>
>
>
>

Please make sure you are 100% sure it can be ignored though. I've come 
across cases where symlinks in (e.g in /usr/lib) pointed to the $srcdir 
which cause confusing problems later on.


More information about the arch-general mailing list