archlinuxhardened / selinux

PKGBUILDs to build SELinux enabled packages for Arch Linux
146 stars 25 forks source link

FAIL: test-vc-list-files-git.sh #25

Closed denisse-dev closed 4 years ago

denisse-dev commented 4 years ago

When attempting to install SELinux using the linux-zen kernel the test-vc-list-files-git.sh fails, these are the contents of gnulib-tests/test-suite.log:

======================================================
   GNU findutils 4.7.0: gnulib-tests/test-suite.log
======================================================

# TOTAL: 236
# PASS:  207
# SKIP:  28
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: test-btowc1.sh
====================

Skipping test: no traditional french locale is installed
SKIP test-btowc1.sh (exit status: 77)

SKIP: test-btowc2.sh
====================

Skipping test: no french Unicode locale is installed
SKIP test-btowc2.sh (exit status: 77)

SKIP: test-mbrtowc1.sh
======================

Skipping test: no traditional french locale is installed
SKIP test-mbrtowc1.sh (exit status: 77)

SKIP: test-mbrtowc2.sh
======================

Skipping test: no french Unicode locale is installed
SKIP test-mbrtowc2.sh (exit status: 77)

SKIP: test-mbrtowc3.sh
======================

Skipping test: no traditional japanese locale is installed
SKIP test-mbrtowc3.sh (exit status: 77)

SKIP: test-mbrtowc4.sh
======================

Skipping test: no transitional chinese locale is installed
SKIP test-mbrtowc4.sh (exit status: 77)

SKIP: test-mbrtowc-w32-1.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-1.sh (exit status: 77)

SKIP: test-mbrtowc-w32-2.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-2.sh (exit status: 77)

SKIP: test-mbrtowc-w32-3.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-3.sh (exit status: 77)

SKIP: test-mbrtowc-w32-4.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-4.sh (exit status: 77)

SKIP: test-mbrtowc-w32-5.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-5.sh (exit status: 77)

SKIP: test-mbscasestr2.sh
=========================

Skipping test: no french Unicode locale is installed
SKIP test-mbscasestr2.sh (exit status: 77)

SKIP: test-mbscasestr3.sh
=========================

Skipping test: no chinese GB18030 locale is installed
SKIP test-mbscasestr3.sh (exit status: 77)

SKIP: test-mbscasestr4.sh
=========================

Skipping test: no turkish Unicode locale is installed
SKIP test-mbscasestr4.sh (exit status: 77)

SKIP: test-mbsinit.sh
=====================

Skipping test: no french Unicode locale is installed
SKIP test-mbsinit.sh (exit status: 77)

SKIP: test-mbsrtowcs1.sh
========================

Skipping test: no traditional french locale is installed
SKIP test-mbsrtowcs1.sh (exit status: 77)

SKIP: test-mbsrtowcs2.sh
========================

Skipping test: no french Unicode locale is installed
SKIP test-mbsrtowcs2.sh (exit status: 77)

SKIP: test-mbsrtowcs3.sh
========================

Skipping test: no traditional japanese locale is installed
SKIP test-mbsrtowcs3.sh (exit status: 77)

SKIP: test-mbsrtowcs4.sh
========================

Skipping test: no transitional chinese locale is installed
SKIP test-mbsrtowcs4.sh (exit status: 77)

SKIP: test-mbsstr2.sh
=====================

Skipping test: no french Unicode locale is installed
SKIP test-mbsstr2.sh (exit status: 77)

SKIP: test-mbsstr3.sh
=====================

Skipping test: no chinese GB18030 locale is installed
SKIP test-mbsstr3.sh (exit status: 77)

SKIP: test-setlocale1.sh
========================

Skipping test: no locale for testing is installed
SKIP test-setlocale1.sh (exit status: 77)

FAIL: test-vc-list-files-git.sh
===============================

error: gpg failed to sign the data
fatal: failed to write commit object
FAIL test-vc-list-files-git.sh (exit status: 1)

SKIP: test-vc-list-files-cvs.sh
===============================

test-vc-list-files-cvs.sh: skipped test: cvs not found in PATH
SKIP test-vc-list-files-cvs.sh (exit status: 77)

SKIP: test-wcrtomb-w32-1.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-1.sh (exit status: 77)

SKIP: test-wcrtomb-w32-2.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-2.sh (exit status: 77)

SKIP: test-wcrtomb-w32-3.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-3.sh (exit status: 77)

SKIP: test-wcrtomb-w32-4.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-4.sh (exit status: 77)

SKIP: test-wcrtomb-w32-5.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-5.sh (exit status: 77)
denisse-dev commented 4 years ago

The problem was that I need a GPG key on the machine where I want to install SELinux, the test proceeds to sign a commit with that GPG key and then it continues without issues.

I don't think we should have this test as mandatory as you may want to install SELinux in a machine that doesn't have a GPG key, but maybe I'm wrong.

Should this test be skipped or should I document that this is required in the Arch Wiki?

fishilico commented 4 years ago

Hello, the test succeeds on my test virtual machine that has no GPG key, and the source code of the failing test does not invoke GPG, and : https://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-vc-list-files-git.sh?id=1968c439d9077a1b5a846a86b98b1a5e60e0ed08 This test creates a git commit, and if your git configuration includes git config commit.gpgsign, creating a git commit would require a GPG key to sign it.

Did you modify the ~/.gitconfig of the user that builds packages? Do you build packages using a clean chroot-ed environment?

denisse-dev commented 4 years ago

You're right @fishilico ! After using a clean chroot the problem is no longer present, it was a conflicting .gitconfig.

Thank you!