Hello.
I fixed bug
"md5crypt" command is not built in
and made fix patch.
1. problem
I use i686 linux box.
distribution: Plamo Linux 2.0 (Japanized Slackware)
kernel: 2.4.6
glibc: 2.2.3
gcc: 2.95.3
binutils: 2.11.2
bash: 2.05
I expand source grub-0.90.tar.gz and build grub.
% tar zxvf grub-0.90.tar.gz
% cd grub-0.90
% ./configure --prefix=/usr
% make
The compilation is exited normally. But "md5crypt" command is not
work.
% ./grub/grub
---- in grub shell ----
grub> md5crypt
Error 27: Unrecognized command
grub>
I execute "strings ./grub/grub" and search word "md5crypt".
The word is only found in parttype description.
2. cause
./configure makes many flags and stores in the variable FSYS_FLAGS and
so on. But Makefile is not use these variables.
3. solutions
* Edit "config.h" after executing ./configure.
* Use FSYS_FLAGS in *CFLAGS variables. I make a patch for this solution.
The patch is below.
---- grub-0.90-md5crypt.patch ----
diff -aurN grub-0.90.orig/ChangeLog grub-0.90/ChangeLog
--- grub-0.90.orig/ChangeLog Sat Jul 21 17:53:21 2001
+++ grub-0.90/ChangeLog Sat Jul 21 18:22:55 2001
@@ -1,3 +1,16 @@
+2001-07-21 YAMAGUCHI Shingo <[EMAIL PROTECTED]>
+
+ * grub/Makefile.am: Use $(FSYS_CFLAGS) in AM_CFLAGS for use
+ USE_MD5_PASSWORDS flag (or other flags setted by ./configure).
+ * grub/Makefile.in: Use $(FSYS_CFLAGS) in AM_CFLAGS for use
+ USE_MD5_PASSWORDS flag (or other flags setted by ./configure).
+ * stage2/Makefile.am: Use $(FSYS_CFLAGS) and $(SERIAL_FLAGS) in
+ libgrub_a_CFLAGS for use USE_MD5_PASSWORDS flag (or other flags
+ setted by ./configure).
+ * stage2/Makefile.in: Use $(FSYS_CFLAGS) and $(SERIAL_FLAGS) in
+ libgrub_a_CFLAGS for use USE_MD5_PASSWORDS flag (or other flags
+ setted by ./configure).
+
2001-07-07 OKUJI Yoshinori <[EMAIL PROTECTED]>
* netboot/compile: New file. This was also missing... How many
diff -aurN grub-0.90.orig/grub/Makefile.am grub-0.90/grub/Makefile.am
--- grub-0.90.orig/grub/Makefile.am Sat Jul 21 17:53:21 2001
+++ grub-0.90/grub/Makefile.am Sat Jul 21 18:23:21 2001
@@ -6,8 +6,7 @@
SERIAL_FLAGS = -DSUPPORT_SERIAL=1
endif
-AM_CFLAGS = $(GRUB_CFLAGS) -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 \
- -DFSYS_FFS=1 -DFSYS_MINIX=1 $(SERIAL_FLAGS) \
+AM_CFLAGS = $(GRUB_CFLAGS) -DGRUB_UTIL=1 $(FSYS_CFLAGS) $(SERIAL_FLAGS) \
-fwritable-strings -I$(top_srcdir)/stage2 \
-I$(top_srcdir)/stage1 -I$(top_srcdir)/lib
diff -aurN grub-0.90.orig/grub/Makefile.in grub-0.90/grub/Makefile.in
--- grub-0.90.orig/grub/Makefile.in Sat Jul 21 17:53:21 2001
+++ grub-0.90/grub/Makefile.in Sat Jul 21 18:23:21 2001
@@ -89,8 +89,7 @@
@SERIAL_SPEED_SIMULATION_TRUE@SERIAL_FLAGS = -DSUPPORT_SERIAL=1
-DSIMULATE_SLOWNESS_OF_SERIAL=1
@SERIAL_SPEED_SIMULATION_FALSE@SERIAL_FLAGS = -DSUPPORT_SERIAL=1
-AM_CFLAGS = $(GRUB_CFLAGS) -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 \
- -DFSYS_FFS=1 -DFSYS_MINIX=1 $(SERIAL_FLAGS) \
+AM_CFLAGS = $(GRUB_CFLAGS) -DGRUB_UTIL=1 $(FSYS_CFLAGS) $(SERIAL_FLAGS) \
-fwritable-strings -I$(top_srcdir)/stage2 \
-I$(top_srcdir)/stage1 -I$(top_srcdir)/lib
diff -aurN grub-0.90.orig/stage2/Makefile.am grub-0.90/stage2/Makefile.am
--- grub-0.90.orig/stage2/Makefile.am Sat Jul 21 17:53:21 2001
+++ grub-0.90/stage2/Makefile.am Sat Jul 21 18:23:21 2001
@@ -18,9 +18,8 @@
disk_io.c gunzip.c fsys_ffs.c fsys_ext2fs.c fsys_fat.c \
fsys_minix.c fsys_reiserfs.c fsys_vstafs.c stage2.c md5.c
libgrub_a_CFLAGS = $(GRUB_CFLAGS) -I$(top_srcdir)/lib \
- -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 \
- -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 \
- -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -fwritable-strings
+ -DGRUB_UTIL=1 $(FSYS_CFLAGS) $(SERIAL_FLAGS) \
+ -DSUPPORT_HERCULES=1 -fwritable-strings
# Stage 2 and Stage 1.5's.
pkgdatadir = $(datadir)/$(PACKAGE)/$(host_cpu)-$(host_vendor)
diff -aurN grub-0.90.orig/stage2/Makefile.in grub-0.90/stage2/Makefile.in
--- grub-0.90.orig/stage2/Makefile.in Sat Jul 21 17:53:21 2001
+++ grub-0.90/stage2/Makefile.in Sat Jul 21 18:23:21 2001
@@ -109,9 +109,8 @@
fsys_minix.c fsys_reiserfs.c fsys_vstafs.c stage2.c md5.c
libgrub_a_CFLAGS = $(GRUB_CFLAGS) -I$(top_srcdir)/lib \
- -DGRUB_UTIL=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 -DFSYS_FFS=1 \
- -DFSYS_MINIX=1 -DFSYS_REISERFS=1 -DFSYS_VSTAFS=1 \
- -DSUPPORT_SERIAL=1 -DSUPPORT_HERCULES=1 -fwritable-strings
+ -DGRUB_UTIL=1 $(FSYS_CFLAGS) $(SERIAL_FLAGS) \
+ -DSUPPORT_HERCULES=1 -fwritable-strings
EXTRA_PROGRAMS = nbloader.exec pxeloader.exec diskless.exec
---- grub-0.90-md5crypt.patch ----
I seems to rebuild Makefile.* because the relation of the name of
variables and flags is confused.
----
YAMAGUCHI Shingo
Toyama Univ. Japan
[EMAIL PROTECTED]
_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub