Re: CURRENT: lang/gcc fails to build on CURRENT with error: configure: error: no usable dependency style found

2013-03-12 Thread Mark Johnston
On Mon, Mar 11, 2013 at 02:18:51PM -0700, Steve Kargl wrote:
> On Mon, Mar 11, 2013 at 10:05:47PM +0100, Dimitry Andric wrote:
> > On 2013-03-11 20:00, Jan Beich wrote:
> > > Dimitry Andric  writes:
> > > 
> > >> $ echo 'sub/foo.barx' | grep sub/foo.bar
> > >> $ echo $?
> > >> 1
> > > 
> > > $ echo 'sub/foo.barx' | env -i grep sub/foo.bar
> > > $ echo 'sub/foolbarx' | env -i grep sub/foo.bar
> > > $ echo 'sub/foo.barx' | env -i grep 'sub/foo\.bar'
> > > sub/foo.barx
> > > $ echo 'sub/foo.barx' | env -i grep -o sub/foo.bar
> > > sub/foo.bar
> > > $ echo 'sub/foo.barx' | env -i grep --color=no sub/foo.bar
> > > sub/foo.barx
> > > 
> > > A buggy shortcut?
> > 
> > No, after some digging in and debugging of the bsdgrep code, I
> > found out it is a regression caused by r246917, which is a fix
> > for "bin/175213: [patch] bsdgrep(1) segfaults upon malicious input".
> > If you revert it, bsdgrep starts working correctly again.
> 
> First, I can report that bootstrapping gcc-4.8.0 works if I use
> gnugrep instead of bsdgrep.  The above explains why I had previously
> seen the failure as I was using an older bsdgrep.
> 
> Second, an apology is owed to the clang gang as I attributed the 
> problem to clang as it showed up on my system after converted 
> everything over to clang.  
> 
> > I think it would be best to back out r246917 for now, until the
> > regression can be fixed properly.  Having bsdgrep crash is bad,
> > but not returning any results while it should is even worse...
> 
> I tend to agree with your assessment that r246817 should be
> reverted, because I hit this issue in configure scripts and
> there is a large amount of software that uses autotool for
> configuration.

Sorry about this, I will revert it and revisit the problem. I've been
using bsdgrep by default for a while and somehow haven't run into this.

-Mark
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: TeXLive

2011-10-09 Thread Mark Johnston
On Sun, Oct 09, 2011 at 04:26:18PM -0400, Carmel wrote:
> On Sun, 9 Oct 2011 21:20:24 +0200
> Grzegorz Blach articulated:
> 
> > TeXLive ports are available from external source:
> > https://code.google.com/p/freebsd-texlive/
> 
> So, it is not really a port, per se, but rather a CD ISO I can
> download for instance. I would have rather thought with the popularity
> in the non-Windows world of LaTex, etcetera that someone would have
> ported this to FreeBSD by now. I have a version of "MiKTEX" running on
> one of my Windows machines.

TeXLive _has_ been ported to FreeBSD, it's just not in the ports tree.
You are supposed to use ports-mgmt/portshaker to augment your tree
with the TexLive ports. That is, unless you want to download the
pre-built packages available on the site above (which I haven't tried).

TeXLive works perfectly well for me on BETA-2 - I just stopped working on a
document to respond to this email. =)

-Mark
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Interactive tool for installing packages

2010-11-09 Thread Mark Johnston
On Tue, Nov 09, 2010 at 09:32:15PM +0200, Marin Atanasov Nikolov wrote:
> Hello,
> 
> Some time ago I've started a thread on freebsd-ports@ regarding an
> interactive tool for installing packages under FreeBSD - pkg_add_it.
> 
> Now that I got some time to work on the program, I have added a few
> additional features to it, which I think someone might find useful
> like:
> 
>  - dependencies tree view of packages (useful to find out package 
> dependencies)
>  - a similar tool that does this already exists - pkg_tree, but it
> only works for installed ports, while pkg_add_it can show you every
> package from INDEX
>  - regex support
>  - displays categories and packages from each of them found in INDEX
>  - some code improvements, etc...
> 
> The code can be found here [1] and in order to install the program, you need 
> to:
> 
> # git clone git://git.unix-heaven.org/public/pkg_add_it
> # cd pkg_add_it && make install clean
> 
> I still haven't updated the manual pages yet, but you can read
> something about the program on the web page [2].
> 
> Screenshots can be seen as well. [3]
> 
> Would be nice if someone can test it, and provide some feedback - what
> can be removed, improved, added, etc..
> 
> Surely, there's room for improvement, but that's a start.. :)
> 
> Thanks,
> Marin
> 
> [1] git.unix-heaven.org
> [2] www.unix-heaven.org/index.php?page=pkg_add_it
> [3] http://www.unix-heaven.org/pkg_add_it-new-gfx/
> 
> -- 
> Marin Atanasov Nikolov
> 
> dnaeon AT gmail DOT com
> daemon AT unix-heaven DOT org
> http://www.unix-heaven.org/

