Сборка RPM

Аватара пользователя
Zeffanyx
Сообщения: 1149
Зарегистрирован: 12 сен 2011, 14:25
Operating system: Rosa Fresh R10, OpenMandriva Lx 3.03
Откуда: Санкт-Петербург

Re: Сборка RPM

Сообщение Zeffanyx » 02 ноя 2017, 18:39

Как мне кажется, я довольно близко уже подошёл к цели. На данный момент не проходит сборка hawkey, а именно сыпятся ошибки при тестировании собранной библиотеки. Спек я прикладываю.

Очень хотелось бы победить эту проблему!

Код: Выделить всё

Выполняется(%check): /bin/sh -e /var/tmp/rpm-tmp.13025
+ umask 022
+ cd /home/zeffanyx/rpmbuild/BUILD
+ cd hawkey-hawkey-0.6.4-1
+ '[' 1 -eq 1 ']'
+ export LD_LIBRARY_PATH=/home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64
+ LD_LIBRARY_PATH=/home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64
+ pushd ./build
~/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/build ~/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1
+ make ARGS=-V test
Running tests...
/usr/bin/ctest --force-new-ctest-process -V
UpdateCTestConfiguration  from :/home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/build/DartConfiguration.tcl
Test project /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: test_main

1: Test command: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/build/tests/test_main "/home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/repos/"
1: Test timeout computed to be: 9.99988e+06
1: Tests using directory: /tmp/hawkeyWpBQup
1: Running suite(s): Sack
1:  iutil
1:  util
1:  Reldep
1:  Repo
1:  Package
1:  PackageList
1:  PackageSet
1:  Query
1:  Selector
1:  Subject
1:  Goal
1:  Advisory
1:  AdvisoryPkg
1:  AdvisoryRef
1: 95%: Checks: 200, Failures: 9, Errors: 0
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_sack.c:85:F:Core:test_list_arches:0: Assertion 'arches[3]=="i686"' failed: arches[3]=="i586", "i686"=="i686"
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:123:F:Core:test_goal_selector_upgrade:0: Assertion 'size_and_free(hy_goal_list_upgrades(goal))==u' failed: size_and_free(hy_goal_list_upgrades(goal))==0, u==2
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:481:F:Core:test_goal_upgrade_all:0: Assertion 'hy_package_get_name(pkg)==name' failed: hy_package_get_name(pkg)=="fool", name=="dog"
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:123:F:Core:test_goal_distupgrade_all_keep_arch:0: Assertion 'size_and_free(hy_goal_list_upgrades(goal))==u' failed: size_and_free(hy_goal_list_upgrades(goal))==4, u==5
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:124:F:ModifiesSackState:test_goal_installonly:0: Assertion 'size_and_free(hy_goal_list_erasures(goal))==e' failed: size_and_free(hy_goal_list_erasures(goal))==0, e==1
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:479:F:ModifiesSackState:test_goal_installonly_upgrade_all:0: assert_list_names(): list too short
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:827:F:ModifiesSackState:test_goal_upgrade_disabled_repo:0: Assertion 'size_and_free(hy_goal_list_upgrades(goal)) == 5' failed
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:1088:F:Greedy:test_goal_run_all:0: Assertion 'solutions->solutions == 2' failed
1: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:122:F:Greedy:test_goal_install_weak_deps:0: Assertion 'size_and_free(hy_goal_list_installs(goal))==i' failed: size_and_free(hy_goal_list_installs(goal))==1, i==2
1/2 Test #1: test_main ........................***Failed    0.31 sec
test 2
    Start 2: test_valgrind

