Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhy20120210:failed_1
grub
grub.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grub.spec of Package grub
# # spec file for package grub (Version 0.97) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: grub %ifarch x86_64 BuildRequires: gcc41-32bit glibc-devel-32bit libncurses5-32bit ncurses-devel-32bit glibc-32bit %else BuildRequires: gcc41 ncurses-devel %endif License: GPL v2 or later Group: System/Boot Version: 0.97 Release: 162.9.1 Source0: %{name}-%{version}.tar.gz Source1: installgrub Source2: grubonce Source3: grub-install Patch0: %{name}-%{version}-path-patch Patch1: use_ferror.diff Patch2: grub-R Patch3: bad-assert-sideeffect Patch4: %{name}-gfxmenu-v8.diff Patch5: reiser-unpack Patch6: chainloader-devicefix Patch7: %{name}-%{version}-devicemap.diff Patch8: grub-linux-setup-fix Patch9: fix-uninitialized Patch10: force-LBA-off.diff Patch11: gcc4-diff Patch12: %{name}-%{version}-initrdaddr.diff Patch13: grub-a20.patch Patch14: disk-by-ID Patch15: e100-newIDs Patch16: recognise-zen Patch17: grub-install-fix-UUID_LABEL Patch18: ext2-support-256byte-inodes Patch19: grub-read-gpt Patch24: grub-%{version}-protexec.patch Patch25: pacify-autoconf Patch26: grub-grubonce-no-wait Patch27: grub-long-commandline Patch28: ext4-support Patch29: grub-acinclude-buildid-fix.diff Patch30: remove-buildid.diff Patch31: string-ops-fix Patch32: unsigned-blocks-n-offsets Patch39: document-grub-install.unsupported Patch40: grub-iso-fixes Patch41: stage2-gfx-cmdline-len-fix.diff Patch42: nulterminate-configfile Patch43: grub-bigraid-failsafe Url: http://www.gnu.org/software/grub/grub.en.html BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Grand Unified Boot Loader PreReq: fileutils sh-utils util-linux Conflicts: trustedgrub ExclusiveArch: %ix86 x86_64 %description GNU GRUB is a multiboot boot loader. It was derived from GRUB. It is an attempt to produce a boot loader for IBM PC-compatible machines that has both the ability to be friendly to beginning or otherwise nontechnically interested users and the flexibility to help experts in diverse environments. It is compatible with Free/Net/OpenBSD and Linux. It supports Win 9x/NT and OS/2 via chainloaders. It has a menu interface and a command line interface. Authors: -------- Alessandro Rubini <rubini@gnu.org> Chip Salzenberg <chip@valinux.com> Edmund GRIMLEY EVANS <edmundo@rano.demon.co.uk> Edward Killips <ekillips@triton.net> Gordon Matzigkeit <gord@fig.org> Jochen Hoenicke <jochen@gnu.org> Khimenko Victor <grub@khim.sch57.msk.ru> Klaus Reichl <Klaus.Reichl@alcatel.at> Michael Hohmuth <hohmuth@innocent.com> OKUJI Yoshinori <okuji@gnu.org> Pavel Roskin <proski@gnu.org> %prep %setup rm -f acconfig.h || true %patch0 -p1 -E %patch1 %patch2 -p1 %patch3 -p1 %patch4 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 # A20 gate haunts even intel macs. Be extra careful, # see http://www.win.tue.nl/~aeb/linux/kbd/A20.html %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch24 -p1 %patch25 -p1 %patch26 -p1 %patch27 -p1 %patch28 -p1 %patch29 -p1 %patch30 %patch31 -p1 %patch32 -p1 %patch39 -p1 %patch40 -p1 %patch41 -p1 %patch42 -p1 %patch43 -p1 %build perl -pi -e 's,/usr/share/grub/i386-pc,/usr/lib/grub,' docs/grub.texi %{?suse_update_config:%{suse_update_config -l -f . }} export CC="gcc-4.1" autoreconf --force --install %ifarch x86_64 EXTRACFLAGS=' -fno-stack-protector -fno-strict-aliasing -minline-all-stringops -m32 -fno-asynchronous-unwind-tables -fno-unwind-tables' %else EXTRACFLAGS=' -fno-stack-protector -fno-strict-aliasing -minline-all-stringops -fno-asynchronous-unwind-tables -fno-unwind-tables' %endif # RPM_OPT_FLAGS considered harmful on 64-bit :-( CFLAGS="-m32 -Os -DNDEBUG -W -Wall -Wpointer-arith $EXTRACFLAGS" ./configure \ --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} --datadir=/usr/lib \ --disable-auto-linux-mem-opt --enable-diskless \ --enable-{3c50{3,7},3c5{0,2}9,3c595,3c90x,cs89x0,davicom,depca,eepro{,100},epic100} \ --enable-{exos205,lance,ne,ne2100,ni{50,52,65}00,ns8390} \ --enable-{rtl8139,sk-g16,smc9000,tiara,tulip,via-rhine,w89c840,wd} make (cd stage2; mv nbgrub pxegrub ..) mv stage2/stage2{,.netboot} make clean CFLAGS="-m32 -Os -DNDEBUG -W -Wall -Wpointer-arith $EXTRACFLAGS" ./configure \ --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} --datadir=/usr/lib \ --disable-auto-linux-mem-opt --disable-ffs --disable-ufs2 make %install make -k DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT/boot/grub ln -sfn . $RPM_BUILD_ROOT/boot/boot (cd $RPM_BUILD_ROOT/usr/lib/grub && mv *-suse/* . && rmdir *-suse) >/dev/null 2>&1 || true cp -p {nb,pxe}grub stage2/stage2{,.netboot} $RPM_BUILD_ROOT/usr/lib/grub mv $RPM_BUILD_ROOT/usr/sbin/grub-install{,.unsupported} mv $RPM_BUILD_ROOT/%{_mandir}/man8/grub-install{,.unsupported}.8 install -p -m 755 %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT/usr/sbin/. # This fine script used to do everything at once, which # isn't necessary any more with Yast2 support. # Kept only for reference and historical reasons. # install -o root -g root -m 744 %{SOURCE1} /usr/sbin # grub-terminfo is irrelevant to us rm -f $RPM_BUILD_ROOT/usr/sbin/grub-terminfo rm -f $RPM_BUILD_ROOT/usr/share/man/man8/grub-terminfo* rm -f $RPM_BUILD_ROOT/usr/sbin/grub-set-default %clean rm -rf $RPM_BUILD_ROOT; %preun %install_info --delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info --delete --info-dir=%{_infodir} %{_infodir}/multiboot.info.gz %files %defattr(-,root,root) %doc BUGS NEWS TODO README THANKS AUTHORS INSTALL ChangeLog COPYING %docdir %{_infodir} %docdir %{_mandir} %docdir /usr/share/doc/packages/grub %dir /boot/grub /usr/bin/mbchk %{_infodir}/grub*.gz %{_infodir}/multiboot.info.gz %{_mandir}/man1/mbchk.1.gz %{_mandir}/man8/grub-install.unsupported.8.gz %{_mandir}/man8/grub.8.gz %{_mandir}/man8/grub-md5-crypt.8.gz /usr/lib/grub %defattr(755,root,root) /usr/sbin/grub /usr/sbin/grubonce /usr/sbin/grub-install /usr/sbin/grub-install.unsupported /usr/sbin/grub-md5-crypt #/usr/sbin/installgrub %dir /boot/boot %post test ! -e /.buildenv || exit 0 # should anything go wrong the system will remain bootable : [ -e /boot/grub/stage2 ] && mv /boot/grub/stage2{,.old} # copy especially stage2 over, because it will be modified in-place ! cp -p /usr/lib/grub/*stage1* /boot/grub 2>/dev/null || true %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/multiboot.info.gz #special hack for #46843 dd if=/usr/lib/grub/stage2 of=/boot/grub/stage2 bs=256k sync # sync may take much longer on XFS (Bug#223773) bootpart=`df /boot/. | perl -ane '$F[0] =~ m,/dev/[^\s]*, && print $F[0]'` eval `/sbin/blkid -u filesystem -o udev $bootpart` if [ "X$ID_FS_TYPE" = "X" -o "t_$ID_FS_TYPE" = "t_xfs" ]; then sync; sleep 5; sync; sleep 5; sync (xfs_freeze -f /; xfs_freeze -f /boot) > /dev/null 2>&1 (xfs_freeze -u /; xfs_freeze -u /boot) > /dev/null 2>&1 fi # command sequence to update-install stage1/stage2. # leave everything else alone ! [ -e /etc/grub.conf ] && /usr/sbin/grub --batch < /etc/grub.conf >/dev/null 2>&1 exit 0 %changelog * Tue May 11 2010 kukuk@suse.de - Include sys/mount.h to define BLKGETSIZE64 * Tue May 11 2010 duwe@suse.de - In the grub shell, try BLKGETSIZE64 if available. This can work around a bug in 64-bit kernels' 32-bit emulation. - In the same context, check errno, not retval. both changes thanks to okir (bnc#591566). * Mon May 10 2010 duwe@suse.de - Do not zero-divide when a DM-dev's "geometry" is unset, and do not choke on >2TB devices (bnc#598401, bnc#604180). - more signedness fixes (bnc#603657, bnc#562172). - Stop copying /usr/lib/grub/*/*stage1* during post-install, there are no files there, and this can cause confusion when debugging (see bnc#513821#c128). - remove buggy grub-set-default, superseded by grubonce (bnc#584082). * Tue Mar 9 2010 duwe@suse.de - Fix typo in unsigned-blocks-n-offsets * Wed Feb 24 2010 duwe@suse.de - prerequire util-linux, which contains blkid (bnc#582650) * Fri Feb 19 2010 duwe@suse.de - fix for broken BIOSes that also clobber %%ebp (bnc#579646) - reduce signedness mess to harness full 32 bit block numbers (a.k.a disks up to 2TB) bnc#552157, bnc#561588 * Thu Feb 11 2010 duwe@suse.de - blkid's "-p" flag is relatively new. We'd rather not use it. (bnc#578001) * Mon Jan 25 2010 tiwai@suse.de - fix the truncation of boot options in 256 chars with gfx menu (bnc#573453) * Thu Jan 14 2010 duwe@suse.de - nul-terminate the config file's location (bnc#554546) - use known compiler with known flags, to avoid mysterious failures as in bnc#551011 - use blkid instead of the vanished vol_id, as suggested in bnc#555293. Also use the more effective xfs_freeze. * Thu Feb 19 2009 duwe@suse.de - fix high-priority documentation issue (bnc#339995) * Mon Dec 1 2008 duwe@suse.de - the string handling fix revealed other problems; some device names won't fit into 16 chars. Increase the size consistently, and fix bnc#450091 * Thu Nov 20 2008 duwe@suse.de - fix serious bug in "setup" command string handling * Thu Nov 6 2008 duwe@suse.de - recognise GPTs (bnc#386800 et.al.) - neither show nor count commented entries in grubonce (bnc#438236) - recognise additional disk naming schemes and deduce partitions + bnc#408727 i2o + bnc#435958 by-path + bnc#422685 dev/mapper * Tue Nov 4 2008 snwint@suse.de - gfxmenu: increase usable mem size to 8MB * Mon Oct 27 2008 coolo@suse.de - disable unwind tables * Tue Sep 23 2008 dmueller@suse.de - strip build ids from raw binaries - fix prerequires * Mon Sep 15 2008 jblunck@suse.de - Add patch to ignore .note.gnu.build-id in config test * Fri Sep 12 2008 aj@suse.de - Add patch to allow ext4 file system as boot system (fate#305162). * Wed Aug 13 2008 ro@suse.de - add ExclusiveArch * Tue Jul 1 2008 duwe@suse.de - wait for XFS to really sync (bnc#223773 et. al.) * Mon Jun 30 2008 bwalle@suse.de - support kernel command lines longer than 256 characters (http://savannah.gnu.org/bugs/?13606) * Tue Jun 17 2008 schwab@suse.de - grub-install: Add newline. * Tue Apr 15 2008 ro@suse.de - buildreq: ncurses-32bit -> libncurses5-32bit * Tue Apr 15 2008 duwe@suse.de - support inode sizes != 128, as mke2fs uses 256 by default now (bnc#358483). * Fri Dec 7 2007 bwalle@suse.de - don't wait for a keypress when multiple terminals are specified but grubonce was called previously * Wed Oct 31 2007 snwint@suse.de - make 'savedefault' work with gfxmenu (#249812) * Thu Aug 23 2007 duwe@suse.de - Allow A20 only to be opened, but take extra care to ensure it works and breaks nothing else. This will/may fix bugs [#269771],#299576,#228083,#190030 and maybe more. * Thu Jun 21 2007 adrian@suse.de - fix changelog entry order * Fri Mar 16 2007 duwe@suse.de - Make fsys_ext2fs recognise Zen partitions (Bug#255006) - handle /dev/disk/by-id in device.map (Bug#248216) - add some on-board IDs for eepro100 (Bug#242660) - fix grubonce entry# recognition (Bug#242992) - make it clear that grub-install is not supported by us, rename the script and call yast2 and grub --batch < /etc/grub.conf instead - fix the old, unsupported grub-install to recognise LABEL and UUID (Bug#181830) * Fri Feb 2 2007 ro@suse.de - added -fno-stack-protector to EXTRACFLAGS * Mon Jan 29 2007 duwe@suse.de - add AM_PROG_AS to configure.ac to pacify autoconf. * Mon Oct 23 2006 duwe@suse.de - Actually, first asking the BIOS what's supported is another source for errors, and does more harm than good :-( After Bug#214342, let's try the unaltered patch. * Fri Oct 20 2006 duwe@suse.de - re-added intel Mac patch with an extra safety check. Systems where this code doesn't work I'd consider really broken. As a last resort, System Control Port A and KBD controller priority may be reversed, but let's try it this way first. * Sat Oct 14 2006 duwe@suse.de - disabled the intel mac hack again. Will keep the patch included anyway to hint people it's off for a reason. * Thu Oct 12 2006 agruen@suse.de - grub-a20.patch: Add a gate A20 workaround so that stage 2 doesn't lock up on Intel Mac machines. * Fri Aug 25 2006 snwint@suse.de - needs gcc41-32bit * Thu Aug 24 2006 snwint@suse.de - support latest gfxmenu * Mon Jul 17 2006 snwint@suse.de - extended gfxmenu interface to pass options for 'module' lines (#160066) - merged various gfxmenu patch fragments into one patch * Thu Apr 20 2006 duwe@suse.de - fix incorrect DL contents e.g. on chainloader (fd0)+1 (Bug #158072) - initialize array in intel netcard probe (Bug #144171) * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Thu Nov 24 2005 snwint@suse.de - support latest gfxboot * Thu Nov 10 2005 duwe@suse.de - update to 0.97 * Fri Sep 9 2005 coolo@suse.de - make grubonce shutup * Fri Sep 2 2005 duwe@suse.de - Make grubonce work with the new 0.96 savedefault, (fixing bug #95082, and by coincidence 99185 along the way, too) * Fri Jun 10 2005 ro@suse.de - fix variable type in last change * Thu Jun 9 2005 ro@suse.de - fix gfx display (stackptr diff) (thanks to Steffen) * Fri Apr 29 2005 duwe@suse.de - update to 0.96 - "grubonce" no handled differently - re-do gcc4 fix (cleaner now) - dropped rare NICs sis900 and natsemi in the process, update from etherboot pending anyways. * Sat Apr 9 2005 aj@suse.de - Compile with GCC4. * Wed Mar 2 2005 duwe@suse.de - force cache reloading after "embed", for the "setup" shortcut. This fixes Bug #66454 * Fri Feb 18 2005 agruen@suse.de - Disable the wildcard feature. * Sun Feb 6 2005 ro@suse.de - fix build on i386 - use RPM_OPT_FLAGS * Sat Feb 5 2005 ro@suse.de - use PROT_EXEC (from grub bug-tracking system) * Fri Jan 28 2005 snwint@suse.de - updated gfxboot patch * Wed Oct 6 2004 sf@suse.de - dd stage2 instead of copying it (#46843) * Fri Oct 1 2004 max@suse.de - Added ncurses-devel-32bit and ncurses-devel-32bit to neededforbuild to make history and command completion work on x86_64 [Bug #46577]. * Thu Sep 30 2004 duwe@suse.de - try to defragment stage2 if it resides on reiserfs. This should fix sporadic failures we see. * Thu Sep 30 2004 agruen@suse.de - Wildcard feature: + stage2-wildcard-zerowidth.diff: Allow zero-width matches (so that the asterisk in wildcard matches has the usual file glob sematics). + stage2-wildcard-doc.diff: Document the wildcard feature. * Tue Sep 21 2004 duwe@suse.de - removed one ill side effect of assert(), most likely fixing blocker #44520 * Tue Sep 7 2004 duwe@suse.de - added "grubonce" script to demonstrate & ease "savedefault --once" * Mon Sep 6 2004 agruen@suse.de - Fix usage of wrong variable in wildcard code. * Sun Aug 22 2004 agruen@suse.de - stage2-dir-callback.diff: Make the dir command more flexible, and clean up a bit. - stage2-wildcard.diff: Implement wildcard menu entries. * Mon Jul 26 2004 duwe@suse.de - update to the latest version, 0.95 * Thu May 13 2004 duwe@suse.de - added -fno-strict-aliasing to CFLAGS, as suggested per autobuild. * Thu May 13 2004 duwe@suse.de - fix at least Bugs #32351,#36460,#34576,#38774 and #27486, maybe also #35262 * Fri Mar 5 2004 duwe@suse.de - fix bug #35352, the initrd patch only seemed to have gone into 0.94, the semantics differ slightly :-( * Mon Mar 1 2004 duwe@suse.de - quick fix for changed --datadir in 0.94, detected by automated build checks. * Mon Mar 1 2004 duwe@suse.de - upgrade to 0.94 - integrate iso9660 FS - network booting temporarily disabled * Wed Jan 14 2004 snwint@suse.de - understand new gfxboot file format * Sat Jan 10 2004 adrian@suse.de - add %%defattr * Thu Aug 28 2003 snwint@suse.de - graphics patch had been accidentally disabled * Thu Aug 14 2003 duwe@suse.de - another graphics consolidation, to allow modular maintenance * Thu Jul 31 2003 duwe@suse.de - reconsolidated graphics patches - fix for machines with > 1GB of mem (thanks to Karsten Keil for reporting/finding this) - fix for hardware RAID device naming scheme * Tue May 27 2003 snwint@suse.de - no graphics menu if 'savedefault --once' is used (#25356) * Wed May 21 2003 mmj@suse.de - Don't package grub-terminfo * Sat Mar 8 2003 snwint@suse.de - no graphics menu if 'hiddenmenu' is used (#23538) * Thu Mar 6 2003 kukuk@suse.de - Remove not used cyrus-sasl from neededforbuild * Wed Feb 19 2003 duwe@suse.de - use -minline-all-stringops to work around broken gcc * Tue Feb 11 2003 ro@suse.de - combine the two postinstalls * Mon Feb 10 2003 mmj@suse.de - Use %%install_info macros [#23420] * Mon Feb 10 2003 snwint@suse.de - fixed evil bug in graphics patch * Mon Feb 10 2003 duwe@suse.de - Now build network and non-network stage2 (Blocker #23502 ) - #19984 considered fixed now, too * Sun Feb 9 2003 snwint@suse.de - updated graphics patch * Thu Feb 6 2003 duwe@suse.de - update to 0.93 version - patches rediffed accordingly - gfx patches consolidated - made patch to force LBA off (untested) * Thu Jan 16 2003 nadvornik@suse.cz - fixed the 'valid preprocessing token' error * Thu Nov 28 2002 duwe@suse.de - added an "important" security fix ;-) passwd not working along with gfxmenu is now made obvious and warned about. - made grub compile with gcc-3.3 and hopefully up. * Thu Nov 14 2002 duwe@suse.de (candidate to PUTONFTP -- please test) - imported totally rewritten memory layout handling from CVS. This should work around the broken nforce chipsets. - made device.map more robust: * use /boot/grub/device.map by default if it exists * erroneous lines are now skipped, and don't lead to no device.map at all any more. * Thu Oct 10 2002 kukuk@suse.de - remove requires from bootsplash * Wed Sep 11 2002 adrian@suse.de - remove PreReq to itself * Tue Sep 10 2002 duwe@suse.de - added --disable-auto-linux-mem-opt to ./configure options. This prevents grub from arbitrarily adding "mem=" to kernel opts. This anachronism was necessary for some 2.2 Linux kernels, and breaks on MXT machines (#19288). * Fri Sep 6 2002 duwe@suse.de - added "lilo -R" feature on strong popular demand (#18538) * Tue Sep 3 2002 snwint@suse.de - fixed Requires * Tue Aug 27 2002 snwint@suse.de - graphics: free some memory before loading kernel (#18291) * Mon Aug 26 2002 sf@suse.de - add glibc-devel-32bit to compile on x86_64 * Thu Aug 22 2002 sf@suse.de - added x86_64 - compile with -m32 -fno-unwind-asynchronous-tables on x86_64 * Tue Aug 20 2002 mmj@suse.de - Correct PreReq * Wed Jul 24 2002 duwe@suse.de - converted to safe update scheme using /etc/grub.conf * stage* are now copied from /usr/lib/grub [FHS compliant] to /boot/grub and remain functioning after uninstall. Now configurable with next Yast2; remove previous versions with "rpm -e", from here on "rpm -U" simply works. - grub shell & friends moved to /usr/sbin (you already have that functionality w/ GRUB even before the kernel is booted, save for a mounted root FS) * Thu Jul 18 2002 snwint@suse.de - basic graphics patch * Thu Jun 20 2002 stepan@suse.de - update to 0.92 (bugfix release) * Thu Apr 4 2002 pthomas@suse.de - Fixed to build with new autoconf/automake. * Fri Feb 1 2002 pthomas@suse.de - Update to 0.91 - Clean up spec file. - Handle the chase of /boot not being on its own partition correctly. * Mon Mar 19 2001 tw@suse.de - switched to grub 0.5.96.1 so the patch of device.c is no longer needed - build --recheck into the installgrub-script * Mon Jan 15 2001 tw@suse.de - Don't install the stage bootloaders in /usr/share as FHS prohibits doing so. - Because the stage-bootloaders are not in /usr/share, they have to be copied by "grub-install". - Added a new script to ./util "installgrub", which automatically searches the most common partition-types, the kernels and the initrds and installs the bootmanager without action by the user. - There was a bug in ./lib/device.c, that causes a DISK WRITE ERROR. It is fixed now. (Only a O_RDONLY needed to be changed to O_RDRW)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor