ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
704 stars 160 forks source link

Add Debian dir and fix linitan error #330

Closed shiptux closed 3 years ago

shiptux commented 3 years ago

Shared library in libgl4es. Development Headers in libgl4es-dev.

There are many versions of the MIT license. Please use Expat instead, when it matches. See: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Manual compile:

git archive --format tar.gz HEAD >../gl4es_1.1.4.orig.tar.gz

apt install cmake libx11-dev dpkg-dev -y

dpkg-buildpackage -us -uc

Use pbuilder

git archive --format tar.gz HEAD >../gl4es_1.1.4.orig.tar.gz

dpkg-source -b .

sudo apt install pbuilder -y

sudo pbuilder --create --distribution buster --basetgz buster.tgz

sudo pbuilder --build  --basetgz  buster gl4es_1.1.4-1.dsc

Testing in local:

  W: /root/.pbuilderrc does not exist
W: cgroups are not available on the host, not using them.
I: pbuilder: network access will be disabled during build
I: Current time: Wed Aug  4 15:47:30 CST 2021
I: pbuilder-time-stamp: 1628063250
I: Building the build Environment
I: extracting base tarball [/home/uos/sp2-arm64.tar]
I: copying local configuration
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
I: redirecting /dev/ptmx to /dev/pts/ptmx
I: mounting selinux filesystem
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Copying source file
I: copying [gl4es_1.1.4-1.dsc]
I: copying [./gl4es_1.1.4.orig.tar.gz]
I: copying [./gl4es_1.1.4-1.debian.tar.xz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package (gl4es_1.1.4-1.dsc)
dpkg-source: info: extracting gl4es in gl4es-1.1.4
dpkg-source: info: unpacking gl4es_1.1.4.orig.tar.gz
dpkg-source: info: unpacking gl4es_1.1.4-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying fix_lintian_error
.........................
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "None"
-- Installing: /build/gl4es-1.1.4/debian/tmp/usr/lib/gl4es/libGL.so.1
-- Installing: /build/gl4es-1.1.4/debian/tmp/usr/include/gl4es/gl4esinit.h
-- Installing: /build/gl4es-1.1.4/debian/tmp/usr/include/gl4es/gl4eshint.h
make[1]: Leaving directory '/build/gl4es-1.1.4/obj-aarch64-linux-gnu'
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_missing
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: Depends field of package libgl4es-dev: substitution variable ${shlibs:Depends} used, but is not defined
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'libgl4es' in '../libgl4es_1.1.4-1_arm64.deb'.
dpkg-deb: building package 'libgl4es-dev' in '../libgl4es-dev_1.1.4-1_arm64.deb'.
dpkg-deb: building package 'libgl4es-dbgsym' in '../libgl4es-dbgsym_1.1.4-1_arm64.deb'.
 dpkg-genbuildinfo
 dpkg-genchanges  >../gl4es_1.1.4-1_arm64.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: full upload (original source is included)
I: copying local configuration
I: Copying back the cached apt archive contents
I: unmounting /sys/fs/selinux filesystem
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: cleaning the build env 
I: removing directory /var/cache/pbuilder/build/7041 and its subdirectories
I: Current time: Wed Aug  4 15:49:30 CST 2021
I: pbuilder-time-stamp: 1628063370

Lintian Check

lintian -c ../libgl4es_1.1.4-1_arm64.deb 
W: libgl4es: new-package-should-close-itp-bug
W: libgl4es: extended-description-line-too-long
W: libgl4es: extended-description-line-too-long
W: libgl4es: extended-description-line-too-long
W: libgl4es: package-has-unnecessary-activation-of-ldconfig-trigger
peeweep commented 3 years ago

@shiptux Some linting suggests.