mksh-38.1-1ubuntu1 (powerpc, sparc) FTBFS (dietlibc breakage)

Bug #381332 reported by Thorsten Glaser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dietlibc (Ubuntu)
Fix Released
Wishlist
Thorsten Glaser
Nominated for Karmic by Thorsten Glaser
mksh (Ubuntu)
Fix Released
Undecided
Thorsten Glaser
Nominated for Karmic by Thorsten Glaser

Bug Description

Binary package hint: mksh

https://launchpad.net/ubuntu/+source/mksh/38.1-1ubuntu1/+build/1047375

diet -v -Os cc -Wall -g -O2 -fno-strict-aliasing -fstack-protector-all -fwrapv -std=gnu99 -Wall -fno-inline -Wl,-Bsymbolic-functions -o mksh lalloc.o edit.o eval.o exec.o expr.o funcs.o histrap.o jobs.o lex.o main.o misc.o shf.o syn.o tree.o var.o || rm -f ${tcfn}*
cc -nostdlib -static -L/usr/lib/diet/lib-ppc /usr/lib/diet/lib-ppc/start.o -Wall -g -std=gnu99 -Wall -Wl,-Bsymbolic-functions -o mksh lalloc.o edit.o eval.o exec.o expr.o funcs.o histrap.o jobs.o lex.o main.o misc.o shf.o syn.o tree.o var.o -isystem /usr/lib/diet/include -D__dietlibc__ -Os -fomit-frame-pointer -mpowerpc-gpopt -mpowerpc-gfxopt /usr/lib/diet/lib-ppc/libc.a -lgcc
[…]
./mksh -c true
make[1]: *** [do-build] Segmentation fault
make[1]: Leaving directory `/build/buildd/mksh-38.1/build/small'

This can be circumvented in mksh by adding an appropriate clause in debian/rules:
│# Bug#523088
│ifeq (${DEB_HOST_ARCH},s390)
│USE_DIETLIBC= 0
│endif
already exists because s390 on Debian has similar problems (bug in dietlibc causes
FTBFS for mksh).

Better would it, of course, be if dietlibc for powerpc got fixed in Ubuntu (possibly
taken from Debian sid?).

description: updated
summary: - mksh-38.1-1ubuntu1 (powerpc) FTBFS (dietlibc breakage)
+ mksh-38.1-1ubuntu1 (powerpc, sparc) FTBFS (dietlibc breakage)
Revision history for this message
Thorsten Glaser (mirabilos) wrote :
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

Please sync mksh 38.2-1 (universe) from Debian unstable (main).
The attached debdiff against the Debian sid version brings the pak-
kage up to date. It fixes the FTBFS on powerpc and sparc (hopeful-
ly) and a memory corruption bug from upstream.

Changelog since current karmic version 38.1-1ubuntu1:

mksh (38.2-1ubuntu1) karmic; urgency=low

  * Merge from Debian unstable. Remaining Ubuntu changes:
    - disable debconf mksh/sh
    - do not use -combine for build
  * Apply patch from upstream CVS:
    debian/rules: use DEB_BUILD_ARCH, not DEB_HOST_ARCH, to determine
    if dietlibc should be excluded on certain architectures where it
    is known to fail
  * Exclude dietlibc on powerpc and sparc (LP: #381332)

 -- Thorsten Glaser <email address hidden> Mon, 01 Jun 2009 10:06:19 +0000

mksh (38.2-1) unstable; urgency=low

  * debian/rules: fix typo in buildd admin instructions for openpty()
  * New upstream version R38b; complete ChangeLog:
    - [André Wösten] Add __NO_EXT_QNX to avoid picking up the wrong
      waitfor() from <libutil.h> in (while porting to) QNX 6.4
    - [tg] Plug memory corruption issue introduced in R38
    - [tg] Amend dot.mkshrc with a base64 en-/decoder in shell
    - [tg] Import a manpage fix via OpenBSD from Alan R. S. Bueno

 -- Thorsten Glaser <email address hidden> Sun, 31 May 2009 17:45:42 +0000

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

fix attached to this bugreport

10:12⎜*** #ubuntu-motu : created Sun Nov 26 06:42:18 2006
10:12⎜<mirabilos> morning
10:13⎜<mirabilos> https://bugs.launchpad.net/ubuntu/+source/mksh/+bug/381332 <-- would please someone
     ⎜ sponsor that upload? ;)
10:13⎜«ubottu» Ubuntu bug 381332 in mksh "mksh-38.1-1ubuntu1 (powerpc, sparc) FTBFS (dietlibc breakage)"
     ⎜ [Undecided,New]
10:13⎜<mirabilos> erm, exactly.

Changed in mksh (Ubuntu):
assignee: nobody → Thorsten Glaser (mirabilos)
status: New → In Progress
Revision history for this message
Thorsten Glaser (mirabilos) wrote :
Changed in mksh (Ubuntu):
assignee: Thorsten Glaser (mirabilos) → nobody
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

Note to dietlibc maintainers: the mksh debdiff attached works around
the dietlibc breakage by not linking to it on powerpc and sparc. The
initial problem in dietlibc still exists, but would be decoupled from mksh.

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

For mksh: superseded by https://bugs.launchpad.net/bugs/385887

For dietlibc: the problem almost certainly still exists

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mksh - 38.3-1ubuntu1

---------------
mksh (38.3-1ubuntu1) karmic; urgency=low

  * Merge from Debian unstable (LP: #385887). Remaining Ubuntu changes:
    - disable debconf mksh/sh
    - do not use -combine for build
    - skip dietlibc on powerpc and sparc (LP: #381332)

mksh (38.3-1) unstable; urgency=low

  * New upstream version R38c; complete ChangeLog:
    - [tg] Fix regression tests on OSes insisting on a shebang (Cygwin)
    - [Sean Boudreau] QNX 6.4.2 ed(1) is said to have the bugs fixed
    - [tg] Build.sh bugfixes: -DMKSH_BINSHREDUCED can also be given
      without -DMKSH_SMALL; allow HAVE_REALPATH=x and HAVE_REVOKE=x in
      the environment to re-enable these even if -DMKSH_SMALL disables
      them by default, like mknod already did
    - [tg] -DMKSH_ASSUME_UTF8=0 skips the environment checks, like
      -DMKSH_ASSUME_UTF8=1, but disables the utf8-mode
    - [tg] Apply some more KNF – style(9) – to the source; clean it up
      and further optimise for small size
    - [OpenBSD] Fix segfaults caused by missing check for end of input
      in the tokeniser on “let --” and other input
    - [OpenBSD] Make Vi editing mode ^W behave like Emacs mode’s
    - [tg] If no killpg(3) is avaiable, use kill(2) and hope it works
    - [tg] -DMKSH_NO_LIMITS skips trying to build the ulimit code
  * debian/rules: use DEB_BUILD_ARCH, not DEB_HOST_ARCH, to determine
    if dietlibc should be excluded on certain architectures where it
    is known to fail

 -- Thorsten Glaser <email address hidden> Thu, 11 Jun 2009 13:27:54 +0200

Changed in mksh (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Nick Ellery (nick.ellery) wrote :

There doesn't appear to be any current patches here. Please resubscribe universe sponsors if/once they have been prepared.

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

Yeah, the mksh part is already “fixed” (workaround: mksh doesn’t use dietlibc any more
on architectures where the latter is known to break). I couldn't unsubscribe the sponsors,
but there was already a newer version of mksh uploaded with more fixes.

Revision history for this message
Thorsten Glaser (mirabilos) wrote :

Reopening – the fix got lost ☹

Changed in mksh (Ubuntu):
assignee: nobody → Thorsten Glaser (mirabilos)
status: Fix Released → Confirmed
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

This one reappeared in mksh, because I seem to have lost this particular diff:

https://launchpad.net/ubuntu/+source/mksh/39.1-3ubuntu1/+build/1285075
https://launchpad.net/ubuntu/+source/mksh/39.1-3ubuntu1/+build/1285076

Here’s a fix:

Changes:
 mksh (39.1-3ubuntu2) karmic; urgency=low
 .
   * Exclude dietlibc on powerpc/ppc64 and sparc (LP: #381332)

Revision history for this message
StefanPotyra (sistpoty) wrote :

uploaded, thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mksh - 39.1-3ubuntu2

---------------
mksh (39.1-3ubuntu2) karmic; urgency=low

  * Exclude dietlibc on powerpc/ppc64 and sparc (LP: #381332)

 -- Thorsten Glaser <email address hidden> Sat, 10 Oct 2009 14:12:52 +0000

Changed in mksh (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

As there is nothing to sponsor at the moment, I'll unsubscribe u-u-s. Please subscribe again Ubuntu Sponsors for Universe when the debdiff is ready.

Thanks,
Fabrice

Changed in dietlibc (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

we got a working dietlibc in

Changed in dietlibc (Ubuntu):
assignee: nobody → Thorsten Glaser (mirabilos)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.