On 2020-09-10 04:57, Fergus Daly via Cygwin wrote: >>>> Sorry if this has been asked 4 million times already. > >>> $ head /etc/postinstall/{fontconfig_dtd,libxml2}.* >> ==> /etc/postinstall/fontconfig_dtd.sh.done <== >>> if [ -x /usr/bin/xmlcatalog ] ; then >> /usr/bin/xmlcatalog --noout --add "system" "fonts.dtd" >> /usr/share/xml/fontconfig/fonts.dtd /etc/xml/catalog >> fi > ==>> /etc/postinstall/libxml2.sh.done <== >>> if test ! -f /etc/xml/catalog; then >> /bin/mkdir -p /etc/xml >> /usr/bin/xmlcatalog --noout --create /etc/xml/catalog >> fi >>> $ llgo /{etc/xml/,usr/bin/xml}catalog /usr/share/xml/fontconfig/fonts.dtd >> /etc/postinstall/{fontconfig_dtd,libxml2}.* > >> Thank you! > > Out of interest: > Is this something that would usually be achieved during setup, as in other > instances of > .sh -> .sh.done, but has just fallen off? > Or (say) would it be achieved if I appended some specific package using setup > -P? > Or .. .. ?
Each of the postinstall scripts are installed as part of a package to perform some aspect of installation that can not be done statically during the package build as it may depend on dynamic aspects of each user's installation. The Cygwin Setup program will normally rename the non-permanent (not starting [0z][p-t]_...) postinstall scripts with suffix .done after successful execution, so failure of the postinstall script is the usual reason they are not suffixed, and that should be captured in /var/log/setup.log and /var/log/setup.log.full at the end of each Setup run, and may be checked using: $ fgrep -B1 'abnormal exit: exit code=' /var/log/setup.log* showing e.g. -- /var/log/setup.log-2015/10/18 07:27:14 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/ texlive-collection-basic.sh" /var/log/setup.log:2015/10/18 07:27:26 abnormal exit: exit code=2 -- /var/log/setup.log-2016/03/10 17:33:13 running: C:\usr\local\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir. dash" /var/log/setup.log:2016/03/10 17:33:14 abnormal exit: exit code=127 -- /var/log/setup.log-2016/03/10 17:33:14 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/ zp_fontconfig_cache_1.sh" /var/log/setup.log:2016/03/10 17:33:33 abnormal exit: exit code=3 -- /var/log/setup.log-2016/06/05 03:53:59 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/ zp_fontconfig_cache_1.sh" /var/log/setup.log:2016/06/05 03:54:33 abnormal exit: exit code=1 -- /var/log/setup.log-2017/04/20 21:34:32 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/postinstalltest.sh" /var/log/setup.log:2017/04/20 21:34:32 abnormal exit: exit code=2 -- /var/log/setup.log-2017/09/07 18:49:13 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/cygwin-doc.sh" /var/log/setup.log:2017/09/07 18:49:13 abnormal exit: exit code=2 -- /var/log/setup.log-2017/09/08 23:16:33 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/preremove/cygwin-doc.sh" /var/log/setup.log:2017/09/08 23:16:34 abnormal exit: exit code=1 -- /var/log/setup.log-2017/09/27 23:29:55 running: C:\usr\local\cygwin64\bin\bash.exe --norc --noprofile "/etc/preremove/rsnapshot.sh" /var/log/setup.log:2017/09/27 23:29:55 abnormal exit: exit code=1 -- -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in IEC units and prefixes, physical quantities in SI.] -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple