<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36199</bug_id>
          
          <creation_ts>2019-02-28 16:30:20 +0300</creation_ts>
          <short_desc>Сломалась сборка пакета wine</short_desc>
          <delta_ts>2019-03-07 20:45:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>wine</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="AEN">aen</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>arei</cc>
    
    <cc>coffe92</cc>
    
    <cc>grenka</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>179059</commentid>
    <comment_count>0</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2019-02-28 16:30:20 +0300</bug_when>
    <thetext>Прошу починить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179060</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2019-02-28 16:39:32 +0300</bug_when>
    <thetext>По невыясненным причинам начались конфликты. Что изменилось, я пока не понял, потому что системные заголовки это glibc-devel, который не менялся.

In file included from ../../include/winsock2.h:47,
                 from wpcap.c:30:
../../include/winsock.h:1023:18: error: conflicting types for ‘accept’
 SOCKET WINAPI WS(accept)(SOCKET,struct WS(sockaddr)*,int*);
                  ^~~~~~
../../include/winsock.h:136:19: note: in definition of macro ‘WS’
 # define WS(x)    x
                   ^
In file included from /usr/include/pcap/socket.h:67,
                 from /usr/include/pcap/pcap.h:87,
                 from wpcap.c:24:
/usr/include/sys/socket.h:232:12: note: previous declaration of ‘accept’ was here
 extern int accept (int __fd, __SOCKADDR_ARG __addr,
            ^~~~~~
In file included from ../../include/winsock2.h:47,
                 from wpcap.c:30:
../../include/winsock.h:1024:15: error: conflicting types for ‘bind’
 int WINAPI WS(bind)(SOCKET,const struct WS(sockaddr)*,int);
               ^~~~
../../include/winsock.h:136:19: note: in definition of macro ‘WS’
 # define WS(x)    x
                   ^
In file included from /usr/include/pcap/socket.h:67,
                 from /usr/include/pcap/pcap.h:87,
                 from wpcap.c:24:
/usr/include/sys/socket.h:112:12: note: previous declaration of ‘bind’ was here
 extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179063</commentid>
    <comment_count>2</comment_count>
    <who name="Никита Ермаков">coffe92</who>
    <bug_when>2019-02-28 17:38:11 +0300</bug_when>
    <thetext>По всей видимости это произошло из-за обновления libpcap-devel. Попытаюсь понять, в чём проблема.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179068</commentid>
    <comment_count>3</comment_count>
      <attachid>8036</attachid>
    <who name="Никита Ермаков">coffe92</who>
    <bug_when>2019-02-28 19:27:45 +0300</bug_when>
    <thetext>Created attachment 8036
Add WS prefix in winsock2.h included from wpcap.c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179069</commentid>
    <comment_count>4</comment_count>
    <who name="Никита Ермаков">coffe92</who>
    <bug_when>2019-02-28 19:28:05 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; Created an attachment (id=8036) [details]
&gt; Add WS prefix in winsock2.h included from wpcap.c

На сколько я понял, в libpcap добавили pcap/socket.h в котором используются sys/socket.h и другие заголовочные файлы из glibc-devel из-за чего получаются конфликты в файлах подключаемых в wpcap.c. Один из способов решения проблемы это использования макросов WS которые добавляют префикс. В приложении патч который позволяет собрать wine. Но я не уверен, что это лучшее решение данной проблемы :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179074</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2019-02-28 20:41:18 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; (В ответ на комментарий №3)
&gt; &gt; Created an attachment (id=8036) [details] [details]
&gt; &gt; Add WS prefix in winsock2.h included from wpcap.c
&gt; 
&gt; На сколько я понял, в libpcap добавили pcap/socket.h в котором используются
&gt; sys/socket.h и другие заголовочные файлы из glibc-devel из-за чего получаются
&gt; конфликты в файлах подключаемых в wpcap.c. Один из способов решения проблемы
&gt; это использования макросов WS которые добавляют префикс. В приложении патч
&gt; который позволяет собрать wine. Но я не уверен, что это лучшее решение данной
&gt; проблемы :)
Да, всё верно, спасибо.

Если срочности нет, новая сборка будет в пятницу вечером в очередном релизе (для wine-vanilla и wine).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179075</commentid>
    <comment_count>6</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2019-02-28 20:50:42 +0300</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; (В ответ на комментарий №4)
