Skip to content

Commit 01955f2

Browse files
author
Mario Limonciello
committed
merge 2.4.0 release
2 parents da26f0e + 8d729b4 commit 01955f2

File tree

127 files changed

+108
-18825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+108
-18825
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ env:
1010
- OS=centos7
1111

1212
install:
13-
- if [[ "$OS" == "debian" ]]; then docker build -t libsmbios-debian-testing -f pkg/dockerfiles/Dockerfile-debian-testing .; fi
14-
- if [[ "$OS" == "centos7" ]]; then ./pkg/build-dockerfile.sh centos7; fi
13+
- ./pkg/build-dockerfile.sh $OS
1514

1615
script:
17-
- if [[ "$OS" == "debian" ]]; then docker run -t -v `pwd`:/build libsmbios-debian-testing pkg/mk-rel-deb.sh; fi
18-
- if [[ "$OS" == "centos7" ]]; then mkdir -p output; docker run -v `pwd`/dist:/dist centos7-libsmbios; fi
16+
- docker run -e CI=true -t -v `pwd`/dist:/build/dist libsmbios-$OS
1917

2018
deploy:
2119
provider: releases

Makefile-std

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXTRA_DIST =
99
EXTRA_PROGRAMS=
1010

1111
CLEANFILES += $(EXTRA_PROGRAMS)
12-
CLEANFILES += po/*.gmo src/python/libsmbios_c/__pycache__/ src/pyunit/__pycache__/
12+
CLEANFILES += po/*.gmo src/python/libsmbios_c/__pycache__/ src/pyunit/__pycache__/ src/py-cli/__pycache__/
1313
DISTCLEANFILES += pkg/$(PACKAGE).spec
1414

1515

@@ -21,7 +21,7 @@ distclean-local:
2121

2222
.PHONY: git-tag
2323
git-tag:
24-
git tag -u libsmbios -m "tag for official release: $(PACKAGE_STRING)" v$(PACKAGE_VERSION)
24+
git tag -s -m "tag for official release: $(PACKAGE_STRING)" v$(PACKAGE_VERSION)
2525

2626
.PHONY: get-version
2727
get-version:
@@ -55,17 +55,6 @@ install-exec-hook:
5555
# set default project. can be overridden on cmdline with 'make -e ...'
5656
PROJECT=home:$(USER)
5757

58-
.PHONY: upload_buildservice
59-
upload_buildservice: dist
60-
[ -n "$(PROJECT)" ] || (echo "Must specify PROJECT"; exit 1)
61-
osc co $(PROJECT) $(PACKAGE)
62-
rm -f $(PROJECT)/$(PACKAGE)/*
63-
cp ${PACKAGE}*.tar.bz2 $(PROJECT)/$(PACKAGE)
64-
cp */${PACKAGE}.spec $(PROJECT)/$(PACKAGE)
65-
cd $(PROJECT)/$(PACKAGE); osc addremove
66-
cd $(PROJECT)/$(PACKAGE); yes | osc updatepacmetafromspec
67-
cd $(PROJECT)/$(PACKAGE); osc ci -m "scripted source update"
68-
6958
TOPDIR := $(shell cd $(top_builddir);pwd)
7059
BUILDDIR = $(TOPDIR)/_rpmbuild
7160
RPMDIR = $(TOPDIR)
@@ -85,7 +74,7 @@ AM_RPM_DEFINES = --define "_topdir $(TOPDIR)" \
8574
.PHONY: rpm srpm
8675
rpm: pkg/$(PACKAGE_NAME).spec dist
8776
mkdir -p $(BUILDDIR)
88-
rpmbuild $(AM_RPM_DEFINES) -ba --nodeps $(SPECFILE)
77+
rpmbuild $(AM_RPM_DEFINES) $(CI) -ba --nodeps $(SPECFILE)
8978
rm -rf $(BUILDDIR)
9079

