| Newsgroups |
gmane.linux.lfs.beyond.devel |
| Message-ID |
<[email protected]> |
On Tue, 2025-08-26 at 11:16 +0800, Xi Ruoyao wrote:
> On Tue, 2025-08-26 at 09:18 +0800, Xi Ruoyao wrote:
> > On Mon, 2025-08-25 at 19:54 -0400, Joe Locash wrote:
> > > On 8/25/25 7:51 PM, "Douglas R. Reno" ([email protected] via
> > > blfs-dev Mailing List) wrote:
> > > > On 8/25/25 6:34 PM, Bruce Dubbs ([email protected] via blfs-dev
> > > > Mailing List) wrote:
> > > > > On 8/25/25 5:39 PM, Joe Locash ([email protected] via blfs-dev
> > > > > Mailing List) wrote:
> > > > > > On 8/25/25 6:28 PM, "Douglas R. Reno" ([email protected]
> > > > > > via blfs-dev Mailing List) wrote:
> > > > > > > Hey folks,
> > > > > > >
> > > > > > > I'm building nmap right now so that I can test gnome-nettool. While
> > > > > > > building it, I've run into the following error:
> > > > > > >
> > > > > > > g++ -Wl,-E -Lnbase -Lnsock/src/ -o nmap charpool.o
> > > > > > > FingerPrintResults.o FPEngine.o FPModel.o idle_scan.
> > > > > > > o MACLookup.o nmap_dns.o nmap_error.o nmap.o nmap_ftp.o NmapOps.o
> > > > > > > NmapOutputTable.o nmap_tty.o osscan2.o o
> > > > > > > sscan.o output.o payload.o portlist.o portreasons.o protocols.o
> > > > > > > scan_engine.o scan_engine_connect.o scan_e
> > > > > > > ngine_raw.o scan_lists.o service_scan.o services.o string_pool.o
> > > > > > > NewTargets.o TargetGroup.o Target.o targe
> > > > > > > ts.o tcpip.o timing.o traceroute.o utils.o xml.o nse_main.o
> > > > > > > nse_utility.o nse_nsock.o nse_db.o nse_dnet.o
> > > > > > > nse_fs.o nse_nmaplib.o nse_debug.o nse_lpeg.o nse_openssl.o
> > > > > > > nse_ssl_cert.o nse_libssh2.o nse_zlib.o main.o
> > > > > > > -lnsock -lnbase -lpcre2-8 -lpcap -lssh2 -lssl -lcrypto -lz
> > > > > > > libnetutil/ libnetutil.a ./libdnet-stripped/src
> > > > > > > /.libs/libdnet.a -llinear -llua
> > > > > > > cd zenmap && /usr/bin/python3
> > > > > > > install_scripts/utils/version_update.py "7.98"
> > > > > > > /sources/nmap-7.98/nmap-7.98/zenmap/install_scripts/utils/version_update.py:89:
> > > > > > > DeprecationWarning: 'count
> > > > > > > ' is passed as positional argument
> > > > > > > version = re.sub(r'(?=[^0-9.])', '+', version, 1)
> > > > > > > > > > Updating version number to "7.98"
> > > > > > > > > > Updating ./zenmapCore/Version.py
> > > > > > > > > > Updating ./zenmapCore/Name.py
> > > > > > > /usr/bin/python3 -m build --no-isolation zenmap/
> > > > > > > * Getting build dependencies for sdist...
> > > > > > > running egg_info
> > > > > > > creating zenmap.egg-info
> > > > > > > writing zenmap.egg-info/PKG-INFO
> > > > > > > writing dependency_links to zenmap.egg-info/dependency_links.txt
> > > > > > > writing entry points to zenmap.egg-info/entry_points.txt
> > > > > > > writing requirements to zenmap.egg-info/requires.txt
> > > > > > > writing top-level names to zenmap.egg-info/top_level.txt
> > > > > > > writing manifest file 'zenmap.egg-info/SOURCES.txt'
> > > > > > > ERROR setuptools_scm._file_finders.git listing git files failed -
> > > > > > > pretending there aren't any
> > > > > > > reading manifest file 'zenmap.egg-info/SOURCES.txt'
> > > > > > > adding license file 'LICENSE'
> > > > > > > adding license file 'COPYING_HIGWIDGETS'
> > > > > > > writing manifest file 'zenmap.egg-info/SOURCES.txt'
> > > > > > >
> > > > > > > ERROR Missing dependencies:
> > > > > > > setuptools-gettext
> > > > > > > make: *** [Makefile:354: build-zenmap] Error 1
> > > > > > > 56.1 Elasped Time - nmap-7.98
> > > > > > >
> > > > > > > It looks like nmap-7.98 was put in three days ago.
> > > > > > >
> > > > > > > The module it's asking for is setuptools-gettext, which can be
> > > > > > > found at https:// pypi.org/project/setuptools-gettext/
> > > > > > >
> > > > > > > Can anyone else reproduce this?
> > > > > >
> > > > > > I'm seeing the same thing.
> > > > >
> > > > > Hmm. I did not see that.
> > > > >
> > > > > sed -i 's/-m build/& --no-isolation/' Makefile.in &&
> > > > >
> > > > > ./configure --prefix=/usr &&
> > > > > make $BFLAGS &&
> > > > >
> > > > > sed -e '/import imp/d' \
> > > > > -e 's/^ndiff = .*$/import ndiff/' \
> > > > > -i ndiff/ndifftest.py
> > > > >
> > > > > # Tests need to be in a gui
> > > > > echo "BLFS Start CHECKS" &&
> > > > > (sudo make check || true) &&
> > > > >
> > > > > echo "BLFS Start INSTALL" &&
> > > > > # DESTDIR install is not honored for all operations
> > > > > # make DESTDIR=$DEST -n install &&
> > > > > $SUDO make install
> > > > > :
> > > > >
> > > > > I can attach the build log if desired.
> > > > >
> > > > > -- Bruce
> > > > >
> > > > >
> > > > Your script is close, but not quite :)
> > > >
> > > > Here's the instructions in the book:
> > > >
> > > > sed -ri Makefile.in \
> > > > -e 's#-m build#& --no-isolation#' \
> > > > -e '/pip install/s#(ZENMAP|NDIFF)DIR\)/#&dist/*.whl#'
> > > >
> > > >
> > > > and your script:
> > > >
> > > > sed -i 's/-m build/& --no-isolation/' Makefile.in &&
> > > >
> > > >
> > > > I think the second expression might be the cause.
> > >
> > > Neither sed works.
> >
> > The point is not those sed work. It's lacking the second sed can hide
> > the issue.
> >
> > I added those sed and IIRC without the first one the build process will
> > download copies of needed Python wheels from Internet, without the
> > second one the install process will ignore the wheels we already built
> > in the build process and build them again, and again download copies of
> > dependencies from the Internet.
> >
> > Thus I guess what happened on Bruce's system is with the first sed (but
> > not setuptools-gettext) the build actually fails, but without the second
> > sed a copy of setuptools-gettext is downloaded from the Internet at the
> > install stage and the issue is hided.
> >
> > So we need to add setuptools-gettext (unless we can find a way to
> > disable it). Adding "building this package requires an Internet
> > connection" is not a good option here because pip is downloading the
> > compiled wheels (instead of sources like cpan and cargo), and the
> > dependency is not simply used by the tests.
>
> The dependency is added to "build and install zenmap.mo" but even with
> it installed I still don't see zenmap.mo in the installation (with or
> without the book sed).
It's just useless until
https://github.com/breezy-team/setuptools-gettext/issues/94 is resolved.
I'm intending to just sed the dependency away.
--
Xi Ruoyao <[email protected]>
--
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page