Re: is it possible to download a spec file only using yum?
On 02/21/13 10:39, Matthew Miller wrote: > On Wed, Feb 20, 2013 at 07:16:08PM -0600, Ranjan Maitra wrote: >> I was wondering if it is possible to download a spec file using yum >> or rpm only (without downloading the rpm)? > > No, but there's a better way! All of our spec files are available in git, > and the "fedpkg" command is a nice wrapper around access to the repository. > So: > > $ sudo yum install fedpkg > [...] > $ fedpkg clone firefox > Cloning into 'firefox'... > remote: Counting objects: 3234, done. > remote: Compressing objects: 100% (1979/1979), done. > remote: Total 3234 (delta 1702), reused 2424 (delta 1210) > Receiving objects: 100% (3234/3234), 741.50 KiB | 313 KiB/s, done. > Resolving deltas: 100% (1702/1702), done. […] fedpkg --user poma -v clone firefox Cloning ssh://p...@pkgs.fedoraproject.org/firefox Running git clone ssh://p...@pkgs.fedoraproject.org/firefox directly on the tty Cloning into 'firefox'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Could not execute clone: Command '['git', 'clone', 'ssh://p...@pkgs.fedoraproject.org/firefox']' returned non-zero exit status 128 -- In contrast: fedpkg -v clone -a firefox Cloning git://pkgs.fedoraproject.org/firefox Running git clone git://pkgs.fedoraproject.org/firefox directly on the tty Cloning into 'firefox'... remote: Counting objects: 3234, done. remote: Compressing objects: 100% (1979/1979), done. remote: Total 3234 (delta 1704), reused 2424 (delta 1210) Receiving objects: 100% (3234/3234), 708.87 KiB | 372 KiB/s, done. Resolving deltas: 100% (1704/1704), done. -- Shouldn't the default be an '-a'(anonymous) check out via git? Cheers, poma -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On Thu, Feb 21, 2013 at 6:36 PM, poma wrote: > > Shouldn't the default be an '-a'(anonymous) check out via git? > I think it should too. Maybe there are good reasons behind not making so. Meanwhile you can do $ yumdownloader --source pkgname $ deco pkgname*.src.rpm This should get you the package source contents. Orcan -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
在 2013-2-22 AM8:22,"Orcan Ogetbil" 写道: > > On Thu, Feb 21, 2013 at 6:36 PM, poma wrote: > > > > Shouldn't the default be an '-a'(anonymous) check out via git? > > > > I think it should too. Maybe there are good reasons behind not making so. > Meanwhile you can do > $ yumdownloader --source pkgname > $ deco pkgname*.src.rpm > > This should get you the package source contents. That would be nice. If I want to get a spec file and git clone a lot of things Damn... -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On 02/22/13 01:21, Orcan Ogetbil wrote: > On Thu, Feb 21, 2013 at 6:36 PM, poma wrote: >> >> Shouldn't the default be an '-a'(anonymous) check out via git? >> > > I think it should too. Maybe there are good reasons behind not making so. > Meanwhile you can do > $ yumdownloader --source pkgname > $ deco pkgname*.src.rpm > > This should get you the package source contents. > > Orcan > deco grub2-2.00-16.fc19.src.rpm 13020 blocks *** glibc detected *** deco: free(): invalid pointer: 0x0031a9610a28 *** === Backtrace: = /lib64/libc.so.6[0x31a967ca8e] deco[0x4017f1] deco[0x400ed5] /lib64/libc.so.6(__libc_start_main+0xf5)[0x31a9621a05] deco[0x400f8d] === Memory map: 0040-00404000 r-xp 09:1e 1454894 /usr/bin/deco 00603000-00604000 r--p 3000 09:1e 1454894 /usr/bin/deco 00604000-00605000 rw-p 4000 09:1e 1454894 /usr/bin/deco 006c-00702000 rw-p 00:00 0 [heap] 31a920-31a922 r-xp 09:1e 1446220 /usr/lib64/ld-2.16.so 31a942-31a9421000 r--p 0002 09:1e 1446220 /usr/lib64/ld-2.16.so 31a9421000-31a9422000 rw-p 00021000 09:1e 1446220 /usr/lib64/ld-2.16.so 31a9422000-31a9423000 rw-p 00:00 0 31a960-31a97ad000 r-xp 09:1e 1446243 /usr/lib64/libc-2.16.so 31a97ad000-31a99ad000 ---p 001ad000 09:1e 1446243 /usr/lib64/libc-2.16.so 31a99ad000-31a99b1000 r--p 001ad000 09:1e 1446243 /usr/lib64/libc-2.16.so 31a99b1000-31a99b3000 rw-p 001b1000 09:1e 1446243 /usr/lib64/libc-2.16.so 31a99b3000-31a99b8000 rw-p 00:00 0 31aaa0-31aaa15000 r-xp 09:1e 1446693 /usr/lib64/libgcc_s-4.7.2-20121109.so.1 31aaa15000-31aac14000 ---p 00015000 09:1e 1446693 /usr/lib64/libgcc_s-4.7.2-20121109.so.1 31aac14000-31aac15000 r--p 00014000 09:1e 1446693 /usr/lib64/libgcc_s-4.7.2-20121109.so.1 31aac15000-31aac16000 rw-p 00015000 09:1e 1446693 /usr/lib64/libgcc_s-4.7.2-20121109.so.1 7fe5999bd000-7fe5999c rw-p 00:00 0 7fe599a1b000-7fe599a1d000 rw-p 00:00 0 7fffa266e000-7fffa268f000 rw-p 00:00 0 [stack] 7fffa269a000-7fffa269c000 r-xp 00:00 0 [vdso] ff60-ff601000 r-xp 00:00 0 [vsyscall] Aborted -- Although the extraction is successful, checksums are OK. :) Thanks for pointing out an additional tool(deco) for such a task. Total so far: rpm2cpio/cpio, rpmdev-extract, deco and direct download method via the fedpkg. Nice. :) Cheers, poma -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On Fri, Feb 22, 2013 at 12:36:43AM +0100, poma wrote: > Shouldn't the default be an '-a'(anonymous) check out via git? Whoops, sorry; forgot about that. I don't think the default should change since, since I think the most common use is active Fedora contributors. If you find yourself using this a lot, you may want to see what you can do to be included in that set if you're not already. :) -- Matthew Miller ☁☁☁ Fedora Cloud Architect ☁☁☁ -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
If all you want is the spec file, then this probably the easiest way: $ wget http://pkgs.fedoraproject.org/cgit/firefox.git/plain/firefox.spec However, this way you miss patches, and other auxiliary files. - Thomas -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On 02/22/13 10:19, Matthew Miller wrote: > On Fri, Feb 22, 2013 at 12:36:43AM +0100, poma wrote: >> Shouldn't the default be an '-a'(anonymous) check out via git? > > Whoops, sorry; forgot about that. I don't think the default should change > since, since I think the most common use is active Fedora contributors. If > you find yourself using this a lot, you may want to see what you can do to > be included in that set if you're not already. :) > It occurred to me, given that this is actually a development, namely collaborative tool, among others. ;) Cheers, poma -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On Thu, Feb 21, 2013 at 8:00 PM, poma wrote: > deco grub2-2.00-16.fc19.src.rpm > 13020 blocks [backtrace cut] > Aborted > -- Hmm, the crash does not happen here. How reproducible is this? Can you debug? > > Although the extraction is successful, checksums are OK. :) > Thanks for pointing out an additional tool(deco) for such a task. > Total so far: rpm2cpio/cpio, rpmdev-extract, deco and direct download > method via the fedpkg. Just as a side information; deco is a nice cute tool that is a wrapper around other extractors so you don't need to memorize their syntax. In case of rpm it wraps rpm2cpio. Cheers, Orcan -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On Sex, 2013-02-22 at 00:36 +0100, poma wrote: > On 02/21/13 10:39, Matthew Miller wrote: > > On Wed, Feb 20, 2013 at 07:16:08PM -0600, Ranjan Maitra wrote: > >> I was wondering if it is possible to download a spec file using yum > >> or rpm only (without downloading the rpm)? > > > > No, but there's a better way! All of our spec files are available in git, > > and the "fedpkg" command is a nice wrapper around access to the repository. > > So: > > > > $ sudo yum install fedpkg > > [...] > > $ fedpkg clone firefox > > Cloning into 'firefox'... > > remote: Counting objects: 3234, done. > > remote: Compressing objects: 100% (1979/1979), done. > > remote: Total 3234 (delta 1702), reused 2424 (delta 1210) > > Receiving objects: 100% (3234/3234), 741.50 KiB | 313 KiB/s, done. > > Resolving deltas: 100% (1702/1702), done. > […] > > fedpkg --user poma -v clone firefox > Cloning ssh://p...@pkgs.fedoraproject.org/firefox > Running git clone ssh://p...@pkgs.fedoraproject.org/firefox directly on > the tty > Cloning into 'firefox'... > Permission denied (publickey). > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > and the repository exists. > Could not execute clone: Command '['git', 'clone', > 'ssh://p...@pkgs.fedoraproject.org/firefox']' returned non-zero exit > status 128 > -- > > In contrast: > fedpkg -v clone -a firefox > Cloning git://pkgs.fedoraproject.org/firefox > Running git clone git://pkgs.fedoraproject.org/firefox directly on the tty > Cloning into 'firefox'... > remote: Counting objects: 3234, done. > remote: Compressing objects: 100% (1979/1979), done. > remote: Total 3234 (delta 1704), reused 2424 (delta 1210) > Receiving objects: 100% (3234/3234), 708.87 KiB | 372 KiB/s, done. > Resolving deltas: 100% (1704/1704), done. > -- > > Shouldn't the default be an '-a'(anonymous) check out via git? That's a point. I got message "Xould not read Fedora cert, falling back to default method" default method should be anonymous. we need to open a bug report -- Sérgio M. B. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On 02/23/13 04:45, Orcan Ogetbil wrote: > On Thu, Feb 21, 2013 at 8:00 PM, poma wrote: >> deco grub2-2.00-16.fc19.src.rpm >> 13020 blocks > [backtrace cut] >> Aborted >> -- > > Hmm, the crash does not happen here. How reproducible is this? Can you debug? > Installed from source - PREFIX = /usr deco -v deco-archive-1.5.1-5.fc19.src.rpm deco-1.6.2-5.fc19.src.rpm deco-archive-1.5.1.tar.gz deco-archive-ape.diff deco-archive-shn.diff deco-archive-zoo.diff deco-archive.spec 27 blocks deco-archive-1.5.1-5.fc19.src/ deco-1.6.2.tar.gz deco.spec 30 blocks deco-1.6.2-5.fc19.src/ > Just as a side information; deco is a nice cute tool that is a wrapper > around other extractors so you don't need to memorize their syntax. In > case of rpm it wraps rpm2cpio. Yep. /usr/share/deco/rpm/extract #!/bin/sh … rpm2cpio "$1" | cpio -idmu${Verbose+v} -- /usr/share/deco/rpm/subdirectory: empty!? deco-archive.spec is unnecessarily complicated. Someone likes the scripting. Cheers, poma -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: is it possible to download a spec file only using yum?
On 02/23/13 05:25, Sérgio Basto wrote: […] > > That's a point. > I got message "Xould not read Fedora cert, falling back to default > method" > default method should be anonymous. > we need to open a bug report > Déjà vu. ;) https://bugzilla.redhat.com/show_bug.cgi?id=670485 Cheers, poma -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel