cygport install infinite loop in src_postinstall under __prep_libtool_modules
Marco Atzeri
marco.atzeri@gmail.com
Sat Jul 4 20:06:49 GMT 2020
On 04.07.2020 21:35, Brian Inglis wrote:
> See attached cygport --debug ...cygport install log.
>
> Running cygport ... install, src_postinstall under __prep_libtool_modules after
> "Fixing libtool modules:" does not find dll in:
>
> $ find wget2-1.99.2-1.x86_64/ -name 'cygwget*'
> wget2-1.99.2-1.x86_64/build/libwget/.libs/cygwget-0.dll
> wget2-1.99.2-1.x86_64/inst/usr/bin/cygwget-0.dll
>
> so it loops on /usr/share/cygport/lib/src_postinst.cygpart:1297ff:
>
> while [ $(readlink -f ${ltlibdir}/${dlname%/bin/*}) != ${D}$(__host_prefix) ]
> do
> dlname=../${dlname}
> done
>
> until readlink returns root and just keeps on going, possibly because my Cygwin
> home is a symlink to my Windows home, but this approach would have problems with
> any symlinks along the path to the cygport dir, as $D is not similarly resolved.
>
> I can wrap the other path in the condition in $(readlink -f ...) and it works
> normally but this may not be the best approach here.
> Alternatives, suggestions?
>
> In this pre-package there is a check/test program and a DLL - is there another
> package I could use as a template for how to split this into two packages?
>
I assume you are building under some link structure.
I was hit by long time by it as I was using
/pub -> /cygdrive/d/cyg_pub
and building in it.
Two options:
1) patch cygport
I proposed something for that case
https://sourceware.org/pipermail/cygwin-apps/2020-April/039990.html
2) mount the directory instead of using links.
I put this in my fstab and removed the link
d:\cyg_pub /pub NTFS binary,posix=1,nouser 0 0
Regards
Marco
More information about the Cygwin-apps
mailing list