mistydemeo / tigerbrew

Experimental fork of homebrew for PPC Macs on Tiger
Other
537 stars 129 forks source link

brew install isc-dhcp fails with File name too long error #239

Open mgeeforce opened 10 years ago

mgeeforce commented 10 years ago
merry:~ mike$ brew install isc-dhcp
==> Downloading http://ftp.isc.org/isc/dhcp/4.3.0/dhcp-4.3.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/isc-dhcp-4.3.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/isc-dhcp/4.3.0 --localstatedir=/usr/local/var/dhcpd
==> make -C bind
==> make
==> make install
Error: File name too long - /usr/local/Cellar/isc-dhcp/4.3.0/etc/dhcpd.conf.example.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample or /usr/local/Cellar/isc-dhcp/4.3.0/etc/dhcpd.conf.example.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample.sample

I think this might be the culprit in the isc-dhcp.rb formulae but am not sure.

# rename all the installed sample etc/* files so they don't clobber
    # any existing config files at symlink time.
    Dir.open("#{prefix}/etc") do |dir|
      dir.each do |f|
        file = "#{dir.path}/#{f}"
        File.rename(file, "#{file}.sample") if File.file?(file)
      end
    end
mgeeforce commented 10 years ago

I commented out the above section of isc-dhcp.rb and it installed sucessfully.

mistydemeo commented 10 years ago

Yikes!

Have you installed this software with Homebrew before?

mgeeforce commented 10 years ago

No, bootpd on 10.5 and greater can satisfy PXE requirements (custom DHCP options) but I had an old PPC iMac (10.4.11) that can easily handle dhcp, tftp and http so I thought I would experiment. Actually works pretty slick!

I may try a test with just that offending code to see if I can reproduce that crazy loop on 10.4.11 /Ruby 1.8.2. (stock Apple)

There are lots of posts around stating that the standard brew install works on current platforms - so probably not something anyone will want to change the formula for.