Mailinglist Archive: opensuse-packaging (109 mails)
< Previous | Next > |
Re: [opensuse-packaging] Duplicate -lang packages waste space
- From: Andreas Gruenbacher <agruen@xxxxxxx>
- Date: Mon, 15 Oct 2007 09:41:08 +0200
- Message-id: <200710150941.08836.agruen@xxxxxxx>
On Monday 15 October 2007 08:38, Thorsten Kukuk wrote:
> I think this idea was already rejected upstream, since RPM
> has no chance to make sure that the content is really noarch.
Ah, okay. It's quite possible that someone brought up this argument, but the
argument doesn't hold water. Creating noarch packages that contain
architecture specific files is easy, and there is little that can be done
about it.
> If you build a normal noarch package, all arch specific commands
> like "ifarch" are disabled and will be ignored. How to do that for
> a subpackage?
It's a pointless exercise. The noarch files need to be built somehow, and if
you turn of everything that might result in an architecture dependency, then
this also includes all nontrivial tools for producing architecture
independent files. You really need to know what you are doing when creating
noarch packages.
Name: not-noarch
Summary: Not a noarch package
Version: 1
Release: 0
License: GPL
Group: Application/Text
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-root
%description
Creating false %%noarch packages is easy...
%build
cat > hello.c <<EOF
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
EOF
cc -o hello hello.c
%files
%doc hello
Thanks,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
> I think this idea was already rejected upstream, since RPM
> has no chance to make sure that the content is really noarch.
Ah, okay. It's quite possible that someone brought up this argument, but the
argument doesn't hold water. Creating noarch packages that contain
architecture specific files is easy, and there is little that can be done
about it.
> If you build a normal noarch package, all arch specific commands
> like "ifarch" are disabled and will be ignored. How to do that for
> a subpackage?
It's a pointless exercise. The noarch files need to be built somehow, and if
you turn of everything that might result in an architecture dependency, then
this also includes all nontrivial tools for producing architecture
independent files. You really need to know what you are doing when creating
noarch packages.
Name: not-noarch
Summary: Not a noarch package
Version: 1
Release: 0
License: GPL
Group: Application/Text
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-root
%description
Creating false %%noarch packages is easy...
%build
cat > hello.c <<EOF
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
EOF
cc -o hello hello.c
%files
%doc hello
Thanks,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
< Previous | Next > |