* [newbies] Gear-sprmimport : Not a valid source rpm package
@ 2012-11-23 12:58 gBopHuk_alt
0 siblings, 1 reply; 7+ messages in thread
From: gBopHuk_alt @ 2012-11-23 12:58 UTC (permalink / raw)
To: Разработка
Куда можно глянуть по какой причине пакет не valid ?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [newbies] Gear-sprmimport : Not a valid source rpm package
@ 2012-11-23 17:30 ` gBopHuk_alt
2012-11-23 20:36 ` Michael Shigorin
2012-11-25 14:37 ` gBopHuk_alt
1 sibling, 1 reply; 7+ messages in thread
From: gBopHuk_alt @ 2012-11-23 17:30 UTC (permalink / raw)
To: devel@ where you _can_ ask
В Птн, 23/11/2012 в 16:00 +0300, Vladimir Didenko пишет:
> 23 ноября 2012 г., 16:58 пользователь gBopHuk_alt написал:
> Куда можно глянуть по какой причине пакет не valid ?
>
>
> В исходный код geaer-srcimport ;-) Там такое сообщение только в одном
> месте выдается
>
> filelist="$(rpm2cpio "$srpm" |cpio --list --quiet )" ||
> fatal "$srpm: Not a valid source rpm package"
>
> --
> С уважением,
> Владимир.
Странно
$rpm2cpio ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm |cpio --list
--quiet
batt_status.patch
configure_desktop_number.patch
lxpanel-0.5.0-customization.patch
lxpanel-0.5.6-clock.patch
lxpanel-0.5.6-volumeicon.patch
lxpanel-0.5.6.tar.gz
lxpanel-icons.patch
lxpanelx.spec
missing_glades.patch
redefine-alarm-variable.patch
volume_icon.tar.gz
всё вроде отлично проходит
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [newbies] Gear-sprmimport : Not a valid source rpm package
2012-11-23 17:30 ` gBopHuk_alt
@ 2012-11-23 20:36 ` Michael Shigorin
2012-11-23 20:43 ` Dmitry V. Levin
0 siblings, 1 reply; 7+ messages in thread
From: Michael Shigorin @ 2012-11-23 20:36 UTC (permalink / raw)
To: devel@ where you _can_ ask
On Fri, Nov 23, 2012 at 09:30:52PM +0400, gBopHuk_alt wrote:
> > filelist="$(rpm2cpio "$srpm" |cpio --list --quiet )" ||
> > fatal "$srpm: Not a valid source rpm package"
> $rpm2cpio ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm |cpio --list
> --quiet
1) echo $? непосредственно после этой команды что выдаёт?
2) там чуть выше есть ещё несколько проверок через &&.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [newbies] Gear-sprmimport : Not a valid source rpm package
2012-11-23 20:36 ` Michael Shigorin
@ 2012-11-23 20:43 ` Dmitry V. Levin
2012-11-24 9:12 ` gBopHuk_alt
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry V. Levin @ 2012-11-23 20:43 UTC (permalink / raw)
To: devel@ where you _can_ ask
[-- Attachment #1: Type: text/plain, Size: 793 bytes --]
On Fri, Nov 23, 2012 at 10:36:09PM +0200, Michael Shigorin wrote:
> On Fri, Nov 23, 2012 at 09:30:52PM +0400, gBopHuk_alt wrote:
> > > filelist="$(rpm2cpio "$srpm" |cpio --list --quiet )" ||
> > > fatal "$srpm: Not a valid source rpm package"
> > $rpm2cpio ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm |cpio --list
> > --quiet
>
> 1) echo $? непосредственно после этой команды что выдаёт?
> 2) там чуть выше есть ещё несколько проверок через &&.
Поскольку это сторонний srpm, у него может быть другой заголовок,
который не проходит проверку
header="$(od -A n -N 8 -t x1 -- "$srpm")" &&
[ -n "$header" -a -z "${header## ed ab ee db ?? ?? 00 01}" ]
Можете включить отладочный режим и посмотреть:
sh -efux gear-srpmimport lxpanelx-0.5.6-2.src.rpm
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [newbies] Gear-sprmimport : Not a valid source rpm package
2012-11-23 20:43 ` Dmitry V. Levin
@ 2012-11-24 9:12 ` gBopHuk_alt
2012-11-24 10:19 ` Dmitry V. Levin
0 siblings, 1 reply; 7+ messages in thread
From: gBopHuk_alt @ 2012-11-24 9:12 UTC (permalink / raw)
To: devel@ where you _can_ ask
В Сбт, 24/11/2012 в 00:43 +0400, Dmitry V. Levin пишет:
> sh -efux gear-srpmimport lxpanelx-0.5.6-2.src.rpm
sh -efux gear-srpmimport ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ . gear-sh-functions
++ . shell-error
+++ '[' -z '' ']'
+++ __included_shell_error=1
+++ PROG=gear-srpmimport
+++ quiet=
+++ verbose=
++ . shell-quote
+++ '[' -z '' ']'
+++ __included_shell_quote=1
+++ . shell-version
++++ '[' -z '' ']'
++++ __included_shell_version=1
++++ libshell_version=2
++++ __export_compatibility_string_quote_remove=1
+++ '[' -n 1 ']'
++ . shell-args
+++ '[' -z '' ']'
+++ __included_shell_args=1
+++ . shell-error
++++ '[' -z 1 ']'
+++ readonly getopt_common_opts=q,v,V,h
+++ getopt_common_opts=q,v,V,h
+++ readonly getopt_common_longopts=quiet,verbose,version,help
+++ getopt_common_longopts=quiet,verbose,version,help
++ PROG=gear-srpmimport
++ PROG_VERSION=1.7.3.1
++ gear_short_options=r:,t:,h,q,v,V
++
gear_long_options=no-compress,commit,bzip2,gzip,command,hasher,rpmbuild,update-spec,export-dir:,describe,rules:,tree-ish:,help,quiet,verbose,version
++ __cleanup_handler_name=
++ lineno=
++ rules=
++ : __gear_exported_vars
++ export __gear_exported_vars
++ workdir=
++ main_tree_id=
++ spec_name=
++ spec_version=
++ spec_release=
++ specfile=
++ pkg_name=
++ pkg_version=
++ pkg_release=
++ tag_dir=
++ tag_dir_default=
++ tag_list_lineno=
++ main_commit_sha1=
++ def_spec_pattern='*.spec'
++ spec_pattern='*.spec'
++ gear_config_option verbose verbose ''
++ local var_name=verbose opt_name=verbose def_val=
++ local subcmd val
++ subcmd=.srpmimport
++ '[' .srpmimport '!=' .gear ']'
+++ git config --get gear.srpmimport.verbose
++ val=
++ val=
+++ quote_shell ''
+++ local result
+++ quote_shell_variable result ''
+++ local __quote_shell_variable_var __quote_shell_variable_out
+++ __quote_shell_variable_var=result
+++ shift
+++ __quote_shell_variable_out=
+++ '[' -z '' ']'
++++ printf %s ''
++++ sed -e 's/[\"$\`\\]/\\&/g'
+++ __quote_shell_variable_out=
+++ eval 'result="$__quote_shell_variable_out"'
++++ result=
+++ printf %s ''
++ eval 'verbose=""'
+++ verbose=
++ '[' -z '' ']'
++ gear_config_option quiet quiet ''
++ local var_name=quiet opt_name=quiet def_val=
++ local subcmd val
++ subcmd=.srpmimport
++ '[' .srpmimport '!=' .gear ']'
+++ git config --get gear.srpmimport.quiet
++ val=
++ val=
+++ quote_shell ''
+++ local result
+++ quote_shell_variable result ''
+++ local __quote_shell_variable_var __quote_shell_variable_out
+++ __quote_shell_variable_var=result
+++ shift
+++ __quote_shell_variable_out=
+++ '[' -z '' ']'
++++ printf %s ''
++++ sed -e 's/[\"$\`\\]/\\&/g'
+++ __quote_shell_variable_out=
+++ eval 'result="$__quote_shell_variable_out"'
++++ result=
+++ printf %s ''
++ eval 'quiet=""'
+++ quiet=
++ '[' -z '' ']'
+ tmpdir=
+ spec_version=
+ git_commit_fast=
++ getopt -n gear-srpmimport -o h,q,v,V -l
branch:,import-only,no-unpack,no-untar,rules:,spec-pattern:,stdin,help,quiet,verbose,version -- ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ TEMP=' -- '\''../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm'\'''
+ eval set -- ' -- '\''../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm'\'''
++ set -- -- ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ branch_import=srpms
+ import_only=
+ no_unpack=
+ read_from_stdin=
+ gear_rules=.gear/rules
+ :
+ case "$1" in
+ shift
+ break
+ '[' -n '' ']'
+ '[' 1 -ge 1 ']'
++ git rev-parse --git-dir
+ GIT_DIR=.git
++ readlink -ev -- .git
+ GIT_DIR=/home/gbophuk/linux/git/lxpanelx/.git
+ export GIT_DIR
++ git symbolic-ref HEAD
+ branch_orig=refs/heads/master
++ git rev-parse --verify HEAD
++ :
+ head_orig=
+ unset GIT_INDEX_FILE
+ index_orig=/home/gbophuk/linux/git/lxpanelx/.git/index
+ index_already_recovered=
+ chdir_to_toplevel
+ local cdup
++ git rev-parse --show-cdup
+ cdup=
+ '[' -z '' ']'
++ /bin/pwd
+ saved_cwd=/home/gbophuk/linux/git/lxpanelx
+ install_cleanup_handler cleanup_handler
+ __cleanup_handler_name=cleanup_handler
+ trap __exit_handler EXIT
+ trap __signal_handler HUP PIPE INT QUIT TERM
++ mktemp -dt gear-srpmimport.XXXXXXXX
+ tmpdir=/tmp/.private/gbophuk/gear-srpmimport.1w6TvIuS
+ workdir=/tmp/.private/gbophuk/gear-srpmimport.1w6TvIuS/work
+ '[' '!' -f /home/gbophuk/linux/git/lxpanelx/.git/index ']'
+ git symbolic-ref HEAD refs/heads/srpms
+ '[' -n '' ']'
+ for REPLY in '"$@"'
+ import ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ local srpm=../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ shift
+ cd /home/gbophuk/linux/git/lxpanelx
+ verbose 'Processing ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm'
+ '[' -n '' ']'
+ return 0
++ readlink -ev -- ../../rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ srpm=/home/gbophuk/linux/rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ local header name verrel buildtime filelist changelogname changelog
author_name author_email
++ od -A n -N 8 -t x1
-- /home/gbophuk/linux/rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm
+ header=' ed ab ee db 03 00 00 00'
+ '[' -n ' ed ab ee db 03 00 00 00' -a -z ' ed ab ee db 03 00 00 00' ']'
+ fatal '/home/gbophuk/linux/rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm: Not
a valid source rpm package'
+ message '/home/gbophuk/linux/rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm:
Not a valid source rpm package'
+ printf '%s\n'
'gear-srpmimport: /home/gbophuk/linux/rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm: Not a valid source rpm package'
gear-srpmimport: /home/gbophuk/linux/rpms/src.rpm/lxpanelx-0.5.6-2.src.rpm: Not a valid source rpm package
+ exit 1
+ __exit_handler
+ __cleanup_handler 1
+ trap - EXIT
+ '[' -z cleanup_handler ']'
+ cleanup_handler 1
+ '[' -n /tmp/.private/gbophuk/gear-srpmimport.1w6TvIuS ']'
+ cd /home/gbophuk/linux/git/lxpanelx
+ '[' -z '' ']'
+ '[' -f /tmp/.private/gbophuk/gear-srpmimport.1w6TvIuS/index ']'
+ rm -f /home/gbophuk/linux/git/lxpanelx/.git/index
+ rm -rf -- /tmp/.private/gbophuk/gear-srpmimport.1w6TvIuS
+ '[' refs/heads/master = refs/heads/srpms ']'
+ git symbolic-ref HEAD refs/heads/master
+ exit 1
Как я понял как раз на HEAD ругается. Его теперь вручную распаковывать ?
А вроде ж на wiki было писано что gear-srmpimport должён упростить
разворачивание gear-репа для не родных src.rpm?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [newbies] Gear-sprmimport : Not a valid source rpm package
2012-11-24 9:12 ` gBopHuk_alt
@ 2012-11-24 10:19 ` Dmitry V. Levin
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2012-11-24 10:19 UTC (permalink / raw)
To: devel@ where you _can_ ask
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
On Sat, Nov 24, 2012 at 01:12:05PM +0400, gBopHuk_alt wrote:
> В Сбт, 24/11/2012 в 00:43 +0400, Dmitry V. Levin пишет:
> > sh -efux gear-srpmimport lxpanelx-0.5.6-2.src.rpm
[...]
> + header=' ed ab ee db 03 00 00 00'
В конце заголовка вместо 00 ожидался 01.
Очевидно, изготовители этого srpm перестали устанавливать в своих
заголовках RPMLEAD_SOURCE. Теперь они отличают src.rpm от прочих типов
*.rpm по наличию тэга RPMTAG_SOURCERPM. Надо будет доработать
gear-srpmimport.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [newbies] Gear-sprmimport : Not a valid source rpm package
2012-11-23 17:30 ` gBopHuk_alt
@ 2012-11-25 14:37 ` gBopHuk_alt
1 sibling, 0 replies; 7+ messages in thread
From: gBopHuk_alt @ 2012-11-25 14:37 UTC (permalink / raw)
To: devel@ where you _can_ ask
Всем спасибо с gear-srpmimport всё ясно =))) Кстати пакет был от
Mandriva 2011
Собрал по pkgbuild от Arch из репозитория AUR. Толковая инструкция этот
pkgbuild - спек влёт написал =))) Можно задуматься о genspec from
pkgbuild
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-11-25 14:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-23 12:58 [newbies] Gear-sprmimport : Not a valid source rpm package gBopHuk_alt
2012-11-23 17:30 ` gBopHuk_alt
2012-11-23 20:36 ` Michael Shigorin
2012-11-23 20:43 ` Dmitry V. Levin
2012-11-24 9:12 ` gBopHuk_alt
2012-11-24 10:19 ` Dmitry V. Levin
2012-11-25 14:37 ` gBopHuk_alt
devel@ where you _can_ ask
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
public-inbox-index devel-newbies
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git