Bug 131603 - [patch] emulators/kqemu-kmod-devel: unit2minor doesn't exist on recent 8.0-CURRENT
Summary: [patch] emulators/kqemu-kmod-devel: unit2minor doesn't exist on recent 8.0-CU...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Juergen Lock
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-12 10:40 UTC by Scot Hetzel
Modified: 2009-02-12 17:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.27 KB, patch)
2009-02-12 10:40 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2009-02-12 10:40:01 UTC
When trying to load the kqemu.ko kernel module, it fails with:

kldload: can't load kqemu.ko: Exec format error

/var/log/messages shows:

Feb 12 03:27:58 hp010 kernel: link_elf_obj: symbol unit2minor undefined
Feb 12 03:27:58 hp010 kernel: kldload: /boot/modules/kqemu.ko: Unsupported file type
Feb 12 03:27:58 hp010 root: ./kqemu: WARNING: kqemu module failed to load.

CURRENT > 800062 no longer has unit2minor.

Fix: Apply the attached patch to emulators/kqemu-kmod-devel

Note: emulators/kqemu-kmod also needs the same patch:

cd /usr/ports/emulators/kqemu-kmod
cp ../kqemu-kmod-devel/files/patch-unit2minorfix files

Then update the PORTREVISON in emulators/kqemu-kmod/Makefile.

Patch attached with submission follows:
How-To-Repeat: install either emulators/kqemu-kmod or emulators/kqemu-kmod-devel
then try to load kqemu.ko on a recent 8.0-CURRENT.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-02-12 10:40:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nox

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2009-02-12 17:46:45 UTC
nox         2009-02-12 17:46:29 UTC

  FreeBSD ports repository

  Modified files:
    emulators/kqemu-kmod Makefile 
    emulators/kqemu-kmod-devel Makefile 
  Added files:
    emulators/kqemu-kmod/files patch-unit2minorfix 
    emulators/kqemu-kmod-devel/files patch-unit2minorfix 
  Log:
  - Fix kqemu on recent -current which no longer has/uses unit2minor()
  - Bump PORTREVISION
  
  PR:             ports/131603
  Submitted by:   "Scot W. Hetzel" <swhetzel@gmail.com>
  
  Revision  Changes    Path
  1.31      +1 -0      ports/emulators/kqemu-kmod-devel/Makefile
  1.1       +16 -0     ports/emulators/kqemu-kmod-devel/files/patch-unit2minorfix (new)
  1.30      +1 -1      ports/emulators/kqemu-kmod/Makefile
  1.1       +16 -0     ports/emulators/kqemu-kmod/files/patch-unit2minorfix (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Juergen Lock freebsd_committer freebsd_triage 2009-02-12 17:47:03 UTC
State Changed
From-To: open->closed

Committed. Thanks!