&gt; &gt; (В ответ на комментарий №3)
&gt; &gt; &gt; Created an attachment (id=8036) [details] [details] [details]
&gt; &gt; &gt; Add WS prefix in winsock2.h included from wpcap.c
&gt; &gt; 
&gt; &gt; На сколько я понял, в libpcap добавили pcap/socket.h в котором используются
&gt; &gt; sys/socket.h и другие заголовочные файлы из glibc-devel из-за чего получаются
&gt; &gt; конфликты в файлах подключаемых в wpcap.c. Один из способов решения проблемы
&gt; &gt; это использования макросов WS которые добавляют префикс. В приложении патч
&gt; &gt; который позволяет собрать wine. Но я не уверен, что это лучшее решение данной
&gt; &gt; проблемы :)
&gt; Да, всё верно, спасибо.
&gt; 
&gt; Если срочности нет, новая сборка будет в пятницу вечером в очередном релизе
&gt; (для wine-vanilla и wine).

Отлично.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179145</commentid>
    <comment_count>7</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2019-03-02 19:45:25 +0300</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt;
&gt; 
&gt; Если срочности нет, новая сборка будет в пятницу вечером в очередном релизе
&gt; (для wine-vanilla и wine).

А в какую пятницу?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179147</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2019-03-02 23:27:55 +0300</bug_when>
    <thetext>(В ответ на комментарий №7)
&gt; (В ответ на комментарий №5)
&gt; &gt;
&gt; &gt; 
&gt; &gt; Если срочности нет, новая сборка будет в пятницу вечером в очередном релизе
&gt; &gt; (для wine-vanilla и wine).
&gt; 
&gt; А в какую пятницу?
В прошедшую :)

wine-vanilla уже в Сизифе:
2019-Mar-02 15:37:02 :: updated /gears/w/wine-vanilla.git branch `sisyphus&apos;
2019-Mar-02 15:37:50 :: saved /srpms/w/wine-vanilla.git branch `sisyphus&apos; as `old/sisyphus-task223464&apos;
2019-Mar-02 15:37:50 :: removed /srpms/w/wine-vanilla.git branch `sisyphus&apos;
2019-Mar-02 15:37:53 :: gears update OK
2019-Mar-02 15:37:53 :: task #223464 for sisyphus DONE

wine будет к началу недели, там патчи staging ещё не обновились.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179149</commentid>
    <comment_count>9</comment_count>
    <who name="AEN">aen</who>
    <bug_when>2019-03-03 00:26:00 +0300</bug_when>
    <thetext>Ждём!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179304</commentid>
    <comment_count>10</comment_count>
    <who name="Grigory Ustinov">grenka</who>
    <bug_when>2019-03-07 20:45:03 +0300</bug_when>
    <thetext>(In reply to comment #9)
&gt; Ждём!

 * Вт мар 05 2019 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 1:4.3.1-alt1
 - new version (4.3.1) with rpmgs script

С любовью, ваш Repository Human v2.0.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>8036</attachid>
            <date>2019-02-28 19:27:45 +0300</date>
            <delta_ts>2019-02-28 19:27:45 +0300</delta_ts>
            <desc>Add WS prefix in winsock2.h included from wpcap.c</desc>
            <filename>add-ws-prefix.patch</filename>
            <type>text/plain</type>
            <size>306</size>
            <attacher name="Никита Ермаков">coffe92</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL3dpbmUvZGxscy93cGNhcC93cGNhcC5jIGIvd2luZS9kbGxzL3dwY2FwL3dw
Y2FwLmMKaW5kZXggZTc5MDhjZDAzOC4uZjE2MzIzNTEzOCAxMDA2NDQKLS0tIGEvd2luZS9kbGxz
L3dwY2FwL3dwY2FwLmMKKysrIGIvd2luZS9kbGxzL3dwY2FwL3dwY2FwLmMKQEAgLTI0LDYgKzI0
LDcgQEAKICN1bmRlZiBTT0NLRVQKICN1bmRlZiBJTlZBTElEX1NPQ0tFVAogCisjZGVmaW5lIFVT
RV9XU19QUkVGSVgKICNpbmNsdWRlICJ3aW5zb2NrMi5oIgogI2luY2x1ZGUgIndpbmRlZi5oIgog
I2luY2x1ZGUgIndpbmJhc2UuaCIK
</data>

          </attachment>
      

    </bug>

</bugzilla>