LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SBo scripts not building on current (read 1st post, pls) (https://www.linuxquestions.org/questions/slackware-14/sbo-scripts-not-building-on-current-read-1st-post-pls-4175561999/)

sombragris 09-25-2022 02:37 PM

Cannot build the latest traitlets update:

Code:

traitlets-5.4.0/PKG-INFO
Traceback (most recent call last):
  File "/tmp/SBo/traitlets-5.4.0/setup.py", line 12, in <module>
    setup(name='traitlets',
  File "/usr/lib64/python3.9/site-packages/setuptools/_distutils/core.py", line 159, in setup
    dist.parse_config_files()
  File "/usr/lib64/python3.9/site-packages/setuptools/dist.py", line 868, in parse_config_files
    pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 62, in apply_configuration
    config = read_configuration(filepath, True, ignore_option_errors, dist)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 140, in read_configuration
    return expand_configuration(asdict, root_dir, ignore_option_errors, dist)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 195, in expand_configuration
    return _ConfigExpander(config, root_dir, ignore_option_errors, dist).expand()
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 242, in expand
    self._expand_all_dynamic(dist, package_dir)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 279, in _expand_all_dynamic
    obtained_dynamic = {
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 280, in <dictcomp>
    field: self._obtain(dist, field, package_dir)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 326, in _obtain
    self._ensure_previously_set(dist, field)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 305, in _ensure_previously_set
    raise OptionError(msg)
distutils.errors.DistutilsOptionError: No configuration found for dynamic 'description'.
Some dynamic fields need to be specified via `tool.setuptools.dynamic`
others must be specified via the equivalent attribute in `setup.py`.


USUARIONUEVO 09-25-2022 03:20 PM

Quote:

Originally Posted by sombragris (Post 6382518)
Cannot build the latest traitlets update:

Code:

traitlets-5.4.0/PKG-INFO
Traceback (most recent call last):
  File "/tmp/SBo/traitlets-5.4.0/setup.py", line 12, in <module>
    setup(name='traitlets',
  File "/usr/lib64/python3.9/site-packages/setuptools/_distutils/core.py", line 159, in setup
    dist.parse_config_files()
  File "/usr/lib64/python3.9/site-packages/setuptools/dist.py", line 868, in parse_config_files
    pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 62, in apply_configuration
    config = read_configuration(filepath, True, ignore_option_errors, dist)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 140, in read_configuration
    return expand_configuration(asdict, root_dir, ignore_option_errors, dist)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 195, in expand_configuration
    return _ConfigExpander(config, root_dir, ignore_option_errors, dist).expand()
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 242, in expand
    self._expand_all_dynamic(dist, package_dir)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 279, in _expand_all_dynamic
    obtained_dynamic = {
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 280, in <dictcomp>
    field: self._obtain(dist, field, package_dir)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 326, in _obtain
    self._ensure_previously_set(dist, field)
  File "/usr/lib64/python3.9/site-packages/setuptools/config/pyprojecttoml.py", line 305, in _ensure_previously_set
    raise OptionError(msg)
distutils.errors.DistutilsOptionError: No configuration found for dynamic 'description'.
Some dynamic fields need to be specified via `tool.setuptools.dynamic`
others must be specified via the equivalent attribute in `setup.py`.


The problem is the custom setup.py file , but im not sure if this can be fixed to STABLE + CURRENT , cause different versions of setuptools , i test installing with pip3 and installs triatlets using the wheel version , no use setup.py to install it.

Then the solution is make new setup.py compatible to stable+current or switch the slackbuild to use *whl installer.

fourtysixandtwo 09-25-2022 11:58 PM

1 Attachment(s)
Quote:

Originally Posted by sombragris (Post 6382518)
Cannot build the latest traitlets update:

Code:

traitlets-5.4.0/PKG-INFO
Traceback (most recent call last):
<snip>
distutils.errors.DistutilsOptionError: No configuration found for dynamic 'description'.
Some dynamic fields need to be specified via `tool.setuptools.dynamic`
others must be specified via the equivalent attribute in `setup.py`.


This has to do with trying to use a stub setup.py and changes to setuptools as setup.py is being deprecated. New slackbuilds have just been pushed out so we can update builds like this to the new build process.

Until Isaac gets a chance to update the build, try applying this patch I've attached.

sombragris 10-01-2022 03:22 PM

I just want to confirm that after today's update I was able to build traitlets without problems. Thanks Ponce and everyone involved!

ponce 10-01-2022 03:46 PM

Quote:

Originally Posted by sombragris (Post 6383814)
I just want to confirm that after today's update I was able to build traitlets without problems. Thanks Ponce and everyone involved!

I actually haven't done anything this time :)
I think the maintainer followed fourtysixandtwo's hints...

3rensho 10-05-2022 10:57 PM

Wireshark-4.0.0 didn't build
 
Running up to date Slack64-current

Tried to build Wireshark-4.0.0 and it crashed after chugging away for a bit with -

Code:

/tmp/SBo/wireshark-4.0.0/epan/dissectors/packet-lwm.c:419:21: note: at offset 192 into destination object ‘nwkSecurityVector’ of size 16
  419 |            guint32 nwkSecurityVector[4];
      |                    ^~~~~~~~~~~~~~~~~
/tmp/SBo/wireshark-4.0.0/epan/dissectors/packet-lwm.c:464:31: warning: writing 16 bytes into a region of size 0 [-Wstringop-overflow=]
  464 |                    vector[i] ^= text_dec[i];
      |                    ~~~~~~~~~~^~~~~~~~~~~~~~
/tmp/SBo/wireshark-4.0.0/epan/dissectors/packet-lwm.c:419:21: note: at offset 208 into destination object ‘nwkSecurityVector’ of size 16
  419 |            guint32 nwkSecurityVector[4];
      |                    ^~~~~~~~~~~~~~~~~
/tmp/SBo/wireshark-4.0.0/epan/dissectors/packet-lwm.c:464:31: warning: writing 16 bytes into a region of size 0 [-Wstringop-overflow=]
  464 |                    vector[i] ^= text_dec[i];
      |                    ~~~~~~~~~~^~~~~~~~~~~~~~
/tmp/SBo/wireshark-4.0.0/epan/dissectors/packet-lwm.c:419:21: note: at offset 224 into destination object ‘nwkSecurityVector’ of size 16
  419 |            guint32 nwkSecurityVector[4];
      |                    ^~~~~~~~~~~~~~~~~
install: cannot stat 'ws_diag_control.h': No such file or directory
install: cannot stat 'ws_symbol_export.h': No such file or directory

Tried again and captured a build log. Ran the build log thru Eric's checkpkg script and got this -

Code:

./checkpkg.sh -l build.log
++ Checking logfile 'build.log' (no news is good news):
  6969: -- Looking for pcap_open - not found
  6981: -- Looking for heimdal_version - not found
  7067: -- Looking for issetugid - not found


marav 10-06-2022 03:50 AM

Quote:

Originally Posted by 3rensho (Post 6384603)
Running up to date Slack64-current

Tried to build Wireshark-4.0.0 and it crashed after chugging away for a bit with -

It builds fine here

Just FYI
Code:

    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_MANDIR=/usr/man \
    -DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
-    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DCMAKE_BUILD_TYPE=Release ..

Code:

CMake Warning:
  Manually-specified variables were not used by the project:

    LIB_SUFFIX

@3rensho, are you sure you are sync with willy branch ?
Code:

-install -m644 ws_diag_control.h ws_symbol_export.h $PKG/usr/include/$PRGNAM
+install -m644 include/ws_diag_control.h include/ws_symbol_export.h $PKG/usr/include/$PRGNAM

https://git.slackbuilds.org/slackbui...uild?h=willysr

jostber 10-06-2022 04:41 AM

Quote:

Originally Posted by ponce (Post 6381954)
hi jostber,

this is not a problem current-specific: it happens also in stable because of the update of the dependency fmt.
you should report the problem to the mpd maintainer asking for an update: the latest 0.23.9, for example, seems to build fine against the newer fmt.
please let me know how the maintainer ping goes.

The maintainer has now updated mpd to the latest version and the installation from SlackBuild works fine. I had to install the celt library to make mpd work so that might be a missing dependency.

ponce 10-06-2022 04:47 AM

Quote:

Originally Posted by jostber (Post 6384629)
The maintainer has now updated mpd to the latest version and the installation from SlackBuild works fine. I had to install the celt library to make mpd work so that might be a missing dependency.

you should report this too to the maintainer...

3rensho 10-06-2022 05:28 AM

Quote:

Originally Posted by marav (Post 6384625)
It builds fine here

Just FYI
Code:

    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_MANDIR=/usr/man \
    -DCMAKE_INSTALL_DOCDIR=/usr/doc/$PRGNAM-$VERSION \
-    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DCMAKE_BUILD_TYPE=Release ..

Code:

CMake Warning:
  Manually-specified variables were not used by the project:

    LIB_SUFFIX

@3rensho, are you sure you are sync with willy branch ?
Code:

-install -m644 ws_diag_control.h ws_symbol_export.h $PKG/usr/include/$PRGNAM
+install -m644 include/ws_diag_control.h include/ws_symbol_export.h $PKG/usr/include/$PRGNAM

https://git.slackbuilds.org/slackbui...uild?h=willysr

Thanks marav, I had not seen that patch. Built fine now

SW64 10-09-2022 11:19 PM

Just a head up; on my system, audacity 3.2.0 was a missing a dependency, soxr, which is not listed in the audacity.info file. I was able to compile audacity 3.2.0 after installing soxr.

ponce 10-10-2022 12:39 PM

Quote:

Originally Posted by SW64 (Post 6385464)
Just a head up; on my system, audacity 3.2.0 was a missing a dependency, soxr, which is not listed in the audacity.info file. I was able to compile audacity 3.2.0 after installing soxr.

it slipped, thanks for the report!

brobr 10-12-2022 05:43 AM

Hi, with ffmpeg-5, aubio-4.9 does not compile.
A patch is here:
https://raw.githubusercontent.com/Op...mpeg-5.0.patch

(see https://github.com/aubio/aubio/issues/353)
hth

EDIT.. and libquicktime does not compile either;
https://sourceforge.net/p/libquickti...8702f8ac2083b/ which disables ffmpeg

ponce 10-12-2022 07:00 AM

1 Attachment(s)
Hi Rob,

yes, yesterday I started rebuilding the stuff I use on current and I hit a few snags because of the newer ffmpeg: I tried to fix whatever was possible of those scripts but in some cases (vice and, like you noted, libquicktime) I had to disable ffmpeg support entirely, when we don't end up with a broken build (like transcode, for which I haven't found a fix yet).

I hadn't tried aubio yet: thanks for the report and the patch, I'll push it ASAP!

I'm pretty sure that we will see a lot of stuff broken by the ffmpeg upgrade from now on: just report it and I'll try my best to fix it.
luckily it has been pushed to current after things had time to settle a bit (and distros to adapt) but with the rate ffmpeg people break their API it won't never be the right time (look the image below).

EDIT: for transcode it seems the only option is to --disable-ffmpeg too...

brobr 10-12-2022 12:21 PM

Hi Matteo, was not expecting to be the only one finding these kind of problems;-(

The aubio, I hit on because of the aqualung player (not on SBo) depends on it (aqualung also doesn't cope with the new ffmpeg, needs to be configured '--without-lavc \' (https://github.com/jeremyevans/aqual...ent-1127139775).

Next on my list,
chromaprint (https://github.com/acoustid/chromaprint/issues/110), also fails, but that's possibly old news for you as maintainer.
Then
xjadeo (version 0.8.11, latest), despite https://github.com/x42/xjadeo/issues/50:
Code:

jadeo.c: In function ‘open_movie’:
xjadeo.c:1497:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 1497 |        pCodec=avcodec_find_decoder (pCodecCtx->codec_id);

openboard: patched 10h ago: https://github.com/OpenBoard-org/Ope...ffffa008f81265


All times are GMT -5. The time now is 03:14 PM.