[opensuse-packaging] Quilt setup fails with factory spec files
![](https://seccdn.libravatar.org/avatar/cbdb4cc60618a62aaf3ca8723a430423.jpg?s=120&d=mm&r=g)
Hi list, I get some error everytime while extracting the content of source rpm packages from opensuse-factory. I'm using quilt to extract and patch the packages and the same command which works fine on 10.2 packages (quilt setup $SPECFILE) fails on the packages from factory. And the error comes everytime from the same line: "%files lang -f %{name}.lang". An example with the mc package (10.2: 4.6.1-56; 10.3: 4.6.1.135): ===== 10.2: mc/102> quilt setup mc.spec ### md5sum: .....................b......... ### rpmbuild: tpppppppppppppppppppppppppppp Unpacking archive ./mc-4.6.1.tar.bz2 10.3: mc/103> quilt setup mc.spec ### md5sum: .......................b........... ### rpmbuild: The %prep section of mc.spec failed; results may be incomplete 10.3 in verbose mode: mc/103> quilt setup mc.spec -v ... error: Unknown option ? in verify_permissions(:-:) error: line 254: Package does not exist: %files lang -f mc.lang The %prep section of mc.spec failed; results may be incomplete ===== The main difference between the two spec file is in %files section. The %files section from 10.2's package looks like this: ===== %files -f %{name}.lang %defattr(-, root, root) ... ===== The factory spec file: ===== %files %defattr(-, root, root) ... %files lang -f %{name}.lang ===== What would be changed to extract src.rpms with quilt? Or do I need some other additional packages to install if I want work with factory packages? Or a newer version of quilt is needed? Some versions: quilt --version: 0.44, update-desktop-files package version: 10.1-40.8, rpm version 4.4.2 Regards, Andras --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/a98f4fcfba592494dddc221040727b31.jpg?s=120&d=mm&r=g)
hi, just curious: what distro are you running on? darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/af626ca29b1318211e3f416634b5db76.jpg?s=120&d=mm&r=g)
On Mon, 17 Sep 2007, Marcus Rueckert wrote:
hi,
just curious: what distro are you running on?
the problem is the missing lang_package macro: # Template for lang sub-package. %lang_package(n:) \ %package %{-n:-n %{-n*}-}lang \ Summary: Languages for package %{name} \ Group: System/Localization \ Provides: %{-n:%{-n*}}%{!-n:%{name}}-lang-all = %{version} \ Requires: %{name} = %{version} \ %description %{-n:-n %{-n*}-}lang \ Provides translations to the package %{name} you can probably just put it to the end of the file /usr/lib/rpm/suse_macros -- with kind regards (mit freundlichem Grinsen), Ruediger Oertel (ro@novell.com,ro@suse.de,bugfinder@t-online.de) ---------------------------------------------------------------------- Linux Fatou 2.6.22.5-16-default #1 SMP 2007/09/11 14:25:31 UTC x86_64 Key fingerprint = 17DC 6553 86A7 384B 53C5 CA5C 3CE4 F2E7 23F2 B417 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
participants (3)
-
Andras Mate
-
Marcus Rueckert
-
Ruediger Oertel