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

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

    <bug>
          <bug_id>23667</bug_id>
          
          <creation_ts>2010-06-25 19:35:05 +0400</creation_ts>
          <short_desc>Прошу собрать python-apt</short_desc>
          <delta_ts>2010-10-26 15:31:58 +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>apt</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>distro-blocker</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>23155</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>boyarsh</cc>
    
    <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>kharpost</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>real.altlinux.org</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110115</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2010-06-25 19:35:05 +0400</bug_when>
    <thetext>Требуются биндинги для Python для работы с apt.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111105</commentid>
    <comment_count>1</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-10 15:17:37 +0400</bug_when>
    <thetext>Для начала нужно в libapt-devel добавить %_libdir/libapt-pkg-libc6.9-6.so

Иначе при запуске идёт ругань на недолинковку (нужные символы находятся в libapt-pkg-libc6.9-6.so.2).

Когда будет devel-библиотека, в apt/python/Makefile нужно будет добавить линковку.

А пока даже проверить не получается. Сборка модуля просто так не получается, я вытянул с Mandrake 10.X нужный файл, после чего и сборка, и установка выполняются:

http://git.altlinux.org/people/real/packages/apt.git?p=apt.git;a=commit;h=379ad80df1dc19cb06438e0f49edf4127dc4a0b8

Добавил в спек поддержку модуля Python:

http://git.altlinux.org/people/real/packages/apt.git?p=apt.git;a=commit;h=38766f936cf453278afd12c73e4662a90fdd94ae</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111106</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2010-08-10 16:15:29 +0400</bug_when>
    <thetext>(In reply to comment #1)
&gt; Для начала нужно в libapt-devel добавить %_libdir/libapt-pkg-libc6.9-6.so

%_libdir/libapt-pkg.so должно быть достаточно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111120</commentid>
    <comment_count>3</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-11 06:02:40 +0400</bug_when>
    <thetext>Понял. Проблема в --as-needed. Добавил -Wl,--no-as-needed в apt/python/Makefile.

Копаю дальше, там, похоже, и в apt/python/apt.py что-то не так...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111125</commentid>
    <comment_count>4</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-11 11:29:18 +0400</bug_when>
    <thetext>http://git.altlinux.org/people/real/packages/apt.git

Осталось в спеке сделать нужный релиз и поправить %changelog

Скрипт для проверки:

#!/usr/bin/python

import apt

apt.pkgInit()
cache = apt.pkgCacheFile()
cache.Open(apt.OpTextProgress(), 0)

pkg = cache.FindPkg(&apos;zsh&apos;)
print &quot;Pkg: &quot; + pkg.Name()

Кстати, неплохо было бы ещё парочку файлов добавить:

http://apt-rpm.org/python/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111128</commentid>
    <comment_count>5</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2010-08-11 13:21:55 +0400</bug_when>
    <thetext>Впрочем, в надобности apt-download лично я не очень уверен :)

А apt-get.py можно, например, и так:
http://git.altlinux.org/people/real/packages/apt.git?p=apt.git;a=commit;h=839f04a4367ab41234fd5a86bb20ca4d2cdd6aa2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111177</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-08-13 10:55:51 +0400</bug_when>
    <thetext>python-module-apt-0.5.15cnc6-alt1 -&gt; sisyphus:

* Thu Aug 12 2010 Eugeny A. Rostovtsev (REAL) &lt;real at altlinux&gt; 0.5.15cnc6-alt1
- Initial build for Sisyphus (ALT #23667)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>