Hi,

On Feb 23, 2015, at 21:18, scsijon <[email protected]> wrote:

> 
> On 02/23/2015 10:48 AM, Barry Kauler wrote:
>> 
>> On 2/22/15, scsijon <[email protected]> wrote:
>>> I go look at the file itself, it it says
>>> 
>>> LIBATTR := yes
>>> 
>>> 
>> 
>> Jon,
>> Ha ha, I just checked the source from the official download site, as per 
>> here:
>> 
>> http://t2-project.org/packages/libcap.html
>> 
>> Opened it up, and yep:
>> 
>> ./Make.Rules:LIBATTR := yes
>> 
>> Ditto for the source here:
>> http://dl.t2-project.org/mirror/9.0/l/libcap-2.17.tar.bz2
>> 
>> My source is here:
>> 
>> http://distro.ibiblio.org/quirky/quirky6/sources/t2/april/libcap-2.17.tar.bz2
>> 
>> Curious that my source is different.
>> 
>> Anyway, how about this fix in libcap.conf:
>> 
>> pkg_installed attr || hook_add premake 5 "sed -i -e 's%^LIBATTR :=
>> .*%LIBATTR := no%' Make.Rules"
>> 
>> ...Rene, does that seem OK?
>> 
>> Regards,
>> Barry
> 
> :-) It's OK as long as you realize that it's one line and not two! :-)
> I initially just cut and pasted and it errored of course :-)


I mentioned pkginstalled attar || var_append makeopt ‘ ‘ ‘LIBATTR=no’ already?

(Actually unfortunately the makeinstopt need it too, or they would try to build 
some other [example?] tool, sigh.)

Simply avoid file sed’ing files - it is just unhandy, easily conflicts with 
patches, etc. pp.

Committed revision 43795.

--- package/base/libcap/libcap.conf     (revision 43794)
+++ package/base/libcap/libcap.conf     (revision 43795)
@@ -13,6 +13,10 @@
 # GNU General Public License can be found in the file COPYING.
 # --- T2-COPYRIGHT-NOTE-END ---
 
+if ! pkginstalled attr; then
+       var_append makeopt ' ' 'LIBATTR=no'
+       var_append makeinstopt ' ' 'LIBATTR=no'
+fi
 var_remove_regex makeopt ' ' 'LD=.*' # for cross builds, requries gcc with 
flags
 var_append makeinstopt " " "FAKEROOT=$root LIBDIR=$root/$libdir"
 hook_add postdoc 5 "rm -rvf $root$docdir/old; cp -v `match_source_file -p 
capfaq` $root$docdir/"

-- 
 ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin
 http://exactcode.com | http://exactscan.com | http://ocrkit.com | 
http://t2-project.org | http://rene.rebe.de

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2

Reply via email to