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

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

    <bug>
          <bug_id>28712</bug_id>
          
          <creation_ts>2013-03-19 19:27:23 +0400</creation_ts>
          <short_desc>GLOBAL_DISK_PACKAGE_LISTS приоритетнее, чем GLOBAL_PKG_GROUPS</short_desc>
          <delta_ts>2013-04-11 19:26:47 +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>mkimage-profiles-desktop</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          <blocked>28710</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey V Turchin">zerg</reporter>
          <assigned_to name="Anton V. Boyarshinov">boyarsh</assigned_to>
          <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>138867</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2013-03-19 19:27:23 +0400</bug_when>
    <thetext>Пример плохих последствий:
На диск(GLOBAL_DISK_PACKAGE_LISTS) помещен пакет, зависящий от конкретно gcc4.1, после чего никакой более новый gcc в дистрибутив не попадает, т.к. в GLOBAL_PKG_GROUPS пакеты зависят правильно на просто gcc.

Нужно, чтоб пакеты GLOBAL_DISK_PACKAGE_LISTS обсчитывались в последнюю очередь, чтоб и gcc4.7 и gcc4.1 попали.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138871</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-03-19 23:31:36 +0400</bug_when>
    <thetext>JFYI -- проверил на mkimage-profiles-0.9.10, порядок:

$ head -20 pkg.in/{lists,groups}/build*
==&gt; pkg.in/lists/build &lt;==
rpm-build

==&gt; pkg.in/groups/build.directory &lt;==
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Name=Build tools
X-Alterator-PackageList=build
X-Alterator-Required=no
Categories=Server;

$ grep -A3 server-test conf.d/test.mk 
distro/server-test: distro/server-mini use/relname
        @$(call set,RELNAME,Test-Server)
        @$(call add,MAIN_PACKAGES,gcc4.1)
        @$(call add,MAIN_GROUPS,build)

$ make DEBUG=1 REPORT=1 server-test.iso
[...]
$ grep gcc4.[17].*RPMS.main ~/out/server-test-20130320-x86_64.iso.log \
| head -2 | cut -f1 -d&apos; &apos;
&apos;./gcc4.7-4.7.2-alt7.x86_64.rpm&apos;
&apos;./gcc4.1-4.1.2-alt11.x86_64.rpm&apos;

Обработка списков для main выполнена вот так: http://git.altlinux.org/people/mike/packages/?p=mkimage-profiles.git;a=blob;f=sub.in/main/Makefile;hb=HEAD</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138894</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2013-03-20 14:39:29 +0400</bug_when>
    <thetext>Речь о &quot;DISK_PACKAGES&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138900</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-03-20 15:29:18 +0400</bug_when>
    <thetext>Да-да, понимаю.  Это его эквивалент, т.к. RPMS.disk давно нет и смысла оставлять неассоциативное название было немного.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138901</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2013-03-20 15:38:42 +0400</bug_when>
    <thetext> Ща проверю, видимо, тут порядок неправильный:

IMAGE_PACKAGES = .base \
                 $(call list,$(LOCAL_BASE_PACKAGE_LISTS)) \
                 $(call list,$(GLOBAL_BASE_PACKAGE_LISTS)) \
                 $(call list,$(GLOBAL_DISK_PACKAGE_LISTS)) \
                 $(GLOBAL_DISK_PACKAGES) \
                 $(call list,$(shell  grep X-Alterator-PackageList /dev/null $(call group,$(GLOBAL_PKG_GROUPS)) | cut -d= -f2)) \
                 $(call tagged,$(GLOBAL_BASE_TAGS)) \
                 $(call tagged,$(GLOBAL_DISK_TAGS))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138907</commentid>
    <comment_count>5</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2013-03-20 16:26:12 +0400</bug_when>
    <thetext>Помогло
http://git.altlinux.org/people/zerg/packages/?p=mkimage-profiles-desktop.git;a=commitdiff;h=980bb56628c4a257853fb4a40f99e7158937a98a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>