rpmbuild perl-PDL-Graphics-PLplot
by Patrick Dupre
Hello,
This spec file provide the an error.
Can you help me to fix it?
PLplot.c: In function 'XS_PDL__Graphics__PLplot_plgfci':
PLplot.c:85895:25: warning: unused variable 'RETVAL' [-Wunused-variable]
85895 | unsigned int RETVAL;
| ^~~~~~
/usr/lib64/perl5/vendor_perl/PDL/PP.pm: In function 'pdl_init_pltr_copy':
/usr/lib64/perl5/vendor_perl/PDL/PP.pm:3385:61: warning: array subscript '_7 + -1' is outside the bounds of an interior zero-length array 'struct pdl *[0:]' [-Wzero-length-bounds]
3385 | for(i=0; i<__copy->vtable->npdls; i++)
| ~~~~~~~~~~~~~~~~~^~~
In file included from /usr/lib64/perl5/vendor_perl/PDL/PP.pm:1020:
/usr/lib64/perl5/vendor_perl/PDL/Core/pdl.h:291:8: note: while referencing 'pdls'
291 | pdl *pdls[np]
| ^~~~
/usr/lib64/perl5/vendor_perl/PDL/PP.pm:3385:38: warning: array subscript '_7 + -1' is outside the bounds of an interior zero-length array 'struct pdl *[0:]' [-Wzero-length-bounds]
3385 | for(i=0; i<__copy->vtable->npdls; i++)
| ~~~~~~~~~~~~^~~
In file included from /usr/lib64/perl5/vendor_perl/PDL/PP.pm:1020:
/usr/lib64/perl5/vendor_perl/PDL/Core/pdl.h:291:8: note: while referencing 'pdls'
291 | pdl *pdls[np]
| ^~~~
cc1: some warnings being treated as errors
make: *** [Makefile:345: PLplot.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.FwlY8K (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.FwlY8K (%build)
-------------------------------------------------------
Name: perl-PDL-Graphics-PLplot
Version: 0.74
Release: 1%{?dist}
Summary: PDL::Graphics::PLplot Perl module
License: CHECK(Distributable)
Group: Development/Libraries
URL: http://search.cpan.org/dist/PDL-Graphics-PLplot/
Source0: http://www.cpan.org/modules/by-module/PDL/PDL-Graphics-PLplot-%{version}....
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(PDL)
Requires: perl(PDL)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The interface consists of two levels. A low level interface which maps
closely to the PLplot C interface, and a high level, object-oriented
interface which is easier to use.
%prep
%setup -q -n PDL-Graphics-PLplot-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes META.json plplot.pd README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/PDL*
%{_mandir}/man3/*
%changelog
* Sat Jun 19 2021 Patrick Dupre <pdupre(a)gmx.com> 0.74-1
- Specfile autogenerated by cpanspec 1.78.
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988 | | Room# D114A
===========================================================================
11 months, 1 week
scilab bin
by Patrick Dupre
Trying to install scilab 6.1.0 from scilab-6.1.0.bin.linux-x86_64.tar.gz
I got:
/usr/bin/chcon: failed to change context of '/usr/local/scilab-6.1.0/bin/scilab-bin' to ‘unconfined_u:object_r:execmem_exec_t:s0’: Operation not permitted
Error: Cannot chcon 'scilab-bin'
/usr/bin/chcon: failed to change context of '/usr/local/scilab-6.1.0/bin/scilab-cli-bin' to ‘unconfined_u:object_r:execmem_exec_t:s0’: Operation not permitted
Error: Cannot chcon 'scilab-cli-bin'
scilab-bin: error while loading shared libraries: libldap-2.4.so.2: cannot open shared object file: No such file or directory
I could bit find
libldap
only
penldap-compat.i686 : Package providing legacy non-threded libldap
openldap-compat.x86_64 : Package providing legacy non-threded libldap
It is compatible?
===========================================================================
Patrick DUPRÉ | | email: pdupre(a)gmx.com
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988 | | Room# D114A
===========================================================================
11 months, 1 week
My FC33->FC34 bind-chroot upgrade notes
by ToddAndMargo
Hi All,
Thank you all for the enormous help in me getting bind-chroot
working after upgrading to Fedora 34. Here are my notes.
Hope this helps someone else.
-T
Broken bind-chroot repair after upgrading to Fedora 34:
# means root
$ means user
1) temporary workaround so you can surf the Internet for help:
Change /etc/resolv.conf to
# search your_domain
# nameserver your_IP
nameserver 208.67.222.123
2) in their "ultimate wisdom", the rpm maintainers disabled
the service after upgrading it. See the following bug I posted
on 2021-06-14:
Bind-chroot upgrade from FC3 to FC34 disables the service
breaking a server
https://bugzilla.redhat.com/show_bug.cgi?id=1972000
To repair:
# systemctl enable named-chroot.service
# systemctl start named-chroot.service
Other useful command(s):
# systemctl stop named-chroot.service
# systemctl status named-chroot.service
# systemctl restart named-chroot.service
3) the new version of bind-chroot enables "dns security validation" by
default.
To repair, place the following in your named.conf:
by itself at the bottom:
include "/etc/named.root.key";
add the following to your "options" block:
dnssec-validation yes;
Other useful command(s):
Validation check:
$ delv @$IP com ds
$ delv @208.67.222.123 com ds
; fully validated
...
4) check (and repair) your configurations:
named.conf:
# named-checkconf -l -t /var/named/chroot /etc/named.conf
Note: if you get the following error message,
`/etc/named.root.key:1: option 'managed-keys' is
deprecated`
it is a bug in named-checkconf.
See the following I posted on 2021-06-14. Just ignore
the message.
named-checkconf gives confusing depreciated
'managed-keys' message
https://bugzilla.redhat.com/show_bug.cgi?id=1972022
Zones:
# named-checkzone -t directory domain filename
Note: the "domain name" in the following comes from named.conf
zone, not `domainname`. For example:
zone "abc.local" {
type master;
file "slaves/rent-a-nerd.hosts";
allow-update { key DHCP_UPDATER; };
};
The "domain" is the name of the "zone". "abc.local" in the above
# named-checkzone -t /var/named/chroot/var/named/slaves
abc.local abc.hosts
zone abc.local/IN: loaded serial 265
OK
# named-checkzone -t /var/named/chroot/var/named/slaves
255.168.192.in-addr.arpa abc.hosts.rev
zone 255.168.192.in-addr.arpa/IN: loaded serial 213
OK
5) restart the bind-chroot service:
Change /etc/resolv.conf back to
search your_domain
nameserver your_IP
# nameserver 208.67.222.123
# systemctl restart named-chroot.service
check for and repair errors with:
$ systemctl status named-chroot.service
# tail -f /var/log/messages
11 months, 1 week
Xorg Scaling Issues
by Stephen Morris
Hi,
I have config file in /etc/X11/xorg.conf.d that is listing
modelines for all resolutions that xrandr indicates is supported by the
vmware video driver. With that file existing can anyone suggest why
Gnome in Xorg will scale to 4k resolution when the desktop is scaled,
but Plasma in X11 will not scale?
regards,
Steve
11 months, 1 week
pavucontrol and 5.1 audio.
by Steve Underwood
Hi,
I've just started using 5.1 audio on a Fedora 33 machine for the first
time, and I have an issue with pavucontrol. I have pipewire installed on
this machine. If I select the "Output Devices" tab, and unlock the
volume control for the 5.1 audio device, I see 6 controls, with these
labels:
Front Left, Front Right, Rear Left, Rear Right, Front Center and
Subwoofer
These labels seem appropriate, and as I adjust the controls the volume
of the appropriate channel changes. However, if I go to the "Playback"
tab, and unlock the volume control for the application (I'm trying this
with VLC), I see 6 controls with the these labels:
Front Left, Front Right, Side Left, Side Right, Front Center and
Subwoofer
Those "side" labels seem like something for a 7.1 device, not a 5.1
device. As I adjust the controls they are mixed up, as follows:
Front Left controls the front left channel (i.e. OK)
Front right controls the front right channel(i.e. OK)
Side Left controls the front centre channel
Side Right controls the subwoofer channel
Front Center controls the rear left channel
Subwoofer controls rear right channel
I'm not sure if this is a bug, or if there might be some configuration
problem on my machine. Has anyone else experienced something like this?
Regards,
Steve
11 months, 1 week
A question about the two package managers in fedora
by Cisco Tissera
Hello everyone,
For quite random reasons, I was wondering what would happen if I completely
removed yum, and only used dnf.
Is it possible to do that? or would it totally break the system?
Another question: why keep two package managers, and not switch to dnf and
just keep dnf?
Sorry if my questions might sound stupid, but I'm quite curious.
Thanks for any answer.
Best regards.
Francisco.
11 months, 1 week
how to scale Gnome to user defined percentage
by Anil F Duggirala
hello,
I am struggling more than enjoying the high-DPI display on my new laptop.
Gnome allows me to scale my display, to 200, 300, 400 %. Is there an
easy way to scale to 250% for example?
Does scaling like this in Gnome affect peformance of displaying?
thank you,
11 months, 2 weeks
sorry another test
by Frank
My provider **seems** to have fixed the problem. This is a check.
11 months, 2 weeks
OT: diagnosing download problem
by Geoffrey Leach
Configuration: Fedora 32 with Netgear Nighthawk R7000 router talking to
Hughes satellite.
Problem: Connecting (only) to Amazon, (any) page hangs attempting to
download (apparently) an image from images-na.ssl-images-amazon.com.
Download succeeds for a dozen or so jpegs, then it hangs. Problem
appears to be independent of browser (chrome, firefox) and OS (happens
on (gasp) Windows 7 also).
Traceroute images-na.ssl-images-amazon.com shows the round trip time to
suddenlink.net around 2000 ms.
So why am I bothering the list? It's Amazon's problem, after all.
Question: are there any settings on my end that might be tweaked to get
around the problem? Is there any way to diagnose the problem on my end?
Thanks.
11 months, 2 weeks