<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>45998</bug_id>
          
          <creation_ts>2004-03-28 08:11 0000</creation_ts>
          <short_desc>Either pmake or ext3 is broken.  &quot;make: no system rules (sys.mk).&quot;</short_desc>
          <delta_ts>2004-04-04 21:19:34 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kbob@jogger-egg.com</reporter>
          <assigned_to>agriffis@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>kbob@jogger-egg.com</who>
            <bug_when>2004-03-28 08:11:16 0000</bug_when>
            <thetext>pmake prints &quot;make: no system rules (sys.mk).&quot; 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&apos;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&apos;re in the middle.  (gentoo-sources-2.4.22-r7 is
my kernel.)

I&apos;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&apos;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 ~&gt; 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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=pentium4 -O3 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=pentium4 -O3 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache distcc sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j7&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kbob@jogger-egg.com</who>
            <bug_when>2004-03-28 08:17:02 0000</bug_when>
            <thetext>Created an attachment (id=28215)
patch pmake to not assume . and .. first

This patch changes pmake&apos;s directory reading loop to not assume . and .. are
the first two entries.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agriffis@gentoo.org</who>
            <bug_when>2004-04-04 21:19:34 0000</bug_when>
            <thetext>I guess you didn&apos;t test building with your patch, eh?
I applied a modified version, thanks...</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>28215</attachid>
            <date>2004-03-28 08:17 0000</date>
            <desc>patch pmake to not assume . and .. first</desc>
            <filename>pmake.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBtYWtlLTEuNDUub3JpZy9kaXIuYwkxOTk3LTA5LTI4IDA0OjQ2OjM5LjAwMDAwMDAwMCAt
MDcwMAorKysgcG1ha2UtMS40NS9kaXIuYwkyMDA0LTAzLTI4IDA3OjAzOjI3LjAwMDAwMDAwMCAt
MDgwMApAQCAtMTE3MCwxMyArMTE3MCwxMyBAQAogCSAgICBwLT5yZWZDb3VudCA9IDE7CiAJICAg
IEhhc2hfSW5pdFRhYmxlICgmcC0+ZmlsZXMsIC0xKTsKIAotCSAgICAvKgotCSAgICAgKiBTa2lw
IHRoZSBmaXJzdCB0d28gZW50cmllcyAtLSB0aGVzZSB3aWxsICphbHdheXMqIGJlIC4gYW5kIC4u
Ci0JICAgICAqLwotCSAgICAodm9pZClyZWFkZGlyKGQpOwotCSAgICAodm9pZClyZWFkZGlyKGQp
OwotCiAJICAgIHdoaWxlICgoZHAgPSByZWFkZGlyIChkKSkgIT0gKHN0cnVjdCBkaXJlbnQgKikg
TlVMTCkgeworCQkvKgorCQkgKiBTa2lwICIuIiBhbmQgIi4uIi4KKwkJICovCisJCWlmICghc3Ry
Y21wKGQtPmRfbmFtZSwgIi4iKSB8fCAhc3RyY21wKGQtPmRfbmFtZSwgIi4uIikpIHsKKwkJICAg
IGNvbnRpbnVlCisJCX0KICNpZiBkZWZpbmVkKHN1bikgJiYgZGVmaW5lZChkX2lubykgLyogZF9p
bm8gaXMgYSBzdW5vczQgI2RlZmluZSBmb3IgZF9maWxlbm8gKi8KIAkJLyoKIAkJICogVGhlIHN1
biBkaXJlY3RvcnkgbGlicmFyeSBkb2Vzbid0IGNoZWNrIGZvciBhIDAgaW5vZGUK
</data>        

          </attachment>
    </bug>

</bugzilla>