delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/16/06:29:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <5003ED0D.7040209@gmail.com>
Date: Mon, 16 Jul 2012 05:29:33 -0500
From: Yaakov Selkowitz <yselkowitz AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: compiling coreutils with cygport
References: <CAMkU=1yRPm7vu30taP6Y0xNy3BRZxVOYUAL_aMCo794SSbGb6Q AT mail DOT gmail DOT com>
In-Reply-To: <CAMkU=1yRPm7vu30taP6Y0xNy3BRZxVOYUAL_aMCo794SSbGb6Q@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2012-07-13 16:25, Jeff Janes wrote:
> If I use setup.exe to download the src for coreutils (just by checking
> the "Src?" checkbox in the gui) , and then use cygport to build it, it
> fails.  The reason it fails  seems to be that ginstall.exe does not
> have the proper manifest file so windows refuses to execute it.  This
> is the same error you get if you try to build coreutils downloaded
> from upstream gnu sources.

Right, cygport really isn't the problem here.

> cygport coreutils-8.15-1.cygport prep compile
> ....
> make[2]: Entering directory `/usr/src/coreutils-8.15-1/build/man'
>    GEN    install.1
> help2man: can't get `--help' info from install.td/install
> Makefile:1833: recipe for target `install.1' failed
> make[2]: *** [install.1] Error 126

This occurs because help2man runs ginstall to get its --help and 
--version output, but UAC doesn't allow it because of its name (but 
let's not go *there* again).  This also would occur during make install, 
where the in-tree ginstall is used as $(INSTALL).

cygport has for some time created .manifest files during postinstall, 
which has taken care of UAC issues for end users.  However, there is no 
way for cygport to know what executables are being created during the 
*build*, and then that they actually need to be run in the build tree 
(most do not).  That being said, adding this as a manual command for 
cases like this is pretty easy.

Please try cygport git master together with adding the following line to 
coreutils-*.cygport immediately *before* the cygmake command:

   manifestize src/ginstall.exe

That WFM on W7.

(Eric: BTW, while I'm at it, there's an easier way to handle DIR_COLORS:

   insinto /etc
   doins $B/src/DIR_COLORS
   make_etc_defaults /etc/DIR_COLORS

No custom postinstall/preremove necessary. :-)


Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019