Re: Bug#26954: libpaper-1.0.3: control file with libpaper [libc5]
> i am not sure how to fix this bug.
>
> The problem here is that the debian/rules file builds the
> libpaper package only if the arch supports libc5 (i.e., i386 or m86k).
>
> Is it enough to change
> Architecture: any
> into
> Architecture: i386 m86k
> for the libpaper package in the debian/control file?
>
> > dpkg-deb: building package `libpaperg' in `../libpaperg_1.0.3-11_powerpc.deb'.
> > dpkg-genchanges -B -mHartmut Koptein <koptein@et-inf.fho-emden.de>
> > dpkg-genchanges: arch-specific upload - not including arch-independent packages
> > dpkg-genchanges: error: package libpaper in control file but not in files list
Hi and thanks for your support!
No, it isn't enough for changing the Architecture field (btw: i think the old way is
a very good one).
We have two possible ways (or you in this case):
1. dpkg-genchanges ignores this dependency from the control file and against the
debian/files file
2. you split the control file into two parts, the libc5 and the libc6 one. Then
after asking for the architecture in debian/rules
if $arch == $old_one {
cat control.libc5 control.libc6 > control
else
echo control.libc6 > control
}
or similary to the xfree/debian/rules file:
# if your arch needs glibc1 compat support build, add it to this list
COMPAT_ARCHS=i486 m68k
A:=$(shell dpkg --print-gnu-build-architecture)
ifneq (,$(findstring $(A), $(COMPAT_ARCHS)))
DOCOMPAT:=build-old
BINARY:=binary-compat
endif
ifdef DOCOMPAT
.........
endif
I think the second one is the better one, because with the first one we will lost
some check mechanismen and many packages have already a section for building with
or without libc5 support.
Sorry for this posting! Really! But i/we[1] need a conclusion for this, and my
report to debian-devel was unsucessful. So i decide to report a bug against
all packages with this behavior.
[1] i think this is for powerpc and arm. sparc has libc5 support??
Sorry and thanks,
Hartmut
--
Hartmut Koptein EMail:
Friedrich-van-Senden-Str. 7 koptein@et-inf.fho-emden.de
26603 Aurich
Tel.: +49-4941-10390 koptein@debian.org
Reply to: