Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#21735 - [grub2] include grub-emu in the grub2 package

Attached to Project: Arch Linux
Opened by John (graysky) - Wednesday, 17 November 2010, 23:48 GMT
Last edited by Ronald van Haren (pressh) - Friday, 28 January 2011, 22:02 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The grub2 package lists libusb as an optdepends stating:

libusb: /sbin/grub-emu

However, the package does not seem to provide /sbin/grub-emu at all nor can I find it in the repos or the AUR. Please include /sbin/grub-emu in the grub2 package.

Additional info:
* package version(s) 1.98-5
This task depends upon

Closed by  Ronald van Haren (pressh)
Friday, 28 January 2011, 22:02 GMT
Reason for closing:  Won't implement
Additional comments about closing:  sorry, I need to set platform=pc. If there is an easy way to add this to the grub 1.99 packages you can re-open this
Comment by John (graysky) - Thursday, 18 November 2010, 00:01 GMT
Here is a stab at a PKGBUILD

pkgname=grub2-emu
pkgver=1.98
pkgrel=1
pkgdesc="The GNU GRand Unified Bootloader"
url="http://www.gnu.org/software/grub/"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('sh' 'lzo2' 'freetype2')
optdepends=('ruby:usr/share/grub/genmk.rb script' 'libusb: /sbin/grub-emu' 'gettext: /sbin/grub-mkconfig')
makedepends=('bdf-unifont' 'ruby')
source=(ftp://alpha.gnu.org/gnu/grub/grub-${pkgver}.tar.gz)
_fake=${srcdir}/fake
build() {

cd $srcdir/grub-${pkgver}

# use /usr/bin/python2 instead
sed -i 's|python|python2|' ${srcdir}/grub-${pkgver}/autogen.sh

# run autogen.sh to create configure files
./autogen.sh

# fix unifont.bdf location
sed -i 's|/usr/src/unifont.bdf|/usr/share/fonts/misc/unifont.bdf|' configure

CFLAGS= ./configure --with-platform=emu --prefix=/usr
CFLAGS= make
}

package() {
cd $srcdir/grub-${pkgver}
if [ -d ${_fake} ]; then
mkdir ${_fake}
fi

make DESTDIR=${_fake} install
mkdir -p ${pkgdir}/usr/sbin
install -m755 ${_fake}/usr/sbin/grub-emu ${pkgdir}/usr/sbin/grub-emu
}

sha256sums=('bef2c1892e052967b65aab6aa62ac702c0e50ef8848506eacf3c0b2f5007c614')
Comment by John (graysky) - Thursday, 18 November 2010, 09:35 GMT
I should add that the PKGBUILD I proposed does install the software, but on my system it doesn't source /boot/grub/grub.cfg for some reason. That said my grub2 is messed-up, see https://bbs.archlinux.org/viewtopic.php?id=108535

Loading...