[DragonFlyBSD - Submit #3201] (In Progress) Fixes make search display

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sat Jan 7 09:26:53 PST 2023


Issue #3201 has been updated by daftaupe.

Category set to DPorts
Status changed from New to In Progress
Assignee set to daftaupe

Hi,

it seems the search functionnality is still broken as of today (I didn't know about that one actually).

First thing is that it seems there's an error in /usr/dports/Mk/bsd.port.subdir.mk as reported when trying
<pre><code class="shell">
% make fetchindex
make: "/usr/dports/Mk/bsd.port.subdir.mk" line 151: if-less endif
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/dports
</code></pre>

I was able to fix that with the following diff
<pre><code class="shell">
git diff Mk/bsd.port.subdir.mk
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
index ac241d9e07d..57482f5831b 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -148,8 +148,6 @@ UID!=       ${ID} -u
 .  endif
 _EXPORTED_VARS+=       UID

-.endif
-
 INDEXDIR?=     ${PORTSDIR}
 INDEXFILE?=    INDEX
</code></pre>

Then an INDEX file is required and the URL defined by MASTER_SITE_INDEX?= is not available anymore
I was able to workaround by using https://sting.dragonflybsd.org/dports/ instead of http://muscles.dragonflybsd.org/ in the Makefile, but not sure that's the right location as sting is used for the stage branch, not for master branch of dports so INDEX should contain a different set of data.

It was possible to run the following
<pre><code class="shell">
% make search name=wxPython
Port:	py39-wxPython41-4.1.1
Path:	/usr/dports/x11-toolkits/py-wxPython4
Info:	GUI toolkit for the Python programming language
Maint:	desktop at FreeBSD.org
B-deps:	
R-deps:	
WWW:	

Port:	x11-toolkits/py-wxPython26
Moved:	x11-toolkits/py-wxPython28
Date:	2014-03-24
Reason:	wxPython26 is EOLed

Port:	x11-toolkits/py-wxPython26-common
Moved:	x11-toolkits/py-wxPython28-common
Date:	2014-03-24
Reason:	wxPython26 is EOLed

Port:	x11-toolkits/py-wxPython26-unicode
Moved:	x11-toolkits/py-wxPython28-unicode
Date:	2014-03-24
Reason:	wxPython26 is EOLed

Port:	x11-toolkits/py-wxPython28-unicode
Moved:	x11-toolkits/py-wxPython28
Date:	2015-09-16
Reason:	Make wxGTK now only unicode

Port:	x11-toolkits/py-wxPython-common
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython28-common
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython30
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython28
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython40
Moved:	x11-toolkits/py-wxPython4
Date:	2022-02-25
Reason:	Renamed to py-wxPython4
</code></pre>

After applying your patch, it was slightly better, but the WWW still appaered blank, I had no time to investigate further.
<pre><code class="shell">
% patch < fix_make_search_info_display.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
|index 8fef2e048b7..e316b87703e 100644
|--- a/Mk/bsd.port.subdir.mk
|+++ b/Mk/bsd.port.subdir.mk
--------------------------
Patching file Mk/bsd.port.subdir.mk using Plan A...
Hunk #1 succeeded at 428 (offset -2 lines).
Hunk #2 succeeded at 474 (offset -2 lines).
Hunk #3 succeeded at 483 (offset -2 lines).
Hunk #4 succeeded at 499 (offset -2 lines).
done
% make search name=wxPython
Port:	py39-wxPython41-4.1.1
Path:	/usr/dports/x11-toolkits/py-wxPython4
Info:	GUI toolkit for the Python programming language
Maint:	desktop at FreeBSD.org
B-deps:	/usr/dports/devel/gettext-runtime /usr/dports/devel/gettext-tools /usr/dports/devel/pkgconf /usr/dports/devel/py-pathlib2 /usr/dports/devel/py-setuptools /usr/dports/graphics/libGLU /usr/dports/lang/python39 /usr/dports/x11-toolkits/wxgtk31 /usr/dports/x11/xorgproto
R-deps:	/usr/dports/devel/gettext-runtime /usr/dports/devel/py-setuptools /usr/dports/graphics/libGLU /usr/dports/lang/python39 /usr/dports/x11-toolkits/wxgtk31
WWW:	https://www.wxpython.org

Port:	x11-toolkits/py-wxPython26
Moved:	x11-toolkits/py-wxPython28
Date:	2014-03-24
Reason:	wxPython26 is EOLed

Port:	x11-toolkits/py-wxPython26-common
Moved:	x11-toolkits/py-wxPython28-common
Date:	2014-03-24
Reason:	wxPython26 is EOLed

Port:	x11-toolkits/py-wxPython26-unicode
Moved:	x11-toolkits/py-wxPython28-unicode
Date:	2014-03-24
Reason:	wxPython26 is EOLed

Port:	x11-toolkits/py-wxPython28-unicode
Moved:	x11-toolkits/py-wxPython28
Date:	2015-09-16
Reason:	Make wxGTK now only unicode

Port:	x11-toolkits/py-wxPython-common
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython28-common
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython30
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython28
Moved:	
Date:	2020-08-15
Reason:	Has expired: Uses deprecated version of python

Port:	x11-toolkits/py-wxPython40
Moved:	x11-toolkits/py-wxPython4
Date:	2022-02-25
Reason:	Renamed to py-wxPython4
</code></pre>

So the patch is still working as intended. The thing is, why are our INDEX files not showing anything for field 8, 9 and 10, that is bdeps, rdeps and www.
Do we have a custom script generating them or something ?


----------------------------------------
Submit #3201: Fixes make search display
http://bugs.dragonflybsd.org/issues/3201#change-14461

* Author: htse
* Status: In Progress
* Priority: Normal
* Assignee: daftaupe
* Category: DPorts
* Target version: 6.4
* Start date: 2019-08-17
----------------------------------------
when doing /usr/dports/Makefile's 'make search' 

the result is incorrectly displayed:
<pre>
B-deps is empty
R-deps is empty
WWW is empty
</pre>

current:
--------
<pre>
Port:   py27-wxPython30-3.0.2.0_7
Path:   /usr/dports/x11-toolkits/py-wxPython30
Info:   GUI toolkit for the Python programming language
Maint:  python at FreeBSD.org
B-deps:
R-deps: 
WWW:  
</pre> 

corrections are done in Mk/bsd.port.subdir.mk, function changed starts at line 380:
fixed a typo and corrected the offsets

result:
-------
<pre>
Port:   py27-wxPython30-3.0.2.0_7
Path:   /usr/dports/x11-toolkits/py-wxPython30
Info:   GUI toolkit for the Python programming language
Maint:  python at FreeBSD.org
B-deps: /usr/dports/devel/gettext-runtime /usr/dports/devel/gettext-tools /usr/dports/devel/pkgconf /usr/dports/devel/py-setuptools /usr/dports/lang/python27 /usr/dports/x11-toolkits/wxgtk30
R-deps: /usr/dports/devel/gettext-runtime /usr/dports/devel/py-setuptools /usr/dports/lang/python27 /usr/dports/x11-toolkits/py-wxPython-common /usr/dports/x11-toolkits/wxgtk30
WWW:    http://www.wxpython.org
</pre>

which is the desired info-display

---Files--------------------------------
fix_make_search_info_display.patch (3.61 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Submit mailing list