From owner-freebsd-ports@freebsd.org Sun Oct 30 02:22:21 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA046C25957 for ; Sun, 30 Oct 2016 02:22:21 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5BBE79D for ; Sun, 30 Oct 2016 02:22:21 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: by mail-it0-x22e.google.com with SMTP id f129so7213071itc.1 for ; Sat, 29 Oct 2016 19:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PutoREREwKfA7H6ktGR5fw0RJW6fP0F554wXUA8dNqY=; b=g6+zfBTZVgRAmcyuRvyHvwnJmgAVOQp77vIBg/RxdT8F396zKf4wbH4U+v5LSRiA/+ unBTcVi3bfwNNCOQBKRFh0NKt1dYeMuuWkHWiUZTQl+4gx6Nr2DQZnvQjZvZfxnWysFS +uW3KyQzNgBje4p9YDyIjg9RGJUohU0H47uJQ7hAnR5RC5Z5wsZ2QoWZ5jwY3IRg9OuH GfdnXmwqVcYTQyNm+5G7Y65i2JG2wCQDwnJVFjIkb/x7+tQ0/GEtXmQiWYNDdRYefz2L 49VOMgwPHbBrNhzYV7QRboYAqpLfCWG/+PVA8ci8IP/Az3I3EyTyAIJJMW5kAgxTwFzJ V2Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=PutoREREwKfA7H6ktGR5fw0RJW6fP0F554wXUA8dNqY=; b=H+4fIBq3wS/Ish1FWNmXbJM3uNhXJDDHB35grYG1T2yMc57G8oLW5rH8nQhceBGDcz a4KGyLui7ZCU3s9Fwd9hUsX6dnzKngeL+NwnEtTCeTBtAkAAurgeFNTAruQy+u6/I+eq G5kWy28rtKa9/dKznmpeqVEjuKb43Ocd5FUHC9K3yapgPHRIJaUBdmFFUSpB8m/Cgm5d VPu/D2GBLARZojcG2yjlcsC1ZMmQlJQG2XXOcQuAqvcgVPy92eK9CjM2s2QdLowJJbIc WXlDKDuok/pmQIDB9Bd+k9l8ICDevydmPYPqEyaD6yplSb2Rz8BPTFaYcqExyYtdTQPb wmuw== X-Gm-Message-State: ABUngvdCnrvHaAEcZbJLfHgESRvxEYn/OJNPKr6sXrcRWOi15XBUQFbE9i8upjL9PDm+/yRYv/klIfMXR975qw== X-Received: by 10.107.170.156 with SMTP id g28mr6901594ioj.111.1477794140580; Sat, 29 Oct 2016 19:22:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.27.197 with HTTP; Sat, 29 Oct 2016 19:22:20 -0700 (PDT) In-Reply-To: References: From: Marcel Bonnet Date: Sun, 30 Oct 2016 00:22:20 -0200 Message-ID: Subject: Re: Using INSTALL_DATA to install header files to PREFIX/include/PORTNAME To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2016 02:22:22 -0000 On 28 October 2016 at 18:14, Marcel Bonnet wrote: > Hello, porters! > > I've been reading the Porters Handbook, even the bsd.*.mk files... but > I'm wondering: why the waf installer put all the installation files > into STAGEDIR but the port system do not copy them all, just some of > them to the PREFIX. > > Below the Makefile and pkg-plist. > > If do not type > ${INSTALL_DATA} ${STAGEDIR}${PREFIX}/include/sord-0/sord/sord.h > ${STAGEDIR}${PREFIX}/include/sord-0/sord/ > them the this header is not copied to PREFIX. But the other files are > installed normally . > > So, I don't understand why I have to say ${INSTALL_DATA} the file from > and to its current directory. Am I'm doing something really wrong, but > perhaps produced the desired effect? Now its working like a charm. > My bad. I made something stupid, I was porting in PARANOID mode. The fact is: do-install: (cd ${WRKSRC} && ${WAF_CMD} install) puts all the files into stage dir correctly . And they are packaged and installed. I think the date of some source shared files (3 years old) made me think they were not being installed. It is ok, just two days to discover I was doing things right . -- Marcel Bonnet github.com/marcelbonnet/