dell / libsmbios

library for interacting with Dell SMBIOS tables
Other
192 stars 39 forks source link

Building of .deb on Ubuntu 17.04 #20

Closed petr-nehez closed 6 years ago

petr-nehez commented 7 years ago

Is there anybody who can help me to make .deb file for Ubuntu 17.04? I am not able to do it and I would like to use the latest version because of the issue with the keyboard backlight on my Precision 3510.

This is an output I get when I execute make debs:

tmp_dir='mktemp -d /tmp/firmware-tools.XXXXXXXX' ; \ make debmagic DEB_TMP_BUILDDIR=${tmp_dir} DIST= DISTTAG= ; \ rm -rf ${tmp_dir} make[1]: Entering directory '/home/petr/Downloads/libsmbios-master' [ -n "$DEB_TMP_BUILDDIR" ] || (echo "Must set DEB_TMP_BUILDDIR=/tmp/... for deb and sdeb targets"; exit 1) [ -n "$DIST" ] || (echo "Must set DIST={gutsy,hardy,sid,...} for deb and sdeb targets"; exit 1) Must set DIST={gutsy,hardy,sid,...} for deb and sdeb targets Makefile:4049: recipe for target 'debmagic' failed make[1]: *** [debmagic] Error 1 make[1]: Leaving directory '/home/petr/Downloads/libsmbios-master'

superm1 commented 7 years ago

So what you'll want to do if you want to use the built in deb building:

I've adjusted a few things, give it another shot.

make dist
make debs DIST=zesty

The build system is a little weird though. I think it makes sense to axe these odd Makefile targets (debs and debmagic) and only do builds in docker containers with a docker script.

petr-nehez commented 7 years ago

I had some time to give another try, it's better but still no .deb file. First I had to change pkg/debian/changelog.in where the first line was updated to contain 2.3.3. But then the build still fails see output in 20-0.txt and the rest on the screen here 20-1.txt.

sujithshankar commented 7 years ago

I tried with master branch with a few tweaks and through #dpkg-buildpackage Please check if this serves the purpose for you as well.

  1. Move the debian folder from pkg/ to root of the source code: #mv ./pkg/debian ./
  2. From source-root folder, do #dch and update the version in changelog
  3. libsmbios-dev and libsmbios-doc are having some issues. So, in debian/control file, comment out the Package section of these two packages.
  4. Build packages using #dpkg-buildpackage -b .deb files of packages will be parent directory.

Have to check how to make libsmbios-dev and libsmbios-doc work with this approach.

petr-nehez commented 7 years ago

Sorry for late response but I've been busy during summer time. It still does not succeed - it fails on missing out/libsmbios_c++/html/*. See the libsmbios_2.3.3_amd64.build here.