It looks pretty neat. I spent a minute or two trying it out, and my only
suggestion at this point is to check errno for common errors instead of 
immediately calling ERRX to report non-zero returns from system calls.
It's kind of annoying to see a message like

pkg_add_it: Error in config_read_file() from config.c at line 179: No
such file or directory

when it's my fault that pkg_add_it can't find its config file. =)
Ditto for things like permissions errors and getenv(3). sudo doesn't
bring in my environment unless I use -E, so I get the following message
when a 'getenv("PAGER")' fails:

pkg_add_it: Error in pkg_display_found() from pkg.c at line 418: No such
file or directory

-Mark




___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: Interactive tool for installing packages

2010-11-09 Thread Mark Johnston
On Tue, Nov 09, 2010 at 11:08:07PM +0200, Marin Atanasov Nikolov wrote:
> On Tue, Nov 9, 2010 at 10:59 PM, Mark Johnston  wrote:
> > On Tue, Nov 09, 2010 at 09:32:15PM +0200, Marin Atanasov Nikolov wrote:
> >> Hello,
> >>
> >> Some time ago I've started a thread on freebsd-ports@ regarding an
> >> interactive tool for installing packages under FreeBSD - pkg_add_it.
> >>
> >> Now that I got some time to work on the program, I have added a few
> >> additional features to it, which I think someone might find useful
> >> like:
> >>
> >> ?- dependencies tree view of packages (useful to find out package 
> >> dependencies)
> >> ?- a similar tool that does this already exists - pkg_tree, but it
> >> only works for installed ports, while pkg_add_it can show you every
> >> package from INDEX
> >> ?- regex support
> >> ?- displays categories and packages from each of them found in INDEX
> >> ?- some code improvements, etc...
> >>
> >> The code can be found here [1] and in order to install the program, you 
> >> need to:
> >>
> >> # git clone git://git.unix-heaven.org/public/pkg_add_it
> >> # cd pkg_add_it && make install clean
> >>
> >> I still haven't updated the manual pages yet, but you can read
> >> something about the program on the web page [2].
> >>
> >> Screenshots can be seen as well. [3]
> >>
> >> Would be nice if someone can test it, and provide some feedback - what
> >> can be removed, improved, added, etc..
> >>
> >> Surely, there's room for improvement, but that's a start.. :)
> >>
> >> Thanks,
> >> Marin
> >>
> >> [1] git.unix-heaven.org
> >> [2] www.unix-heaven.org/index.php?page=pkg_add_it
> >> [3] http://www.unix-heaven.org/pkg_add_it-new-gfx/
> >>
> >> --
> >> Marin Atanasov Nikolov
> >>
> >> dnaeon AT gmail DOT com
> >> daemon AT unix-heaven DOT org
> >> http://www.unix-heaven.org/
> >
> 
> Hello Mark,
> 
> > It looks pretty neat. I spent a minute or two trying it out, and my only
> > suggestion at this point is to check errno for common errors instead of
> > immediately calling ERRX to report non-zero returns from system calls.
> > It's kind of annoying to see a message like
> >
> > pkg_add_it: Error in config_read_file() from config.c at line 179: No
> > such file or directory
> 
> Yep, my fault, the port does not install the config file in
> /usr/local/etc/pkg_add_it.conf
> 
> I'll take care of adding it to the port :)

Well, it was more of a general suggestion. I didn't even install the
program - I just compiled and ran it. Nevertheless, I had to look at the
source to figure out what the actual problem was.

-Mark
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"