Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2023 14:14:26 -0300
From:      Renato Botelho <garga@FreeBSD.org>
To:        Dan Langille <dan@langille.org>, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: output of RUN_DEPENDS changes unexpectedly
Message-ID:  <2545dee6-a7be-4f71-bf43-24010ebb88c2@FreeBSD.org>
In-Reply-To: <f710ad9e-e6b4-4fde-b34d-a030335c309d@FreeBSD.org>
References:  <51D9023C-5829-4615-9A16-3060853CD9C0@langille.org> <f710ad9e-e6b4-4fde-b34d-a030335c309d@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26/10/23 14:11, Renato Botelho wrote:
> On 24/10/23 15:45, Dan Langille wrote:
>> Hello,
>>
>> I noticed an anomaly today.
>>
>> Watch how the output of make -V RUN_DEPENDS changes for tomcat-devel 
>> as we move through the tree.
>>
>> This is a fresh checkout of ports
>> [18:40 empty dan /usr/ports] % cd www/tomcat-devel
>> [18:41 empty dan /usr/ports/www/tomcat-devel] % make -V RUN_DEPENDS
>> jsvc:devel/apache-commons-daemon 
>> /usr/local/openjdk21/bin/java:java/openjdk21
>>
>> The above is valid output
>>
>> [18:41 empty dan /usr/ports/www/tomcat-devel] % git checkout  5699269
>> Note: switching to '5699269'.
>>
>> You are in 'detached HEAD' state. You can look around, make experimental
>> changes and commit them, and you can discard any commits you make in this
>> state without impacting any branches by switching back to a branch.
>>
>> If you want to create a new branch to retain commits you create, you may
>> do so (now or later) by using -c with the switch command. Example:
>>
>>    git switch -c <new-branch-name>
>>
>> Or undo this operation with:
>>
>>    git switch -
>>
>> Turn off this advice by setting config variable advice.detachedHead to 
>> false
>>
>> HEAD is now at 569926974bfd www/tomcat{85,9,101}: adjust rc.d script 
>> to support Java versions 20+
>> [18:42 empty dan /usr/ports/www/tomcat-devel] % make -V RUN_DEPENDS
>> jsvc:devel/apache-commons-daemon /bin/java:
>>
>>
>> That's not right.
>>
>> I tried commits before and after 5699269 - both good.
>>
>> Inquiring minds, FreshPorts not the least, wants to know why the 
>> RUN_DEPENDS failed for that commit.
>>
>>
>> [18:43 empty dan /usr/ports/www/tomcat-devel] % git checkout  d994e83
>> Previous HEAD position was 569926974bfd www/tomcat{85,9,101}: adjust 
>> rc.d script to support Java versions 20+
>> HEAD is now at d994e83b45c4 net-mgmt/ocsinventory-{server,ocsreports}: 
>> Update to 2.12.1
>> [18:44 empty dan /usr/ports/www/tomcat-devel] % make -V RUN_DEPENDS   
>> jsvc:devel/apache-commons-daemon 
>> /usr/local/openjdk21/bin/java:java/openjdk21
>>
>>
>> [18:44 empty dan /usr/ports/www/tomcat-devel] % git checkout 2fdb6fb
>> Previous HEAD position was d994e83b45c4 
>> net-mgmt/ocsinventory-{server,ocsreports}: Update to 2.12.1
>> HEAD is now at 2fdb6fb45908 www/tomcat{85,9,101}: adjust rc.d script 
>> to support Java versions 20+
>> [18:44 empty dan /usr/ports/www/tomcat-devel] % make -V RUN_DEPENDS  
>> jsvc:devel/apache-commons-daemon 
>> /usr/local/openjdk21/bin/java:java/openjdk21
> 
> I suspect it's related to the problem reported here:
> 
> https://lists.freebsd.org/archives/freebsd-ports/2023-October/004814.html
> 
> It seems like when you checkout 5699269 your tree is moved to a point of 
> quarterly 2023Q4.  I see it here as remotes/freebsd/2023Q4~7
> 
> Then those java commits are missing and it's not possible to satisfy 
> dependencies.

I forgot to add on previous email the commit log of 5699269, which has 
"Cherry picked from" string on it, what means it's really the commit 
from quarterly branch:

commit 569926974bfd179c1806afbe7794aa6d3a73e255 (HEAD)
Author: Vladimir Druzenko <vvd@FreeBSD.org>
Date:   Tue Oct 24 13:28:14 2023 +0300

     www/tomcat{85,9,101}: adjust rc.d script to support Java versions 20+

     Approved by:    arrowd (mentor, implicit)
     MFH:            2023Q4

     (cherry picked from commit 2fdb6fb459089fdb15101c5974b3fa45baef1775)

So if you checkout original commit, 2fdb6fb459, you won't see the problem.

❯ make -V RUN_DEPENDS
jsvc:devel/apache-commons-daemon 
/usr/local/openjdk21/bin/java:java/openjdk21

-- 
Renato Botelho




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2545dee6-a7be-4f71-bf43-24010ebb88c2>