Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 323389 - app-emulation/dosemu-1.4.0 fails to build
Summary: app-emulation/dosemu-1.4.0 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on: 301325
Blocks:
  Show dependency tree
 
Reported: 2010-06-10 02:06 UTC by Alexander Bezrukov
Modified: 2010-06-10 18:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge -1 --info app-emulation/dosemu >/tmp/emerge.info (emerge.info,4.75 KB, text/plain)
2010-06-10 02:06 UTC, Alexander Bezrukov
Details
build.log (build.log,41.86 KB, text/plain)
2010-06-10 02:07 UTC, Alexander Bezrukov
Details
Patch which fixes a bug which leads to compilation issue with gcc-4.4 (dosemu-1.4.0-open.patch,464 bytes, patch)
2010-06-10 03:01 UTC, Alexander Bezrukov
Details | Diff
A proposed ebuild (need not be -r1) (dosemu-1.4.0-r1.ebuild,1.50 KB, text/plain)
2010-06-10 03:02 UTC, Alexander Bezrukov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bezrukov 2010-06-10 02:06:06 UTC
app-emulation/dosemu-1.4.0 (the latest stable) fails to build. I will try to research further. For now am attaching the build.log and emerge.info.

Reproducible: Always

Steps to Reproduce:
1. emerge =app-emulation/dosemu-1.4.0
Actual Results:  
* ERROR: app-emulation/dosemu-1.4.0 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 3246:  Called die
 * The specific snippet of code:
 *       emake || die
 * 
 * If you need support, post the output of 'emerge --info =app-emulation/dosemu-1.4.0',
 * the complete build log and the output of 'emerge -pqv =app-emulation/dosemu-1.4.0'.
 * The complete build log is located at '/tmp/portage/app-emulation/dosemu-1.4.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/app-emulation/dosemu-1.4.0/temp/environment'.
 * S: '/tmp/portage/app-emulation/dosemu-1.4.0/work/dosemu-1.4.0'


Expected Results:  
The package is built ok.
Comment 1 Alexander Bezrukov 2010-06-10 02:06:57 UTC
Created attachment 234801 [details]
emerge -1 --info app-emulation/dosemu >/tmp/emerge.info
Comment 2 Alexander Bezrukov 2010-06-10 02:07:38 UTC
Created attachment 234805 [details]
build.log
Comment 3 Alexander Bezrukov 2010-06-10 02:33:04 UTC
This is infamous issue with open() call with gcc-4.4 which catches it.
The source code contains a BUG. When open(2) is called with the O_CREAT flag, the creation mode MUST be passed. Otherwise, a garbage is used as a creation mode which is potentially an exploitable SECURITY issue.

I will prepare a patch which fixes this problem.
Comment 4 Alexander Bezrukov 2010-06-10 03:01:18 UTC
Created attachment 234807 [details, diff]
Patch which fixes a bug which leads to compilation issue with gcc-4.4

This bug has potential security implications.
Comment 5 Alexander Bezrukov 2010-06-10 03:02:33 UTC
Created attachment 234809 [details]
A proposed ebuild (need not be -r1)

Only added one epatch line.
Comment 6 Samuli Suominen gentoo-dev 2010-06-10 09:29:57 UTC
adding 1.4.0-r1 and this patch would be pointless, since this is already fixed in 1.4.0.1
Comment 7 Samuli Suominen gentoo-dev 2010-06-10 09:33:23 UTC
closing as invalid because it's already been fixed.

  06 Feb 2009; Hanno Boeck <hanno@gentoo.org>
  +files/dosemu-1.4.0.1-gcc433.diff, dosemu-1.4.0.1.ebuild:
  Patch from upstream svn to fix compilation with gcc 4.3.3.

and going stable wrt bug 301325