9180
srpm: pkg/$(PACKAGE_NAME).spec dist
@@ -103,7 +92,7 @@ debmagic: dist-xz
10392
chmod +x $(DEB_TMP_BUILDDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/debian/rules
10493
cd $(DEB_TMP_BUILDDIR)/$(PACKAGE_NAME)-$(PACKAGE_VERSION) ; \
10594
mv debian/changelog.in debian/changelog; \
106-
dch -D $(DIST) "Built from source $(DESCRIBE)" -v "$(PACKAGE_VERSION)-0" ;\
95+
dch -b -D $(DIST) "Built from source $(DESCRIBE)" -v "$(PACKAGE_VERSION)-0" ;\
10796
dpkg-buildpackage -us -uc -D -rfakeroot ; \
10897
mv ../*.deb $(TOPDIR)/dist/ ; \
10998
cd -

Makefile.am

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ include_HEADERS=
1111
noinst_PROGRAMS=
1212
check_PROGRAMS =
1313
check_SCRIPTS =
14+
man1_MANS =
1415

1516
noinst_LTLIBRARIES =
1617
lib_LTLIBRARIES=
@@ -34,30 +35,22 @@ endif
3435

3536
include Makefile-std
3637

37-
if BUILD_LIBSMBIOS_CXX
38-
include src/libsmbios_c++/Makefile.am
39-
endif
40-
4138
include src/libsmbios_c/Makefile.am
4239
include src/python/Makefile.am
4340
include src/py-cli/Makefile.am
4441
include src/bin/Makefile.am
4542
include src/pyunit/Makefile.am
4643

47-
if CPPUNIT_PRESENT
48-
include src/cppunit/Makefile.am
49-
endif
50-
5144
pkgconfdir=$(sysconfdir)/$(PACKAGE)
5245
if HAVE_PYTHON
5346
dist_pkgconf_DATA=etc/logging.conf
5447
endif
5548

5649
pcdir = ${libdir}/pkgconfig
57-
pc_DATA = pkg/libsmbios_c.pc pkg/libsmbios_c++.pc
50+
pc_DATA = pkg/libsmbios_c.pc
5851
DISTCLEANFILES += pkg/*.pc *-uninstalled.pc pkg/config* pkg/depcomp
5952

60-
CLEANFILES+=_buildtemp smbios-utils*.rpm out/libsmbios_c out/libsmbios_c++
53+
CLEANFILES+=_buildtemp smbios-utils*.rpm out/libsmbios_c
6154
DISTCLEANFILES += out ABOUT-NLS Makefile.in aclocal.m4 autom4te.cache/ configure m4/
6255
DISTCLEANFILES += pkg/compile pkg/install-sh pkg/ltmain.sh pkg/missing
6356
DISTCLEANFILES += pkg/mkinstall* pkg/py-compile pkg/test-driver
@@ -94,9 +87,6 @@ coverage:
9487
if HAVE_DOXYGEN
9588
all: doxygen
9689
DOXYGEN_DEPS=out/libsmbios_c/html/index.html
97-
if BUILD_LIBSMBIOS_CXX
98-
DOXYGEN_DEPS+=out/libsmbios_c++/html/index.html
99-
endif
10090
doxygen: $(DOXYGEN_DEPS)
10191
else
10292
all:
@@ -113,13 +103,16 @@ export DOT HAVE_DOT top_builddir top_srcdir
113103
out/libsmbios_c/html/index.html: $(top_srcdir)/pkg/libsmbios_c.dox $(wildcard $(top_srcdir)/src/include/smbios_c/*.h)
114104
doxygen $< > out/$$(basename $< .dox).out
115105

116-
out/libsmbios_c++/html/index.html: $(top_srcdir)/pkg/libsmbios_c++.dox $(wildcard $(top_srcdir)/src/include/smbios/*.h)
117-
doxygen $< > out/$$(basename $< .dox).out
106+
out/scripts/%.1 : src/bin/%
107+
mkdir -p out/scripts
108+
-$(HELP2MAN) --output=$@ --name=$^ --version-string=$(PACKAGE_VERSION) "LD_LIBRARY_PATH=$$PWD/out/.libs python3 $^"
109+
110+
out/%.1 : out/%
111+
-$(HELP2MAN) --output=$@ --name=$^ --version-string=$(PACKAGE_VERSION) $^
118112

119113
########## END DOCS ################
120114

121115
EXTRA_DIST += \
122-
pkg/libsmbios_c++.dox \
123116
pkg/libsmbios_c.dox \
124117
pkg/libsmbios.spec \
125118
pkg/scripts \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# libsmbios
22
[![Build Status](https://travis-ci.org/dell/libsmbios.png)](https://travis-ci.org/dell/libsmbios)
3+
[![Coverity Scan Build Status](https://scan.coverity.com/projects/dell-libsmbios/badge.svg)](https://scan.coverity.com/projects/dell-libsmbios)
34
libsmbios provides a library to interface with the SMBIOS tables.
45
It also provides extensions for proprietary methods of interfacing with Dell specific
56
SMBIOS tables.

configure.ac

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ AC_SUBST([RELEASE_EXTRA], [release_extra_version()])
6060
AC_DEFINE_UNQUOTED(LIBSMBIOS_RELEASE_MAJOR,$RELEASE_MAJOR,"Major release version")
6161
AC_DEFINE_UNQUOTED(LIBSMBIOS_RELEASE_MINOR,$RELEASE_MINOR,"Minor release version")
6262

63-
# Ensure we use c++11 instead of c++14
64-
CXXFLAGS="$CXXFLAGS -std=c++11"
65-
6663
if test "$enable_shared" != "no"; then
6764
AC_DEFINE([LIBSMBIOS_C_ALL_DYN_LINK],[1],[Enable dynamic libraries to build])
6865
CFLAGS="$CFLAGS -DLIBSMBIOS_C_ALL_DYN_LINK"
@@ -86,12 +83,6 @@ AC_SUBST([LIBSMBIOS_C_SONAME], [libsmbios_c.so.$LIBSMBIOS_C_SO_MAJOR])
8683
AC_SUBST([LIBSMBIOS_CPLUSPLUS_SO_MAJOR], [$(($LIBSMBIOS_CPLUSPLUS_LIBTOOL_CURRENT - $LIBSMBIOS_CPLUSPLUS_LIBTOOL_AGE))])
8784
AC_SUBST([LIBSMBIOS_CPLUSPLUS_SONAME], [libsmbios.so.$LIBSMBIOS_CPLUSPLUS_SO_MAJOR])
8885

89-
dnl Help line for libsmbios_cxx
90-
AC_ARG_ENABLE([libsmbios_cxx],
91-
AS_HELP_STRING([--enable-libsmbios_cxx],[Enable build of the c++ libsmbios.so library. This library is deprecated, most things should migrate to libsmbios_c.so. default: disabled]),
92-
[want_libsmbios_cxx=$enableval], [want_libsmbios_cxx=no])
93-
AM_CONDITIONAL(BUILD_LIBSMBIOS_CXX, [test x$want_libsmbios_cxx == xyes])
94-
9586
dnl Help line for doxygen
9687
AC_ARG_ENABLE(doxygen,
9788
AS_HELP_STRING([--disable-doxygen],[Disable API docs build via Doxygen. default: enabled if doxygen present]),
@@ -121,8 +112,6 @@ fi
121112
AC_PROG_CC
122113
AC_PROG_CC_C99
123114
AM_PROG_CC_C_O
124-
AC_PROG_CXX
125-
AC_PROG_CPP
126115
AC_PROG_INSTALL
127116

128117
dnl Check for python support
@@ -177,6 +166,9 @@ if test x$wantgraphviz != xyes ; then
177166
AM_CONDITIONAL(HAVE_DOT, [false])
178167
fi
179168

169+
#generate man pages for anything executable
170+
AC_PATH_PROG(HELP2MAN, help2man, false)
171+
180172
# the manual assembly in the media direct sources fails to build on ia64 as it
181173
# relies on more registers than available on ia64; there's no ia64 system with
182174
# media direct, so it's disabled on ia64
@@ -195,17 +187,13 @@ AM_CONDITIONAL(BUILD_LINUX, [test -n "$linux_os"])
195187
AM_CONDITIONAL(BUILD_WINDOWS, [test -n "$windows_os"])
196188

197189
PKG_CHECK_MODULES([LIBXML2], [libxml-2.0])
198-
PKG_CHECK_MODULES([CPPUNIT],[cppunit],[],[echo "CPPUNIT not found, disabling CPPUNIT dependent modules"])
199-
AM_CONDITIONAL(CPPUNIT_PRESENT, [test -n "$CPPUNIT_LIBS"])
200190

201191
# generate files and exit
202192
AC_CONFIG_FILES([Makefile])
203193
AC_CONFIG_FILES([pkg/libsmbios.spec])
204194
AC_CONFIG_FILES([po/Makefile.in])
205195
AC_CONFIG_FILES([libsmbios_c-uninstalled.pc:pkg/libsmbios_c-uninstalled.pc.in])
206196
AC_CONFIG_FILES([pkg/libsmbios_c.pc])
207-
AC_CONFIG_FILES([libsmbios_c++-uninstalled.pc:pkg/libsmbios_c++-uninstalled.pc.in])
208-
AC_CONFIG_FILES([pkg/libsmbios_c++.pc])
209197
AC_CONFIG_FILES([out/public-include/smbios/dlopen.h:pkg/dlopen.h.in])
210198
AC_CONFIG_FILES([out/public-include/smbios_c/dlopen.h:pkg/dlopen.h.in])
211199
AC_CONFIG_FILES([pkg/pkginfo])

debian/changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ libsmbios (2.4.0-1) UNRELEASED; urgency=medium
88
- No longer installs sh script with bashisms (Closes: #772330)
99
- Drops unsupported RBU based flashing (Closes: #496546)
1010
- Fixes improper function definition (Closes: #748243)
11+
- Generate man pages with help2man (Closes: #748023)
1112
* No longer build deprecated C++ library.
1213
- No longer installs broken dellMediaDirectCtl (Closes: #715812)
1314
* debian/control:
@@ -23,8 +24,10 @@ libsmbios (2.4.0-1) UNRELEASED; urgency=medium
2324
- Rename libsmbios2 -> libsmbios-c2
2425
Provides/Conflicts/Replaces to make a good transition both for
2526
Debian & Ubuntu.
27+
- Build depends on help2man.
2628
* debian/copyright:
2729
- Fix long lines (Closes: #803607, #803608, #803609)
30+
- Remove references to C++ stuff
2831
* debian/rules:
2932
- Switch to new debhelper format
3033
- Enable hardening flags

debian/compat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9
1+
10

debian/control

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Uploaders: tony mancill <[email protected]>, Mario Limonciello <mario.limoncie
66
Vcs-Git: https://salsa.debian.org/efi-team/libsmbios.git
77
Vcs-Browser: https://salsa.debian.org/efi-team/libsmbios
88
Homepage: https://github.com/dell/libsmbios/
9-
Build-Depends: debhelper (>= 9),
9+
Build-Depends: debhelper (>= 10),
1010
dh-python,
1111
dh-autoreconf,
1212
autotools-dev,
@@ -18,6 +18,7 @@ Build-Depends: debhelper (>= 9),
1818
autoconf,
1919
automake,
2020
libtool,
21+
help2man,
2122
autopoint
2223
Standards-Version: 4.1.3
2324

debian/copyright

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ This package was debianized by Jose Luis Tallon <[email protected]> on
22
Fri, 1 Jul 2005 23:34:21 +0200.
33

44
It was downloaded from:
5-
<http://linux.dell.com/libsmbios/download/libsmbios/>
6-
and subsequently stripped of its cppunit/platform directory as it
7-
included memory dumps of a proprietary BIOS.
5+
<https://github.com/dell/libsmbios>
86

9-
The files bin-{un,}supported/getopt.[ch] are copyright:
7+
The files src/bin/getopt.[ch] are copyright:
108
Copyright (c) 2001, 2002 Steve Mertz <[email protected]>
119
and licensed under a BSD alike license:
1210

@@ -38,65 +36,6 @@ and licensed under a BSD alike license:
3836
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3937
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4038

41-
======================================================================
42-
43-
Portions of the configuration system under include/smbios/config/ are
44-
taken and modified from the boost c++ library and are copyright:
45-
(C) Copyright John Maddock 2001 - 2003.
46-
(C) Copyright Aleksey Gurtovoy 2002 - 2003.
47-
(C) Copyright Beman Dawes 2001 - 2003.
48-
(C) Copyright Bill Kempf 2001 - 2002.
49-
(C) Copyright Darin Adler 2001 - 2002.
50-
(C) Copyright David Abrahams 2002 - 2003.
51-
(C) Copyright Douglas Gregor 2002.
52-
(C) Copyright Eric Friedman 2003.
53-
(C) Copyright Gennaro Prota 2003.
54-
(C) Copyright Guillaume Melquiond 2003.
55-
(C) Copyright Jens Maurer 2001 - 2003.
56-
(C) Copyright Martin Wille 2003.
57-
(C) Copyright Peter Dimov 2001.
58-
(C) Copyright Synge Todo 2003.
59-
Copyright (C) 2005 Dell Inc.
60-
and licensed under the boost 1.0 license:
61-
62-
======================================================================
63-
64-
Boost Software License - Version 1.0 - August 17th, 2003
65-
66-
Permission is hereby granted, free of charge, to any person or organization
67-
obtaining a copy of the software and accompanying documentation covered by
68-
this license (the "Software") to use, reproduce, display, distribute,
69-
execute, and transmit the Software, and to prepare derivative works of the
70-
Software, and to permit third-parties to whom the Software is furnished to
71-
do so, all subject to the following:
72-
73-
The copyright notices in the Software and this entire statement, including
74-
the above license grant, this restriction and the following disclaimer,
75-
must be included in all copies of the Software, in whole or in part, and
76-
all derivative works of the Software, unless such copies or derivative
77-
works are solely in the form of machine-executable object code generated by
78-
a source language processor.
79-
80-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
81-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
82-
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
83-
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
84-
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
85-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
86-
DEALINGS IN THE SOFTWARE.
87-
88-
======================================================================
89-
90-
bin-supported/wakeupCtl.cpp is copyright:
91-
* Copyright (C) 2005 David Greaves <[email protected]>
92-
and licensed under the GPL version 2 or later (see below).
93-
94-
If not otherwise specified, libsmbios is copyright:
95-
Copyright (C) 2005 Dell Inc.
96-
by Michael Brown <[email protected]>
97-
and dual licensed under the Open Software License version 2.1 and the
98-
GPL version 2 or later:
99-
10039
======================================================================
10140

10241
* Licensed under the Open Software License version 2.1

debian/manpages/smbios-bin.1

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)