Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 45998
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Aron Griffis (RETIRED) <agriffis@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bob Miller <kbob@jogger-egg.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
pmake.patch patch pmake to not assume . and .. first patch Bob Miller 2004-03-28 08:17 0000 675 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 45998 depends on: Show dependency tree
Bug 45998 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-03-28 08:11 0000
pmake prints "make: no system rules (sys.mk)." and exits.
Investigation shows that pmake is reading /usr/share/mk/ and ignoring the first two entries, assuming that they are . and .. .  But they aren't.  The first is ., but .. is the 11th entry.

I thought . and .. had to be first, but my ext3 filesystems are full of directories where they're in the middle.  (gentoo-sources-2.4.22-r7 is
my kernel.)

I'll attach a patch for pmake that removes the assumption that . and ..
are first.

Reproducible: Always
Steps to Reproduce:
1. Use ext3 for /usr/share/mk.
2. ls -f /usr/share/mk, ensure that . and .. are not first two entries.  If
   necessary, copy files until they aren't.
3. /usr/bin/pmake

Actual Results:  
pmake printed this.
make: no system rules (sys.mk).

Expected Results:  
pmake should have made the stuff in the current directory.

jogger-egg ~> emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r7)
=================================================================
System uname: 2.4.22-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acpi acpi4linux aim alsa apache2 apm arts audiofile avi
berkdb bonobo cddb cdr crypt cscope cups curl distribution doc dv dvd emacs
encode esd ethereal faad fam fbcon ffmpeg flac flash foomaticdb gd gdbm ggi gif
gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq imagemagick
imlib ipv6 jabber java jpeg kde libg++ libwww mad matroska mbox mikmod mmx motif
mozilla moznoirc moznomail mozp3p mozxmlterm mpeg mpeg4 msn mysql ncurses nls
offensive oggvorbis openal opengl oscar oss pam pda pdflib perl png postgres
ppds psyco python qt quicktime radeon readline sdl slang slp speex spell sse ssl
svga tcltk tcpd tetex theora tiff truetype usb v4l video_cards_radeon wxwin x86
xml2 xmms xv xvid zlib"

------- Comment #1 From Bob Miller 2004-03-28 08:17:02 0000 -------
Created an attachment (id=28215) [details]
patch pmake to not assume . and .. first

This patch changes pmake's directory reading loop to not assume . and .. are
the first two entries.

------- Comment #2 From Aron Griffis (RETIRED) 2004-04-04 21:19:34 0000 -------
I guess you didn't test building with your patch, eh?
I applied a modified version, thanks...

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug