--- nvramtool-0.0+r3669.orig/debian/changelog +++ nvramtool-0.0+r3669/debian/changelog @@ -0,0 +1,36 @@ +nvramtool (0.0+r3669-2.2build1) bionic; urgency=high + + * No change rebuild to pick up -fPIE compiler default + + -- Balint Reczey Tue, 03 Apr 2018 12:37:19 +0000 + +nvramtool (0.0+r3669-2.2) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS: hexdump.c:94:7: error: format not a string literal and + no format arguments [-Werror=format-security]": add patch + 20_fix_format-security.patch from peter green. + (Closes: #643448) + + -- gregor herrmann Sun, 20 Nov 2011 14:00:26 +0100 + +nvramtool (0.0+r3669-2.1) unstable; urgency=low + + * NMU, added armhf to the arch list. (Closes: #604666) + + -- Konstantinos Margaritis Thu, 24 Feb 2011 16:19:08 +0000 + +nvramtool (0.0+r3669-2) unstable; urgency=low + + * Limit the number of architectures to the ones that actually build for now: + alpha amd64 arm armel armeb i386 ia64 kfreebsd-amd64 kfreebsd-i386 + netbsd-alpha netbsd-i386 + + -- Uwe Hermann Thu, 30 Oct 2008 22:28:36 +0100 + +nvramtool (0.0+r3669-1) unstable; urgency=low + + * Initial release (Closes: #502797). + + -- Uwe Hermann Sun, 19 Oct 2008 20:43:49 +0200 + --- nvramtool-0.0+r3669.orig/debian/compat +++ nvramtool-0.0+r3669/debian/compat @@ -0,0 +1 @@ +7 --- nvramtool-0.0+r3669.orig/debian/control +++ nvramtool-0.0+r3669/debian/control @@ -0,0 +1,26 @@ +Source: nvramtool +Section: admin +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Uwe Hermann +Build-Depends: cdbs, debhelper (>= 7) +Standards-Version: 3.8.0 +Homepage: http://www.coreboot.org/Nvramtool + +Package: nvramtool +Architecture: alpha amd64 arm armel armeb armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 netbsd-alpha netbsd-i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Read/write coreboot-related NVRAM/CMOS information + nvramtool is a utility for reading/writing coreboot parameters in NVRAM/CMOS + and displaying information from the so-called 'coreboot table'. + . + The coreboot table resides in low physical memory. It is created at + boot time by coreboot, and contains various system information such as + the type of mainboard in use. It specifies locations in the NVRAM/CMOS + (nonvolatile RAM) where the coreboot parameters are stored. + . + This program is mostly intended for (x86-based) systems that use coreboot, but + can also be used for non-coreboot system (e.g. for dumping all NVRAM bytes). + . + For information about coreboot, see http://www.coreboot.org/. + --- nvramtool-0.0+r3669.orig/debian/copyright +++ nvramtool-0.0+r3669/debian/copyright @@ -0,0 +1,72 @@ +This package was debianized by Uwe Hermann on +Sun, 19 Oct 2008 20:43:49 +0200. + +It was downloaded from: + + svn://coreboot.org/repos/trunk/util/nvramtool + +Upstream Authors: + + David S. Peterson + Stefan Reinauer + +------------------------------------------------------------------------------- + +Files: * +Copyright: © 2002-2005 The Regents of the University of California +License: GPL-2 + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +------------------------------------------------------------------------------- + +Files: hexdump.[ch] +Copyright: © 2002 David S. Peterson +License: + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions, and the entire permission notice, including + the following disclaimer of warranties. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions, and the entire permission notice, + including the following disclaimer in the documentation and/or other + materials provided with the distribution. + 3. The name(s) of the author(s) may not be used to endorse or promote + products derived from this software without specific prior written + permission. + + ALTERNATIVELY, this product may be distributed under the terms of the GNU + General Public License, in which case the provisions of the GPL are + required INSTEAD OF the above restrictions. (This clause is necessary due + to a potential bad interaction between the GPL and the restrictions + contained in a BSD-style copyright.) + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +------------------------------------------------------------------------------- + +Files: lbtable.c +Copyright: © 2002-2005 Dave Peterson + © 2008 Stefan Reinauer +License: GPL-2 + +------------------------------------------------------------------------------- + +Files: debian/* +Copyright: © 2008 Uwe Hermann +License: PD + The packaging done by Uwe Hermann is hereby + released as public domain. + --- nvramtool-0.0+r3669.orig/debian/dirs +++ nvramtool-0.0+r3669/debian/dirs @@ -0,0 +1 @@ +usr/sbin --- nvramtool-0.0+r3669.orig/debian/docs +++ nvramtool-0.0+r3669/debian/docs @@ -0,0 +1,2 @@ +README +DISCLAIMER --- nvramtool-0.0+r3669.orig/debian/patches/10_makefile.patch +++ nvramtool-0.0+r3669/debian/patches/10_makefile.patch @@ -0,0 +1,21 @@ +Don't hardcode Makefile settings, let the dh_* tools do their job. + +--- Makefile.orig 2008-10-19 21:05:27.000000000 +0200 ++++ Makefile 2008-10-19 21:05:53.000000000 +0200 +@@ -11,8 +11,6 @@ + STRIP = strip + INSTALL = /usr/bin/install + PREFIX = /usr/local +-CFLAGS = -O2 -g -Wall -W +-#CFLAGS = -Os -Wall + + OBJS = cmos_lowlevel.o cmos_ops.o common.o compute_ip_checksum.o \ + hexdump.o input_file.o layout.o layout_file.o lbtable.o \ +@@ -22,7 +20,6 @@ + + $(PROGRAM): $(OBJS) + $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS) +- $(STRIP) $(STRIP_ARGS) $(PROGRAM) + + clean: + rm -f $(PROGRAM) *.o --- nvramtool-0.0+r3669.orig/debian/patches/20_fix_format-security.patch +++ nvramtool-0.0+r3669/debian/patches/20_fix_format-security.patch @@ -0,0 +1,60 @@ +diff -Nur -x '*.orig' -x '*~' nvramtool-0.0+r3669/hexdump.c nvramtool-0.0+r3669.new/hexdump.c +--- nvramtool-0.0+r3669/hexdump.c 2008-09-27 10:08:28.000000000 +0000 ++++ nvramtool-0.0+r3669.new/hexdump.c 2011-11-10 01:39:12.000000000 +0000 +@@ -91,9 +91,9 @@ + bytes_left >= format->bytes_per_line; + bytes_left -= format->bytes_per_line) + { /* print start address for current line */ +- fprintf(outfile, format->indent); ++ fprintf(outfile, "%s",format->indent); + addrprint(outfile, addrprint_start + index, format->addrprint_width); +- fprintf(outfile, format->sep1); ++ fprintf(outfile, "%s",format->sep1); + + /* display the bytes in hex */ + for (i = 0; ; ) +@@ -102,11 +102,11 @@ + if (++i >= format->bytes_per_line) + break; + +- fprintf(outfile, format->sep2); ++ fprintf(outfile,"%s", format->sep2); + } + + index -= format->bytes_per_line; +- fprintf(outfile, format->sep3); ++ fprintf(outfile,"%s", format->sep3); + + /* display the bytes as characters */ + for (i = 0; i < format->bytes_per_line; i++) +@@ -120,14 +120,14 @@ + return; + + /* print start address for last line */ +- fprintf(outfile, format->indent); ++ fprintf(outfile,"%s", format->indent); + addrprint(outfile, addrprint_start + index, format->addrprint_width); +- fprintf(outfile, format->sep1); ++ fprintf(outfile, "%s",format->sep1); + + /* display bytes for last line in hex */ + for (i = 0; i < bytes_left; i++) + { hexprint(outfile, p[index++]); +- fprintf(outfile, format->sep2); ++ fprintf(outfile, "%s",format->sep2); + } + + index -= bytes_left; +@@ -139,10 +139,10 @@ + if (++i >= format->bytes_per_line) + break; + +- fprintf(outfile, format->sep2); ++ fprintf(outfile,"%s", format->sep2); + } + +- fprintf(outfile, format->sep3); ++ fprintf(outfile, "%s",format->sep3); + + /* display bytes for last line as characters */ + for (i = 0; i < bytes_left; i++) --- nvramtool-0.0+r3669.orig/debian/rules +++ nvramtool-0.0+r3669/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/utils.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_MAKE_INSTALL_TARGET := install PREFIX=$(CURDIR)/debian/nvramtool/usr + +clean:: + rm -f .dependencies + +common-binary-post-install-arch:: list-missing + --- nvramtool-0.0+r3669.orig/debian/watch +++ nvramtool-0.0+r3669/debian/watch @@ -0,0 +1 @@ +# We track nvramtool svn revisions, thus no need for a watch file.