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

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

    <bug>
          <bug_id>24489</bug_id>
          
          <creation_ts>2010-11-02 19:28:39 +0300</creation_ts>
          <short_desc>Не хватает публичных define&apos;ов в include/linux/xattr.h ?</short_desc>
          <delta_ts>2011-07-02 02:15:29 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>glibc-kernheaders</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Slava Dubrovskiy">dubrsl</reporter>
          <assigned_to name="Kirill A. Shutemov">kas</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>wrar</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114737</commentid>
    <comment_count>0</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2010-11-02 19:28:39 +0300</bug_when>
    <thetext>Не собирается libcap-ng с диагностикой:

make[3]: Entering directory `/usr/src/RPM/BUILD/libcap-ng-0.6.4/src&apos;
/bin/sh ../libtool --tag=CC   --mode=compile i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I..   -fPIC -DPIC -W -Wall -Wshadow -Wformat -Wundef -D_GNU_SOURCE -pipe -Wall -O2 -march=i586 -mtune=i686 -c -o cap-ng.lo cap-ng.c
libtool: compile:  i586-alt-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -fPIC -DPIC -W -Wall -Wshadow -Wformat -Wundef -D_GNU_SOURCE -pipe -Wall -O2 -march=i586 -mtune=i686 -c cap-ng.c  -fPIC -DPIC -o .libs/cap-ng.o
cap-ng.c: In function &apos;get_bounding_set&apos;:
cap-ng.c:227: warning: signed and unsigned type in conditional expression
cap-ng.c: In function &apos;capng_get_caps_fd&apos;:
cap-ng.c:325: error: &apos;XATTR_NAME_CAPS&apos; undeclared (first use in this function)
cap-ng.c:325: error: (Each undeclared identifier is reported only once
cap-ng.c:325: error: for each function it appears in.)
cap-ng.c: In function &apos;capng_apply_caps_fd&apos;:
cap-ng.c:539: error: &apos;XATTR_NAME_CAPS&apos; undeclared (first use in this function)
make[3]: *** [cap-ng.lo] Error 1
make[3]: Leaving directory `/usr/src/RPM/BUILD/libcap-ng-0.6.4/src&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/libcap-ng-0.6.4/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/libcap-ng-0.6.4&apos;
make: *** [all] Error 2
make: Leaving directory `/usr/src/RPM/BUILD/libcap-ng-0.6.4&apos;
error: Bad exit status from /usr/src/tmp/rpm-tmp.34470 (%build)


Расследование показало, что согласно патча http://kerneltrap.org/mailarchive/linux-kernel/2010/4/21/4561254
XATTR_NAME_CAPS переехал из include/linux/capability.h в include/linux/xattr.h


Но в нашем include/linux/xattr.h ничего подобного нет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114738</commentid>
    <comment_count>1</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2010-11-02 19:31:12 +0300</bug_when>
    <thetext>Причем include/linux/xattr.h из тега v2.6.36 нормальный.

http://git.altlinux.org/people/kas/packages/?p=glibc-kernheaders.git;a=blob;f=include/linux/xattr.h;h=f1e5bde4b35acbab2a0a5a525d59dde6e017cc61;hb=f6f94e2ab1b33f0082ac22d71f66385a60d8157f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114742</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2010-11-02 20:44:14 +0300</bug_when>
    <thetext>Так оно там засунуто в #ifdef  __KERNEL__ - видимо, предполагалось, что нормальному userspace это не нужно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114746</commentid>
    <comment_count>3</comment_count>
    <who name="Kirill A. Shutemov">kas</who>
    <bug_when>2010-11-02 20:53:37 +0300</bug_when>
    <thetext>http://git.altlinux.org/people/kas/packages/?p=glibc-kernheaders.git;a=commit;h=af4f136056c984b0aa67feed7d3170b958370b2f

По коммиту не видно, что это сделано намерено. Посмотрю подробней.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114808</commentid>
    <comment_count>4</comment_count>
    <who name="Kirill A. Shutemov">kas</who>
    <bug_when>2010-11-03 15:50:58 +0300</bug_when>
    <thetext>http://lkml.org/lkml/2010/10/12/136

Предлагают таскать этот define с собой. Если у вас есть иные предложения по теме, свяжитесь с апстримом.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114846</commentid>
    <comment_count>5</comment_count>
    <who name="Kirill A. Shutemov">kas</who>
    <bug_when>2010-11-05 12:16:35 +0300</bug_when>
    <thetext>Ok, апстрим обещает патч на эту тему. Как только будет -- приложу.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114862</commentid>
    <comment_count>6</comment_count>
    <who name="Slava Dubrovskiy">dubrsl</who>
    <bug_when>2010-11-05 14:53:09 +0300</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; Ok, апстрим обещает патч на эту тему. Как только будет -- приложу.
Вообщем-то они там сами не могут договориться - http://lkml.org/lkml/2010/11/3/295

Вообщем сделали уже новую версию libcap-ng-0.6.5-alt1 и она нормально собирается и уже в сизифе.
Вы были абсолютно правы, когда порекомендовали обратиться в апстрим.
Не очень понял почему REOPENED,т.к. моя проблема с libcap-ng решилась.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114866</commentid>
    <comment_count>7</comment_count>
    <who name="Kirill A. Shutemov">kas</who>
    <bug_when>2010-11-05 15:38:20 +0300</bug_when>
    <thetext>(In reply to comment #6)
&gt; (В ответ на комментарий №5)
&gt; Не очень понял почему REOPENED,т.к. моя проблема с libcap-ng решилась.

Пусть будет напоминалка для меня посмотреть в тот тред ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122776</commentid>
    <comment_count>8</comment_count>
    <who name="Kirill A. Shutemov">kas</who>
    <bug_when>2011-07-02 02:15:29 +0400</bug_when>
    <thetext>I&apos;m not going to maintain glibc-kernheaders anymore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>