[opensuse-packaging] howto build noarch the default kmp package only
![](https://seccdn.libravatar.org/avatar/eaa2d13828dc4c759c60956c3bbff0f7.jpg?s=120&d=mm&r=g)
Hi, my package is "ftsteutates" which has kmp subpackages ftsteutates-20160601-2.1.x86_64.rpm ftsteutates-kmp-default-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-desktop-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-xen-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates should be noarch but when I add BuildArch: noarch The build fails + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature /home/abuild/rpmbuild/SOURCES/ftsteutates.spec warning: Macro %flavors_to_build needs whitespace before body error: line 36: Unknown tag: %internal_kmp_error How could I do this? cu, Rudi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/5b19e9d0e834ea10ef75803718ad564b.jpg?s=120&d=mm&r=g)
On Fri, 02 Sep 2016 14:11:30 +0200, Ruediger Meier wrote:
Hi,
my package is "ftsteutates" which has kmp subpackages ftsteutates-20160601-2.1.x86_64.rpm ftsteutates-kmp-default-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-desktop-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-xen-20160601_k3.11.6_4-2.1.x86_64.rpm
ftsteutates should be noarch but when I add BuildArch: noarch
The build fails
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature /home/abuild/rpmbuild/SOURCES/ftsteutates.spec warning: Macro %flavors_to_build needs whitespace before body error: line 36: Unknown tag: %internal_kmp_error
How could I do this?
Better to create another subpackage with noarch instead. Takashi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/eaa2d13828dc4c759c60956c3bbff0f7.jpg?s=120&d=mm&r=g)
On Friday 02 September 2016 15:23:20 Takashi Iwai wrote:
On Fri, 02 Sep 2016 14:11:30 +0200,
Ruediger Meier wrote:
Hi,
my package is "ftsteutates" which has kmp subpackages ftsteutates-20160601-2.1.x86_64.rpm ftsteutates-kmp-default-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-desktop-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-xen-20160601_k3.11.6_4-2.1.x86_64.rpm
ftsteutates should be noarch but when I add BuildArch: noarch
The build fails
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature /home/abuild/rpmbuild/SOURCES/ftsteutates.spec warning: Macro %flavors_to_build needs whitespace before body error: line 36: Unknown tag: %internal_kmp_error
How could I do this?
Better to create another subpackage with noarch instead.
Ok, maybe I call it ftsteutates-config or ftsteutates-sensors with post install scripts to create a file for /etc/sensors.d/ cu, Rudi -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/5b748275c3dbb1ceee18ed554486547d.jpg?s=120&d=mm&r=g)
On Friday 2016-09-02 21:52, Rüdiger Meier wrote:
my package is "ftsteutates" which has kmp subpackages ftsteutates-20160601-2.1.x86_64.rpm ftsteutates-kmp-default-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-desktop-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-xen-20160601_k3.11.6_4-2.1.x86_64.rpm
ftsteutates should be noarch but when I add BuildArch: noarch
The build fails
%flavors_to_build needs whitespace before body error: line 36: Unknown tag: %internal_kmp_error
How could I do this?
Better to create another subpackage with noarch instead.
Ok, maybe I call it ftsteutates-config or ftsteutates-sensors with post install scripts to create a file for /etc/sensors.d/
As an alternative, ftsteutates.spec as noarch ftsteutates-kmp.spec as normal -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/833649deea07c68de42500ad14c257f6.jpg?s=120&d=mm&r=g)
On Sep 18 2016, Jan Engelhardt <jengelh@inai.de> wrote:
On Friday 2016-09-02 21:52, Rüdiger Meier wrote:
my package is "ftsteutates" which has kmp subpackages ftsteutates-20160601-2.1.x86_64.rpm ftsteutates-kmp-default-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-desktop-20160601_k3.11.6_4-2.1.x86_64.rpm ftsteutates-kmp-xen-20160601_k3.11.6_4-2.1.x86_64.rpm
ftsteutates should be noarch but when I add BuildArch: noarch
The build fails
%flavors_to_build needs whitespace before body error: line 36: Unknown tag: %internal_kmp_error
How could I do this?
Better to create another subpackage with noarch instead.
Ok, maybe I call it ftsteutates-config or ftsteutates-sensors with post install scripts to create a file for /etc/sensors.d/
As an alternative, ftsteutates.spec as noarch ftsteutates-kmp.spec as normal
Or, to keep a single spec file, rename the main package to something else but don't add a %files section. Then you can use the name ftsteutates for the noarch subpackage. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (5)
-
Andreas Schwab
-
Jan Engelhardt
-
Ruediger Meier
-
Rüdiger Meier
-
Takashi Iwai