Re: [oi-dev] Errors from distro constructor
On Wed, Oct 02, 2019 at 08:03:44PM +0200, Michal Nowak wrote: > > We had to put a workaround in place couple weeks ago: > https://github.com/OpenIndiana/oi-userland/pull/5272/files#diff-0ae6c3c34f4c69bd3afbca4a2db7c821. > Perhaps you need to pull the fix locally? (My DC build using the > openindiana.org publisher succeeds.) The bug is in: /usr/share/distro_const/boot_archive_archive.py It builds the boot archive differently for SPARC and non-SPARC hardware. The problem is that the python script uses os.system(), in many places, which re-parses the previously-built command line by the shell. The shell does this incorrectly when the file name contains characters that need to be quoted. The parsing can be corrected by surrounding the file names with single quote characters, assuming that it doesn't already contain quote characters. A better solution would be to avoid invoking the shell at all. After all, the file names are already correct. > The better way is to fix our Python 3 pkg: > https://www.illumos.org/issues/11636. The python 2.7 script is built and installed as part of the distro constructor consolidation. Fixes are difficult for this old version of python. -- -Gary Mills--refurb--Winnipeg, Manitoba, Canada- ___ oi-dev mailing list oi-dev@openindiana.org https://openindiana.org/mailman/listinfo/oi-dev
Re: [oi-dev] Errors from distro constructor
On 10/02/19 07:55 PM, Gary Mills wrote: When I ran distro_const the other day I got these errors: # distro_const build text_mode_sparc.xml ... ba-config: Boot archive configuration ln: /mnt/misc/etc/certs/CA/T\xc3\x9c\x42\xC4\xB0TAK_UEKAE_K\xC3\xB6k_Sertifika_Hizmet_Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1_-_S\xC3\xBCr\xC3\xBCm_3.pem: cannot link to etc/certs/CA/T\xc3\x9c\x42\xC4\xB0TAK_UEKAE_K\xC3\xB6k_Sertifika_Hizmet_Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1_-_S\xC3\xBCr\xC3\xBCm_3.pem [File exists] ln: /mnt/misc/etc/certs/CA/AC_Ra\xC3\xADz_Certic\xC3\xA1mara_S.A..pem: cannot link to etc/certs/CA/AC_Ra\xC3\xADz_Certic\xC3\xA1mara_S.A..pem [File exists] plat-setup: Platform specific setup ba-arch: Boot archive archiving 342288 blocks fiocompress: cannot open ./etc/certs/CA/Txc3x9cx42xC4xB0TAK_UEKAE_KxC3xB6k_Sertifika_Hizmet_SaxC4x9Flayxc4xb1x63xc4xb1sxc4xb1_-_SxC3xBCrxC3xBCm_3.pem - No such file or directory /usr/share/distro_const/boot_archive_archive.py: error compressing file ./etc/certs/CA/T\xc3\x9c\x42\xC4\xB0TAK_UEKAE_K\xC3\xB6k_Sertifika_Hizmet_Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1_-_S\xC3\xBCr\xC3\xBCm_3.pem: Unknown error fiocompress: cannot open ./etc/certs/CA/AC_RaxC3xADz_CerticxC3xA1mara_S.A..pem - No such file or directory /usr/share/distro_const/boot_archive_archive.py: error compressing file ./etc/certs/CA/AC_Ra\xC3\xADz_Certic\xC3\xA1mara_S.A..pem: Unknown error sh: syntax error at line 1: `(' unexpected /usr/share/distro_const/boot_archive_archive.py: error compressing file ./etc/certs/CA/NetLock_Arany_(Class_Gold)_Főtanúsítvány.pem: No such process Traceback (most recent call last): File "/usr/share/distro_const/boot_archive_archive.py", line 445, in compress(BA_BUILD, BA_LOFI_MNT_PT) File "/usr/share/distro_const/boot_archive_archive.py", line 185, in compress "compressed boot_archive files") Exception: /usr/share/distro_const/boot_archive_archive.py: Error processing compressed boot_archive files Child returned err 1 Build completed Tue Oct 1 15:21:35 2019 Build failed. As far as I can tell, the python script reinterprets the manifests, but does it incorrectly. In fact, the shell seems to be involved too. Enclosing the file name in single quotes allows `ls -l' to find it. I can correct the problem by omitting the relevant lines from the crypto-ca-certificates.p5m manifest, but is there a better way? Hi. We had to put a workaround in place couple weeks ago: https://github.com/OpenIndiana/oi-userland/pull/5272/files#diff-0ae6c3c34f4c69bd3afbca4a2db7c821. Perhaps you need to pull the fix locally? (My DC build using the openindiana.org publisher succeeds.) The better way is to fix our Python 3 pkg: https://www.illumos.org/issues/11636. Michal ___ oi-dev mailing list oi-dev@openindiana.org https://openindiana.org/mailman/listinfo/oi-dev
[oi-dev] Errors from distro constructor
When I ran distro_const the other day I got these errors: # distro_const build text_mode_sparc.xml ... ba-config: Boot archive configuration ln: /mnt/misc/etc/certs/CA/T\xc3\x9c\x42\xC4\xB0TAK_UEKAE_K\xC3\xB6k_Sertifika_Hizmet_Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1_-_S\xC3\xBCr\xC3\xBCm_3.pem: cannot link to etc/certs/CA/T\xc3\x9c\x42\xC4\xB0TAK_UEKAE_K\xC3\xB6k_Sertifika_Hizmet_Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1_-_S\xC3\xBCr\xC3\xBCm_3.pem [File exists] ln: /mnt/misc/etc/certs/CA/AC_Ra\xC3\xADz_Certic\xC3\xA1mara_S.A..pem: cannot link to etc/certs/CA/AC_Ra\xC3\xADz_Certic\xC3\xA1mara_S.A..pem [File exists] plat-setup: Platform specific setup ba-arch: Boot archive archiving 342288 blocks fiocompress: cannot open ./etc/certs/CA/Txc3x9cx42xC4xB0TAK_UEKAE_KxC3xB6k_Sertifika_Hizmet_SaxC4x9Flayxc4xb1x63xc4xb1sxc4xb1_-_SxC3xBCrxC3xBCm_3.pem - No such file or directory /usr/share/distro_const/boot_archive_archive.py: error compressing file ./etc/certs/CA/T\xc3\x9c\x42\xC4\xB0TAK_UEKAE_K\xC3\xB6k_Sertifika_Hizmet_Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1_-_S\xC3\xBCr\xC3\xBCm_3.pem: Unknown error fiocompress: cannot open ./etc/certs/CA/AC_RaxC3xADz_CerticxC3xA1mara_S.A..pem - No such file or directory /usr/share/distro_const/boot_archive_archive.py: error compressing file ./etc/certs/CA/AC_Ra\xC3\xADz_Certic\xC3\xA1mara_S.A..pem: Unknown error sh: syntax error at line 1: `(' unexpected /usr/share/distro_const/boot_archive_archive.py: error compressing file ./etc/certs/CA/NetLock_Arany_(Class_Gold)_Főtanúsítvány.pem: No such process Traceback (most recent call last): File "/usr/share/distro_const/boot_archive_archive.py", line 445, in compress(BA_BUILD, BA_LOFI_MNT_PT) File "/usr/share/distro_const/boot_archive_archive.py", line 185, in compress "compressed boot_archive files") Exception: /usr/share/distro_const/boot_archive_archive.py: Error processing compressed boot_archive files Child returned err 1 Build completed Tue Oct 1 15:21:35 2019 Build failed. As far as I can tell, the python script reinterprets the manifests, but does it incorrectly. In fact, the shell seems to be involved too. Enclosing the file name in single quotes allows `ls -l' to find it. I can correct the problem by omitting the relevant lines from the crypto-ca-certificates.p5m manifest, but is there a better way? -- -Gary Mills--refurb--Winnipeg, Manitoba, Canada- ___ oi-dev mailing list oi-dev@openindiana.org https://openindiana.org/mailman/listinfo/oi-dev