On Tue, Aug 17, 2010 at 10:45, Allan McRae <allan@xxxxxxxxxxxxx> wrote: > On 17/08/10 19:28, Magnus Therning wrote: >> >> On Tue, Aug 17, 2010 at 10:10, Jan de Groot<jan@xxxxxxxxxxxxxx> wrote: >>> >>> On Tue, 2010-08-17 at 10:05 +0100, 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? >>> >>> Depends on your package. Somehow your $srcdir of $pkgdir ended up in one >>> of the installed files in your package. Use grep to find references to >>> it (the full path, not the variable name) and find a way to get rid of >>> those. >> >> Ah, so the warning is that something in $pkgdir refers to the value of >> $srcdir? >> >> How does makepkg determine this? >> >> "play" is a part of my $srcdir, but >> >> magnus@bryma 2520 ~/play/arch/ocaml-odn/pkg/usr/lib/ocaml/site-lib/odn >> % grep play * >> magnus@bryma 2521 ~/play/arch/ocaml-odn/pkg/usr/lib/ocaml/site-lib/odn >> % strings *|grep play >> magnus@bryma 2521 ~/play/arch/ocaml-odn/pkg/usr/lib/ocaml/site-lib/odn >> >>> What package are we talking about btw? >> >> Several, but the one here is ocaml-odn on AUR. >> > > makepkg just does something equivalent to: > grep -R "$srcdir" $pkgdir Ah, oki. Then I've found the reason for it as well. Thanks! /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus ; identi.ca|twitter: magthe