Problem with xvfb-run test of Gtk3 program in %check
by Robin Lee
Hi,
I try to run the test suite of a Gtk3 program during %check.
I run the test under xvfb-run as suggested in [1]. But it ran into
strange errors.
Am I missing some basic BR to run Gtk3 under xvfb?
+ xvfb-run -a ./test.py
(test.py:27324): Gtk-WARNING **: 11:09:44.758: Could not find the icon
'zim-add-bookmark'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
Traceback (most recent call last):
File "/builddir/build/BUILD/zim-0.70-rc2/zim/gui/__init__.py", line
32, in load_zim_stock_icons
pixbuf = icon_theme.load_icon(name, 24, 0)
GLib.Error: gtk-icon-theme-error-quark: Icon 'zim-add-bookmark' not
present in theme Adwaita (0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./test.py", line 196, in <module>
main()
File "./test.py", line 107, in main
suite = tests.load_tests(loader, None, None)
File "/builddir/build/BUILD/zim-0.70-rc2/tests/__init__.py", line
97, in load_tests
test = loader.loadTestsFromName(name)
File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
module = __import__(module_name)
File "/builddir/build/BUILD/zim-0.70-rc2/tests/datetimetz.py", line
78, in <module>
from zim.plugins.tasklist.dates import *
File "/builddir/build/BUILD/zim-0.70-rc2/zim/plugins/tasklist/__init__.py",
line 28, in <module>
from zim.gui.pageview import PageViewExtension
File "/builddir/build/BUILD/zim-0.70-rc2/zim/gui/__init__.py", line
44, in <module>
load_zim_stock_icons()
File "/builddir/build/BUILD/zim-0.70-rc2/zim/gui/__init__.py", line
35, in load_zim_stock_icons
pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
GLib.Error: gdk-pixbuf-error-quark: Couldn’t recognize the image file
format for file
“/builddir/build/BUILD/zim-0.70-rc2/data/pixmaps/add-bookmark.png” (3)
error: Bad exit status from /var/tmp/rpm-tmp.erQZLG (%check)
Bad exit status from /var/tmp/rpm-tmp.erQZLG (%check)
[1] https://fedoraproject.org/wiki/PackageMaintainers/GraphicalTests
4 years, 8 months
no-ld-config-symlnk false positive; how to move forward?
by Jordan Ogas
Greetings,
My subpackage, charliecloud-devel, includes the following test files:
_libdir/charliecloud/test/sotest/libsotest.so -> ./libsotest.so.1.0*
_libdir/charliecloud/test/sotest/libsotest.so.1 -> ./libsotest.so.1.0*
_libdir/charliecloud/test/sotest/libsotest.so.1.0*
These files are *not* used on the host. During the charliecloud test suite execution, specifically the test 'ch-fromhost (Debian)', these files are injected into a debian container image filesystem. It is there, in the debian guest environment (charliecloud container), where /sbin/ldconfig is executed.
So rpmlint see's these files and errors as follows:
charliecloud-devel.x86_64: E: no-ldconfig-symlink /usr/lib64/charliecloud-0.9.6/test/sotest/lib/libsotest.so.1.0
charliecloud-devel.x86_64: E: postun-without-ldconfig /usr/lib64/charliecloud-0.9.6/test/sotest/lib/libsotest.so.1.0
This is understandable. However, this error is not applicable for here. How do I move forward?
4 years, 8 months
Guidance request: rpmlint, FHS, and test suite location
by Jordan Ogas
Greetings,
I am trying to make a Fedora compliant rpm package and I have found myself in
need of guidance.
The software I am trying to package contains a test suite that compiles a few c
files at build time.
When installing with a prefix, the test suite and examples are installed in
${PREFIX}/share/doc/charliecloud/test and
${PREFIX}/share/doc/charliecloud/examples respectively. The spec file uses the
standard %{_prefix} macro, thus the test suite installs to /usr/share/,
which is reserved for architecture-independent files. The presence of the
compiled test suite and example binaries causes rpmlint to complain with 'arch-
dependent-file-in-usr-share' errors (among others).
Any guidance or advice is greatly appreciated.
Note I am an upstream developer of this software and we would prefer to keep the
contents of the test suite and examples together. Where they should be located
for compliance with Fedora and the FHS is a little unclear to me (/usr/libexec ?).
Finally, note that I am new to rpm packaging (this is my first spec file...) and this
community. Forgive me if the scope or content of this message is inappropriate
or malformed for this forum.
Spec file: https://github.com/hpc/charliecloud/blob/epel-package/packaging/epel-7/0....
rpmlint output (non-verbose and pruned, i.e., removed errors and warnings not
relevant to this discussion):
charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/sotest
charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/examples/syscalls/userns
charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/examples/syscalls/pivot_root
charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/bin/sotest
charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/lib/libsotest.so.1.0
charliecloud.x86_64: E: no-ldconfig-symlink /usr/share/doc/charliecloud/test/sotest/lib/libsotest.so.1.0
charliecloud.x86_64: E: arch-dependent-file-in-usr-share /usr/share/doc/charliecloud/test/sotest/libsotest.so.1.0
charliecloud.x86_64: W: dangling-relative-symlink /usr/share/doc/charliecloud/test/bin ../../../../bin
charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/test/sotest/sotest
charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/examples/syscalls/userns
charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/examples/syscalls/pivot_root
charliecloud.x86_64: W: spurious-executable-perm /usr/share/doc/charliecloud/test/sotest/bin/sotest
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/Build.missing /bin/bash
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/Build /bin/bash
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/fs_perms.py /usr/bin/env
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/signal_out.py /usr/bin/env
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/dev_proc_sys.py /usr/bin/env
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/make-auto /usr/bin/env
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/make-perms-test /usr/bin/env
charliecloud.x86_64: W: doc-file-dependency /usr/share/doc/charliecloud/test/chtest/bind_priv.py /usr/bin/env
4 years, 8 months
Re: Periods in compat package names
by Björn 'besser82' Esser
Am Mittwoch, den 09.01.2019, 18:07 +0000 schrieb
jdunn(a)penguincomputing.com:
> From the "Guidelines for Naming Fedora Packages" the example in the
> "Multiple packages with the same base name" section (
> https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidel...
> ) seems to contradict the "Separators" section (
> https://fedoraproject.org/wiki/Packaging:Naming?rd=Packaging:NamingGuidel...
> )
>
> The example describes naming a package as python-sqlalchemy0.5 to show
> how to make a compatibility package, but the separators section says:
> > The maintainer MUST NOT use an underscore '_', a plus '+', or a
> > period '.' as a delimiter.
>
> Is the period inside the appended version number not considered a
> delimiter for these purposes?
>
> -Joseph
From what I know, and what is pratically done, one would name the
compatibility package "python-sqlalchemy05".
I assume the period slipped in the package name when preparing some
copy-pasta. :P
Anyways, this should be changed, so I'm adding the fedora-packaging ml.
Björn
4 years, 8 months
Summary/Minutes from today's FPC Meeting (2019-01-03 17:00 - 18:00 UTC)
by James Antill
======================
#fedora-meeting-1: fpc
======================
Meeting started by geppetto at 17:00:06 UTC. The full logs are available
at
https://meetbot.fedoraproject.org/fedora-meeting-1/2019-01-03/fpc.2019-01...
.
Meeting summary
---------------
* Roll Call (geppetto, 17:00:06)
* Schedule (geppetto, 17:05:17)
* LINK:
https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/message/2FXUUFLJGXIICBF64S563C7DK4KMXULM/
(geppetto, 17:05:20)
* #841 Change or remove "Want to help" footer (geppetto, 17:05:35)
* #719 Simplify packaging of forge-hosted projects (geppetto, 17:10:29)
* Open Floor (geppetto, 17:12:07)
* LINK:
https://fedoraproject.org/wiki/User:Zbyszek/ProtectionsPolicyDraft
was the draft (tibbs, 17:26:51)
* LINK:
https://pagure.io/packaging-committee/pull-requests?status=all&author=decathorpe
(mhroncok, 17:41:39)
* LINK:
https://asciidoctor.org/docs/asciidoc-writers-guide/#document-attributes
for example (tibbs, 17:48:16)
Meeting ended at 18:00:06 UTC.
Action Items
------------
Action Items, by person
-----------------------
* **UNASSIGNED**
* (none)
People Present (lines said)
---------------------------
* tibbs (69)
* geppetto (41)
* decathorpe (30)
* zodbot (20)
* mhroncok (17)
* ignatenkobrain (4)
* limburgher (3)
* redi (2)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
4 years, 8 months