openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
130 stars 181 forks source link

No longer able to build anything? #967

Closed bwoodsend closed 8 months ago

bwoodsend commented 8 months ago

I must be doing something weird here or everyone's builds would be on fire.

I build various custom OpenSUSE packages using build in a Tumbleweed Docker container. As of about a week ago, I can no longer build any of them. I've even tried building a few official packages from build.opensuse.org and they give the same error.

Reproducer example (where ujson is chosen arbitrarily as a small package):

docker run --rm -it opensuse/tumbleweed:latest
zypper install -y osc build perl-XML-Parser
osc -A https://api.opensuse.org checkout devel:languages:python/python-ujson && cd $_
build --clean --dist tumbleweed

Then build gives me some kind of (presumably XML) parsing error:

logging output to /var/tmp/build-root/.build.log...
[    0s] Memory limit set to 8035034KB
[    0s] /usr/bin/build: line 1531: hostname: command not found
[    0s] Using BUILD_ROOT=/var/tmp/build-root
[    0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386
[    0s] 
[    0s] 
[    0s]  started "build python-ujson.spec" at Sun Nov 19 22:11:58 UTC 2023.
[    0s] 
[    0s] 
[    0s] processing recipe /devel:languages:python/python-ujson/python-ujson.spec ...
[    0s] init_buildsystem --configdir /usr/lib/build/configs --cachedir /var/cache/build --repository zypp:// --clean /devel:languages:python/python-ujson/python-ujson.spec ...
[    0s] initializing /var/tmp/build-root/.srcfiles.cache ...
[    0s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://repo-non-oss
[    0s] Negative repeat count does nothing at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser/Expat.pm line 372.
[    0s] 
[    0s] syntax error at line 1, column 0, byte 0:
[    0s] (�/��_Wm�ښRr<@G���0aUEѵ�Yk��v놱�2���\Qu�i�QT�8��Q�!$�n�*���
�       ",��Z�ؽ�8�7�xpDX�B�                                          v.Z��
�q���4ה�&\c���s��vO���;�? l�W ���!�2mv<"M@0x��`����u>����#F~83]|E~�2�O�䣇&����[�J��F
                                                                                    �>09�?�nc���6��񿮆m��d�2j��W�ǖ��Qi���K��S��?��7   �z.��}��&��%�N�7Y�o�bO�mnQ�!�   \S1���8@P�@q@{���\�vP5\��S�{���뽖O'�dQ=�TA�tN�k��t�6�|I:��G��Z����e�\\�_uЭ:���M���Jۃo�e6�n�d]p�lS��R��l��_�i(��.�    ݲ�E�⁃��Z���@tg{
��s��~J���ZKB�dcՓ,ЁU����0��y�O4y�/�_����Bō�#)$��               Ԃ�������P����
                                                �H4]0�܇�Uܬ�)@j���Oj�5���ͧ�[:%��Zeݬu-����E_����E�b˶{L�7���p9�l����۫��٬�KB�`�t9u��e��(^�P��E�_{�?�Y���^��؂�9��ϱ��S�ĸ��x�pR҅Ӑ
                                                                                                                                                                      Ƃ�Gb�^B?��x�h,
                                                                                                                                                                                    飛�[�&rg;0w�����$18�
p@�0y`8��6��8��@Z�t@B8;��Hp�Ԋ�xO����#��iH��ja��T�"893zH�̌<��}3<���7�!����q.C��4��n���9�f���
                                                                                          ��$[a�a�t]�#  X� ���P�X=B��A:)���Sp*
                                                                                                                              ]Z+c��TtF���
[    0s] ^
[    0s] 咱�w�-ה3�Zs
                    튮�T�u���n)����9m���E_
                                           :�@��pp���kCA\KE��38O
                                                                �Hj HI�
[    0s]    ����
                    (r�������)$� 8)�WH������P��Ue
���(JC!��(f�z�%7)@ؚ\�)$�(;7)���[k)$�n�R*�zE�S     i�Db�#4��ȑ���HӠ��`��@���yI�?�@yp,�P��yz�B�R�
[    0s]  at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 187.
[    0s] 
[    1s]  failed "build python-ujson.spec" at Sun Nov 19 22:11:59 UTC 2023.
[    1s] 

In my pitiful attempts to debug this (I'm sorry, I don't know perl), I put:

use Carp 'verbose';
$SIG{ __DIE__ } = sub { Carp::confess( @_ ) };

at the top of /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm to try and get a hint as to what this binary file that is supposed to be an XML is. It doesn't help me (beyond a suggestion that the XML may be a repomd.xml file) but I thought it might help you.

stacktrace ```bash $ build --dist tumbleweed logging output to /var/tmp/build-root/.build.log... [ 0s] Memory limit set to 8035034KB [ 0s] Using BUILD_ROOT=/var/tmp/build-root [ 0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386 [ 0s] [ 0s] [ 0s] manjaro-2212 started "build python-ujson.spec" at Sun Nov 19 21:56:00 UTC 2023. [ 0s] [ 0s] [ 0s] processing recipe /root/devel:languages:python/python-ujson/python-ujson.spec ... [ 0s] init_buildsystem --configdir /usr/lib/build/configs --cachedir /var/cache/build --repository zypp:// /root/devel:languages:python/python-ujson/python-ujson.spec ... [ 0s] It seems that there was an incomplete setup of /var/tmp/build-root. [ 0s] To be sure, we will build it again completely... [ 0s] Your build system is broken!! Shall I execute [ 0s] [ 0s] rm -rf -- /var/tmp/build-root/* [ 0s] [ 0s] y - yes, cleanup the build root [ 0s] N - No, abort build (default on enter) [ 0s] c - Continue anyway with this build root y [ 3s] [y/N/c] initializing /var/tmp/build-root/.srcfiles.cache ... [ 3s] /usr/lib/build/createzyppdeps --cachedir=/var/cache/build zypp://repo-non-oss [ 3s] Negative repeat count does nothing at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser/Expat.pm line 372. [ 3s] [ 3s] syntax error at line 1, column 0, byte 0: [ 3s] (�/��_Wm�ښRr<@G���0aUEѵ�Yk��v놱�2���\Qu�i�QT�8��Q�!$�n�*��� � ",��Z�ؽ�8�7�xpDX�B� v.Z�� �q���4ה�&\c���s��vO���;�? l�W ���!�2mv<"M@0x��`����u>����#F~83]|E~�2�O�䣇&����[�J��F �>09�?�nc���6��񿮆m��d�2j��W�ǖ��Qi���K��S��?��7 �z.��}��&��%�N�7Y�o�bO�mnQ�!� \S1���8@P�@q@{���\�vP5\��S�{���뽖O'�dQ=�TA�tN�k��t�6�|I:��G��Z����e�\\�_uЭ:���M���Jۃo�e6�n�d]p�lS��R��l��_�i(��.� ݲ�E�⁃��Z���@tg{ ��s��~J���ZKB�dcՓ,ЁU����0��y�O4y�/�_����Bō�#)$�� Ԃ�������P���� �H4]0�܇�Uܬ�)@j���Oj�5���ͧ�[:%��Zeݬu-����E_����E�b˶{L�7���p9�l����۫��٬�KB�`�t9u��e��(^�P��E�_{�?�Y���^��؂�9��ϱ��S�ĸ��x�pR҅Ӑ Ƃ�Gb�^B?��x�h, 飛�[�&rg;0w�����$18� p@�0y`8��6��8��@Z�t@B8;��Hp�Ԋ�xO����#��iH��ja��T�"893zH�̌<��}3<���7�!����q.C��4��n���9�f��� ��$[a�a�t]�# X� ���P�X=B��A:)���Sp* ]Z+c��TtF��� [ 3s] ^ [ 3s] 咱�w�-ה3�Zs 튮�T�u���n)����9m���E_ :�@��pp���kCA\KE��38O �Hj HI� [ 3s] ���� (r�������)$� 8)�WH������P��Ue ���(JC!��(f�z�%7)@ؚ\�)$�(;7)���[k)$�n�R*�zE�S i�Db�#4��ȑ���HӠ��`��@���yI�?�@yp,�P��yz�B�R� [ 3s] at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser/Expat.pm line 490. [ 3s] XML::Parser::Expat::parse(XML::Parser::Expat=HASH(0x561e9eae2670), GLOB(0x561e9eb0bb98)) called at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 189 [ 3s] eval {...} called at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 189 [ 3s] XML::Parser::parse(XML::Parser=HASH(0x561e9eb0b790), GLOB(0x561e9eb0bb98)) called at /usr/lib/build/Build/Rpmmd.pm line 57 [ 3s] Build::Rpmmd::generic_parse(HASH(0x561e9e3c0038), GLOB(0x561e9eb0bb98), CODE(0x561e9eac78a0), "addselfprovides", 1) called at /usr/lib/build/Build/Rpmmd.pm line 221 [ 3s] Build::Rpmmd::parse(GLOB(0x561e9eb0bb98), CODE(0x561e9eac78a0), "addselfprovides", 1) called at /usr/lib/build/createrepomddeps line 145 [ 3s] at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 12. [ 3s] XML::Parser::__ANON__("\x{a}syntax error at line 1, column 0, byte 0:\x{a}(\x{b5}/\x{fd}\x{a4}_W\x{1}\x{0}m\x{f0}\x{1}\x{da}\x{9a}Rr<\@"...) called at /usr/lib/perl5/5.38.0/Carp.pm line 291 [ 3s] Carp::croak("\x{a}syntax error at line 1, column 0, byte 0:\x{a}(\x{b5}/\x{fd}\x{a4}_W\x{1}\x{0}m\x{f0}\x{1}\x{da}\x{9a}Rr<\@"...) called at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser/Expat.pm line 490 [ 3s] XML::Parser::Expat::parse(XML::Parser::Expat=HASH(0x561e9eae2670), GLOB(0x561e9eb0bb98)) called at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 189 [ 3s] eval {...} called at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 189 [ 3s] XML::Parser::parse(XML::Parser=HASH(0x561e9eb0b790), GLOB(0x561e9eb0bb98)) called at /usr/lib/build/Build/Rpmmd.pm line 57 [ 3s] Build::Rpmmd::generic_parse(HASH(0x561e9e3c0038), GLOB(0x561e9eb0bb98), CODE(0x561e9eac78a0), "addselfprovides", 1) called at /usr/lib/build/Build/Rpmmd.pm line 221 [ 3s] Build::Rpmmd::parse(GLOB(0x561e9eb0bb98), CODE(0x561e9eac78a0), "addselfprovides", 1) called at /usr/lib/build/createrepomddeps line 145 [ 3s] at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 12. [ 3s] XML::Parser::__ANON__("\x{a}syntax error at line 1, column 0, byte 0:\x{a}(\x{b5}/\x{fd}\x{a4}_W\x{1}\x{0}m\x{f0}\x{1}\x{da}\x{9a}Rr<\@"...) called at /usr/lib/perl5/vendor_perl/5.38.0/x86_64-linux-thread-multi/XML/Parser.pm line 193 [ 3s] XML::Parser::parse(XML::Parser=HASH(0x561e9eb0b790), GLOB(0x561e9eb0bb98)) called at /usr/lib/build/Build/Rpmmd.pm line 57 [ 3s] Build::Rpmmd::generic_parse(HASH(0x561e9e3c0038), GLOB(0x561e9eb0bb98), CODE(0x561e9eac78a0), "addselfprovides", 1) called at /usr/lib/build/Build/Rpmmd.pm line 221 [ 3s] Build::Rpmmd::parse(GLOB(0x561e9eb0bb98), CODE(0x561e9eac78a0), "addselfprovides", 1) called at /usr/lib/build/createrepomddeps line 145 [ 3s] [ 3s] manjaro-2212 failed "build python-ujson.spec" at Sun Nov 19 21:56:03 UTC 2023. [ 3s] ```
bwoodsend commented 8 months ago

Huh, and after snooping the internet for the last week, I finally discover (3 minutes after posting this) #966 which leads me to bsc#1217269. 🙄

Shall we just close this off as duplicate then?

adrianschroeter commented 8 months ago

the fix is merged, new package will come this week.