2: Test command: /usr/bin/valgrind "--error-exitcode=1" "--leak-check=full" "/home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/build/tests/test_main" "/home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/repos/"
2: Environment variables: 
2:  CK_FORK=no
2: Test timeout computed to be: 9.99988e+06
2: ==4296== Memcheck, a memory error detector
2: ==4296== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
2: ==4296== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
2: ==4296== Command: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/build/tests/test_main /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/repos/
2: ==4296== 
2: Tests using directory: /tmp/hawkeybh7jlQ
2: Running suite(s): Sack
2:  iutil
2:  util
2:  Reldep
2:  Repo
2:  Package
2:  PackageList
2:  PackageSet
2:  Query
2:  Selector
2:  Subject
2:  Goal
2:  Advisory
2:  AdvisoryPkg
2:  AdvisoryRef
2: 95%: Checks: 200, Failures: 9, Errors: 0
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_sack.c:85:F:Core:test_list_arches:0: Assertion 'arches[3]=="i686"' failed: arches[3]=="i586", "i686"=="i686"
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:123:F:Core:test_goal_selector_upgrade:0: Assertion 'size_and_free(hy_goal_list_upgrades(goal))==u' failed: size_and_free(hy_goal_list_upgrades(goal))==0, u==2
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:481:F:Core:test_goal_upgrade_all:0: Assertion 'hy_package_get_name(pkg)==name' failed: hy_package_get_name(pkg)=="fool", name=="dog"
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:123:F:Core:test_goal_distupgrade_all_keep_arch:0: Assertion 'size_and_free(hy_goal_list_upgrades(goal))==u' failed: size_and_free(hy_goal_list_upgrades(goal))==4, u==5
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:124:F:ModifiesSackState:test_goal_installonly:0: Assertion 'size_and_free(hy_goal_list_erasures(goal))==e' failed: size_and_free(hy_goal_list_erasures(goal))==0, e==1
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:479:F:ModifiesSackState:test_goal_installonly_upgrade_all:0: assert_list_names(): list too short
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:827:F:ModifiesSackState:test_goal_upgrade_disabled_repo:0: Assertion 'size_and_free(hy_goal_list_upgrades(goal)) == 5' failed
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:1088:F:Greedy:test_goal_run_all:0: Assertion 'solutions->solutions == 2' failed
2: /home/zeffanyx/rpmbuild/BUILD/hawkey-hawkey-0.6.4-1/tests/test_goal.c:122:F:Greedy:test_goal_install_weak_deps:0: Assertion 'size_and_free(hy_goal_list_installs(goal))==i' failed: size_and_free(hy_goal_list_installs(goal))==1, i==2
2: ==4296== 
2: ==4296== HEAP SUMMARY:
2: ==4296==     in use at exit: 252,552 bytes in 258 blocks
2: ==4296==   total heap usage: 56,615 allocs, 56,357 frees, 30,172,799 bytes allocated
2: ==4296== 
2: ==4296== 16 bytes in 1 blocks are definitely lost in loss record 64 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E41442: ??? (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40B612: test_goal_installonly_upgrade_all (test_goal.c:789)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 32 bytes in 1 blocks are definitely lost in loss record 119 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E44F59: package_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x4E48EEB: hy_query_run (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40C134: get_available_pkg (test_goal.c:61)
2: ==4296==    by 0x40C1E0: test_goal_run_all (test_goal.c:1082)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 98 (56 direct, 42 indirect) bytes in 1 blocks are definitely lost in loss record 174 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E4C102: hy_selector_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40950B: test_goal_install_weak_deps (test_goal.c:316)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 104 (64 direct, 40 indirect) bytes in 1 blocks are definitely lost in loss record 176 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x4E42110: hy_goal_clone (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40955F: test_goal_install_weak_deps (test_goal.c:320)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 105 (56 direct, 49 indirect) bytes in 1 blocks are definitely lost in loss record 177 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E4C102: hy_selector_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40BD30: test_goal_selector_upgrade (test_goal.c:379)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 256 bytes in 1 blocks are definitely lost in loss record 212 of 255
2: ==4296==    at 0x4C2AED6: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7F50: solv_realloc (util.c:50)
2: ==4296==    by 0x4E49AEC: hy_sack_list_arches (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x4181C9: test_list_arches (test_sack.c:81)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 352 (16 direct, 336 indirect) bytes in 1 blocks are definitely lost in loss record 219 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x40C216: solutions_create (test_goal.c:1048)
2: ==4296==    by 0x40C216: test_goal_run_all (test_goal.c:1086)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 368 (16 direct, 352 indirect) bytes in 1 blocks are definitely lost in loss record 220 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E41442: ??? (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40BACD: test_goal_upgrade_all (test_goal.c:500)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 3,291 (64 direct, 3,227 indirect) bytes in 1 blocks are definitely lost in loss record 241 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40C1CE: test_goal_run_all (test_goal.c:1081)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 3,291 (64 direct, 3,227 indirect) bytes in 1 blocks are definitely lost in loss record 242 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x409530: test_goal_install_weak_deps (test_goal.c:318)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 5,728 (64 direct, 5,664 indirect) bytes in 1 blocks are definitely lost in loss record 243 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40BD3C: test_goal_selector_upgrade (test_goal.c:380)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 5,770 (64 direct, 5,706 indirect) bytes in 1 blocks are definitely lost in loss record 244 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40BA3B: test_goal_upgrade_all (test_goal.c:489)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 5,770 (64 direct, 5,706 indirect) bytes in 1 blocks are definitely lost in loss record 245 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40B334: test_goal_upgrade_disabled_repo (test_goal.c:823)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 5,884 (64 direct, 5,820 indirect) bytes in 1 blocks are definitely lost in loss record 246 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40CC2A: test_goal_installonly (test_goal.c:768)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 5,884 (64 direct, 5,820 indirect) bytes in 1 blocks are definitely lost in loss record 247 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40B5C6: test_goal_installonly_upgrade_all (test_goal.c:781)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 5,905 (64 direct, 5,841 indirect) bytes in 1 blocks are definitely lost in loss record 248 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E420D7: hy_goal_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x40A60D: test_goal_distupgrade_all_keep_arch (test_goal.c:912)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== 135,548 (120 direct, 135,428 indirect) bytes in 1 blocks are definitely lost in loss record 255 of 255
2: ==4296==    at 0x4C2CC68: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
2: ==4296==    by 0x52A7FDA: solv_calloc (util.c:73)
2: ==4296==    by 0x4E4A50D: hy_sack_create (in /home/zeffanyx/rpmbuild/BUILDROOT/hawkey-0.6.4-1-rosa2016.1.x86_64-buildroot/usr/lib64/libhawkey.so.2)
2: ==4296==    by 0x4181BE: test_list_arches (test_sack.c:79)
2: ==4296==    by 0x505A28A: ??? (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x505A564: srunner_run (in /usr/lib64/libcheck.so.0.0.0)
2: ==4296==    by 0x406A85: main (test_main.c:94)
2: ==4296== 
2: ==4296== LEAK SUMMARY:
2: ==4296==    definitely lost: 1,144 bytes in 17 blocks
2: ==4296==    indirectly lost: 177,258 bytes in 220 blocks
2: ==4296==      possibly lost: 0 bytes in 0 blocks
2: ==4296==    still reachable: 74,150 bytes in 21 blocks
2: ==4296==         suppressed: 0 bytes in 0 blocks
2: ==4296== Reachable blocks (those to which a pointer was found) are not shown.
2: ==4296== To see them, rerun with: --leak-check=full --show-leak-kinds=all
2: ==4296== 
2: ==4296== For counts of detected and suppressed errors, rerun with: -v
2: ==4296== ERROR SUMMARY: 17 errors from 17 contexts (suppressed: 0 from 0)
2/2 Test #2: test_valgrind ....................***Failed    3.24 sec

0% tests passed, 2 tests failed out of 2

Total Test time (real) =   3.56 sec

The following tests FAILED:
          1 - test_main (Failed)
          2 - test_valgrind (Failed)
Errors while running CTest
make: *** [Makefile:87: test] Error 8
error: Неверный код возврата из /var/tmp/rpm-tmp.13025 (%check)


Ошибки сборки пакетов:
    Неверный код возврата из /var/tmp/rpm-tmp.13025 (%check)
Вложения
libsolv.spec.txt
(9.85 КБ) 178 скачиваний
hawkey.spec.txt
(6.14 КБ) 211 скачиваний

KumurTash
Сообщения: 3
Зарегистрирован: 24 апр 2017, 20:50
Operating system: ROSA Fresh R9, Windows CE,XP,7,8,8.1,10, Android 4.3, 5.1, Альт Линукс СПТ 7.0

Re: Сборка RPM

Сообщение KumurTash » 19 ноя 2017, 18:38

собрал свой первый пакет
https://abf.io/kumurtash/dosbox-x
Прорвете пожалуйста. все ли там правильно оформлено?
И как теперь его можно добавить в основной репозиторий?

Аватара пользователя
Алзим
Сообщения: 4198
Зарегистрирован: 18 июн 2015, 11:57
Operating system: ROSA Desktop Fresh R10
Откуда: Интернет

Re: Сборка RPM

Сообщение Алзим » 22 ноя 2017, 01:04

KumurTash писал(а):собрал свой первый пакет
https://abf.io/kumurtash/dosbox-x
Прорвете пожалуйста. все ли там правильно оформлено?
И как теперь его можно добавить в основной репозиторий?
А ты проверял? Оно работает?

KumurTash
Сообщения: 3
Зарегистрирован: 24 апр 2017, 20:50
Operating system: ROSA Fresh R9, Windows CE,XP,7,8,8.1,10, Android 4.3, 5.1, Альт Линукс СПТ 7.0

Re: Сборка RPM

Сообщение KumurTash » 22 ноя 2017, 08:46

Алзим писал(а):А ты проверял? Оно работает?
Отлично работает, даже на работе поставил для запуска dos программы, требующей в config.sys значение FILES=250

Аватара пользователя
Алзим
Сообщения: 4198
Зарегистрирован: 18 июн 2015, 11:57
Operating system: ROSA Desktop Fresh R10
Откуда: Интернет

Re: Сборка RPM

Сообщение Алзим » 22 ноя 2017, 13:38

А Эпоха почему такая большая?
Можно её как-нибудь уменьшить, а лучше убрать совсем?

Аватара пользователя
Pulfer
Сообщения: 3358
Зарегистрирован: 15 фев 2012, 01:57
Operating system: ROSA Desktop Fresh 2016.1 i586
Откуда: Vladivostok, Russia

Re: Сборка RPM

Сообщение Pulfer » 22 ноя 2017, 14:19

KumurTash писал(а):собрал свой первый пакет
https://abf.io/kumurtash/dosbox-x
Прорвете пожалуйста. все ли там правильно оформлено?
И как теперь его можно добавить в основной репозиторий?
В целом нормально, но тэг Epoch используется для других случаев - когда надо, чтобы пакет с низкими значениями Version-Release поставился поверх пакета с высокими. Скажем, у нас был пакет noname, у которого была версия 2015, потом 2016, потом 2017. А потом автор решил изменить схему нумерации и выпустил версию 1.0. Т.к. 1.0 меньше, чем 2017, то новый пакет не установился бы поверх старого. Тут и используется тэг Epoch (по умолчанию равен 0). Если добавить в спек "Epoch: 1", то пакет с версией 1.0 будет считаться новее, чем с версией 2017.

Я поправил немного спек и добавил патч, который устранял ошибки сборки (чтобы не использовать "-Wno-format-security"): https://abf.rosalinux.ru/import/dosbox-x

Сейчас пакет соберётся в Контриб.
Intel Core i7-6700 / 8 Gb RAM / GeForce GTX 750 Ti / Rosa 2016.1 i586

KumurTash
Сообщения: 3
Зарегистрирован: 24 апр 2017, 20:50
Operating system: ROSA Fresh R9, Windows CE,XP,7,8,8.1,10, Android 4.3, 5.1, Альт Линукс СПТ 7.0

Re: Сборка RPM

Сообщение KumurTash » 22 ноя 2017, 15:34

Pulfer, спасибо. Про Epoch понял.
Я тут еще собрал incron https://abf.rosalinux.ru/kumurtash/incron
Клонировал его из import, но в https://abf.rosalinux.ru/import/incron нет ветки rosa2016.1
Пул реквест сделать поэтому некуда. Не подскажите что делать с этим пакетом?
Incron использую для организации печати из того же DosBox-x, все работает.

Аватара пользователя
Pulfer
Сообщения: 3358
Зарегистрирован: 15 фев 2012, 01:57
Operating system: ROSA Desktop Fresh 2016.1 i586
Откуда: Vladivostok, Russia

Re: Сборка RPM

Сообщение Pulfer » 23 ноя 2017, 05:04

KumurTash писал(а):Pulfer, спасибо. Про Epoch понял.
Я тут еще собрал incron https://abf.rosalinux.ru/kumurtash/incron
Клонировал его из import, но в https://abf.rosalinux.ru/import/incron нет ветки rosa2016.1
Пул реквест сделать поэтому некуда. Не подскажите что делать с этим пакетом?
Я его вручную частично смержил, а частично доделал (чтобы использовал systemd). Сейчас собирается в Contrib. Ветки не было, потому что когда-то его кто-то посчитал ненужным и убрал из репозиториев. Соответственно, для последующих платформ ветка не создавалась.
Intel Core i7-6700 / 8 Gb RAM / GeForce GTX 750 Ti / Rosa 2016.1 i586

Ответить