Re: Port update and consumers bump

From: Moin Rahman <bofh_at_freebsd.org>
Date: Sat, 07 Oct 2023 11:49:02 UTC

> On Oct 7, 2023, at 1:42 PM, Nuno Teixeira <eduardo@freebsd.org> wrote:
> 
> git grep is cool for an AND condition.
> 
> git grep -l -e USE_WX --and -e 3.2 | sed s,/Makefile,,
This 3.2 search might be counterproductive as we have an option "3.0+" which also indicates 3.2 as a valid value.

My workflow is a bit different. I normally use rg/ripgrep.
For this case I would have done:
rg USE_WX --max-depth 3 -tmake --no-heading > /tmp/wx_list
will go through the list of file in an editor and make the final list for bumping.

> I will check list and then run bump-revision.sh on list created.
> 
> Thanks
> 
> Moin Rahman <bofh@freebsd.org> escreveu no dia sábado, 7/10/2023 à(s) 12:16:
> 
> 
> > On Oct 7, 2023, at 1:09 PM, Nuno Teixeira <eduardo@freebsd.org> wrote:
> >
> > Hello Kurt,
> >
> > On git ports root:
> >
> > grep -Rl 'x11-toolkits/wxgtk32' [a-ce-z]* d[a-hj-z]* > /tmp/list
> >
> > Gives an empty list file.
> >
> > Do I missing something?
> YES. Please search for USE_WX.
> 
> > Kurt Jaeger <pi@freebsd.org> escreveu no dia sábado, 7/10/2023 à(s) 11:52:
> > Hi!
> >
> > > I'm working on x11-toolkits/wxgtk32 update.
> > >
> > > What's the correct method to do this wotk since it involves bumping
> > > consumers?
> > > Can't find it in Porter's handbook.
> > >
> > > For now I did:
> > >
> > > 1. Update x11-toolkits/wxgtk32 and test build
> > > 2. Build consumers `portgrep -o USE_WX 3.2`
> > > 3. Run test some of consumers
> > >
> > > I've noticed that Tools/scripts/bump-revision.sh exists but I've never used
> > > it.
> >
> > To find the depending ports, cd to the ports git checkout:
> >
> > grep -Rl '<cat>/<port>' [a-ce-z]* d[a-hj-z]* > /tmp/list
> >
> > Check the list, if no errors are in the list, then:
> >
> > Tools/scripts/bump-revision.sh `cat /tmp/list`
> >
> > --
> > pi@FreeBSD.org         +49 171 3101372                  Now what ?
> >
> >
> > --
> > Nuno Teixeira
> > FreeBSD Committer (ports)
> 
> 
> 
> --
> Nuno Teixeira
> FreeBSD Committer (ports)