Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unrepresentable changes to source

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
MultiplexLayout
Posts: 56
Joined: 2020-09-23 19:21
Has thanked: 7 times

Unrepresentable changes to source

#1 Post by MultiplexLayout »

I am trying to debianize the source code for the Citra emulator using the "building packages the smart way" thread. Here is the procedure I have followed:

Code: Select all

git clone --recursive https://github.com/citra-emu/citra citracustom-20210412

dh_make -p citra-custom --createorig
At this point I modify my rules and control like so:

Code: Select all

rules:

#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1


# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


%:
	dh $@ --buildsystem=cmake


# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
	dh_auto_configure -- 	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=True -DENABLE_FFMPEG_AUDIO_DECODER=ON 

control:

Source: citra-custom
Section: unknown
Priority: optional
Maintainer: myusername <mydomain>
Build-Depends: debhelper (>= 11), qtbase5-dev, libqt5opengl5-dev, qtmultimedia5-dev, libqt5multimedia5-plugins, libfdk-aac-dev, ffmpeg, libswscale-dev, libavformat-dev, libavcodec-dev, libavdevice-dev
Standards-Version: 4.1.3
Homepage: <insert the upstream URL, if relevant>
#Vcs-Browser: https://salsa.debian.org/debian/citra-custom
#Vcs-Git: https://salsa.debian.org/debian/citra-custom.git

Package: citra-custom
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, qtbase5-dev, libqt5opengl5-dev, qtmultimedia5-dev, libqt5multimedia5-plugins, libfdk-aac-dev, ffmpeg, libswscale-dev, libavformat-dev, libavcodec-dev, libavdevice-dev
Description: Custom version of Citra compiled from source
 <insert long description, indented with spaces>
then run dkpg-buildpackage -j8. If ails with this output:

Code: Select all

dpkg-buildpackage: info: source package citra-custom
dpkg-buildpackage: info: source version 20210412-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by sdebian <sdebian@debian.debian>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 fakeroot debian/rules clean
dh clean --buildsystem=cmake
   dh_auto_clean -O--buildsystem=cmake
   dh_autoreconf_clean -O--buildsystem=cmake
   dh_clean -O--buildsystem=cmake
dh_auto_configure -- 	-DCMAKE_LIBRARY_PATH=x86_64-linux-gnu -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=True -DENABLE_FFMPEG_AUDIO_DECODER=ON 
	cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCMAKE_LIBRARY_PATH=x86_64-linux-gnu -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=True -DENABLE_FFMPEG_AUDIO_DECODER=ON ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Copying pre-commit hook
-- Target architecture: x86_64
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
<FindSDL2.cmake>
</FindSDL2.cmake>
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-pthread  
--  Found avcodec: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavcodec.so (version: 58.35.100)
--  Found avdevice: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavdevice.so (version: 58.5.100)
--  Found avfilter: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavfilter.so (version: 7.40.101)
--  Found avformat: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavformat.so (version: 58.20.100)
--  Found avutil: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libavutil.so (version: 56.22.100)
--  Found swresample: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswresample.so (version: 3.3.100)
--  Found swscale: /usr/include/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libswscale.so (version: 5.3.100)
-- Found FFmpeg: /usr/include/x86_64-linux-gnu  found components: avcodec 
CMake Warning at CMakeLists.txt:273 (message):
  Clang format not found! Disabling the clang format target


-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test CRYPTOPP_HAS_MSSE2
-- Performing Test CRYPTOPP_HAS_MSSE2 - Success
-- Performing Test CRYPTOPP_HAS_MSSSE3
-- Performing Test CRYPTOPP_HAS_MSSSE3 - Success
-- Performing Test CRYPTOPP_HAS_MSSE41
-- Performing Test CRYPTOPP_HAS_MSSE41 - Success
-- Performing Test CRYPTOPP_HAS_MSSE42
-- Performing Test CRYPTOPP_HAS_MSSE42 - Success
-- Performing Test CRYPTOPP_HAS_MAES
-- Performing Test CRYPTOPP_HAS_MAES - Success
-- Performing Test CRYPTOPP_HAS_PCLMUL
-- Performing Test CRYPTOPP_HAS_PCLMUL - Success
-- Performing Test CRYPTOPP_HAS_MSHA
-- Performing Test CRYPTOPP_HAS_MSHA - Success
-- Performing Test CRYPTOPP_HAS_ARMV8_CRC32
-- Performing Test CRYPTOPP_HAS_ARMV8_CRC32 - Failed
-- Performing Test CRYPTOPP_HAS_ARMV8_CRYPTO
-- Performing Test CRYPTOPP_HAS_ARMV8_CRYPTO - Failed
CMake Warning (dev) at externals/dynarmic/CMakeLists.txt:15 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'DYNARMIC_TESTS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Target architecture: x86_64
-- Version: 7.1.2
-- Build type: Release
-- CXX_STANDARD: 17
-- Performing Test has_std_17_flag
-- Performing Test has_std_17_flag - Success
-- Performing Test has_std_1z_flag
-- Performing Test has_std_1z_flag - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Performing Test FMT_HAS_VARIANT
-- Performing Test FMT_HAS_VARIANT - Success
-- Required features: cxx_variadic_templates
-- Looking for strtod_l
-- Looking for strtod_l - not found
-- Performing Test SOUNDTOUCH_HAS_MMMX
-- Performing Test SOUNDTOUCH_HAS_MMMX - Success
-- Performing Test SOUNDTOUCH_HAS_MSSE
-- Performing Test SOUNDTOUCH_HAS_MSSE - Success
-- ZSTD VERSION: 1.4.8
-- Performing Test CXX_FLAG_STD_CPLUSPLUS11
-- Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success
-- Performing Test C_FLAG_STD_C99
-- Performing Test C_FLAG_STD_C99 - Success
-- Performing Test C_FLAG_WALL
-- Performing Test C_FLAG_WALL - Success
-- Performing Test CXX_FLAG_WALL
-- Performing Test CXX_FLAG_WALL - Success
-- Performing Test C_FLAG_WEXTRA
-- Performing Test C_FLAG_WEXTRA - Success
-- Performing Test CXX_FLAG_WEXTRA
-- Performing Test CXX_FLAG_WEXTRA - Success
-- Performing Test C_FLAG_WUNDEF
-- Performing Test C_FLAG_WUNDEF - Success
-- Performing Test CXX_FLAG_WUNDEF
-- Performing Test CXX_FLAG_WUNDEF - Success
-- Performing Test C_FLAG_WSHADOW
-- Performing Test C_FLAG_WSHADOW - Success
-- Performing Test CXX_FLAG_WSHADOW
-- Performing Test CXX_FLAG_WSHADOW - Success
-- Performing Test C_FLAG_WCAST_ALIGN
-- Performing Test C_FLAG_WCAST_ALIGN - Success
-- Performing Test CXX_FLAG_WCAST_ALIGN
-- Performing Test CXX_FLAG_WCAST_ALIGN - Success
-- Performing Test C_FLAG_WCAST_QUAL
-- Performing Test C_FLAG_WCAST_QUAL - Success
-- Performing Test CXX_FLAG_WCAST_QUAL
-- Performing Test CXX_FLAG_WCAST_QUAL - Success
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES
-- Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success
-- CMAKE_INSTALL_PREFIX: /usr
-- CMAKE_INSTALL_LIBDIR: lib/x86_64-linux-gnu
-- ZSTD_LEGACY_SUPPORT not defined!
-- ZSTD_MULTITHREAD_SUPPORT is enabled
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for poll
-- Looking for poll - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - found
-- Looking for gethostbyaddr_r
-- Looking for gethostbyaddr_r - found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Performing Test HAS_MSGHDR_FLAGS
-- Performing Test HAS_MSGHDR_FLAGS - Success
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Looking for include file AudioUnit/AudioUnit.h
-- Looking for include file AudioUnit/AudioUnit.h - not found
-- Looking for include file pulse/pulseaudio.h
-- Looking for include file pulse/pulseaudio.h - found
-- Looking for include file alsa/asoundlib.h
-- Looking for include file alsa/asoundlib.h - found
-- Looking for include file jack/jack.h
-- Looking for include file jack/jack.h - found
-- Looking for include file audioclient.h
-- Looking for include file audioclient.h - not found
-- Looking for include files windows.h, mmsystem.h
-- Looking for include files windows.h, mmsystem.h - not found
-- Looking for include file SLES/OpenSLES.h
-- Looking for include file SLES/OpenSLES.h - not found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - found
-- Looking for include file android/log.h
-- Looking for include file android/log.h - not found
-- Looking for include file sndio.h
-- Looking for include file sndio.h - found
-- Looking for include file sys/audioio.h
-- Looking for include file sys/audioio.h - not found
-- Looking for include file kai.h
-- Looking for include file kai.h - not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Looking for asprintf
-- Looking for asprintf - found
-- Looking for reallocarray
-- Looking for reallocarray - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for strsep
-- Looking for strsep - found
-- Looking for timegm
-- Looking for timegm - found
-- Looking for arc4random_buf
-- Looking for arc4random_buf - not found
-- Looking for arc4random_uniform
-- Looking for arc4random_uniform - not found
-- Looking for explicit_bzero
-- Looking for explicit_bzero - found
-- Looking for getauxval
-- Looking for getauxval - found
-- Looking for getentropy
-- Looking for getentropy - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for timingsafe_bcmp
-- Looking for timingsafe_bcmp - not found
-- Looking for timingsafe_memcmp
-- Looking for timingsafe_memcmp - not found
-- Looking for memmem
-- Looking for memmem - found
-- Looking for include file err.h
-- Looking for include file err.h - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Check size of time_t
-- Check size of time_t - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY


-- Build files have been written to: /home/sdebian/git-clones/citracustom-20210412/obj-x86_64-linux-gnu
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building citra-custom using existing ./citra-custom_20210412.orig.tar.xz
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_C.bin: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_C.bin in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_C.bin' will not be represented in diff
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CMakeDetermineCompilerABI_CXX.bin' will not be represented in diff
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CompilerIdC/a.out: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CompilerIdC/a.out in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CompilerIdC/a.out' will not be represented in diff
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CompilerIdCXX/a.out: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CompilerIdCXX/a.out in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/3.16.3/CompilerIdCXX/a.out' will not be represented in diff
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.bin: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.bin in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.bin' will not be represented in diff
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/HAS_SOCKLEN_T.bin: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/HAS_SOCKLEN_T.bin in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/HAS_SOCKLEN_T.bin' will not be represented in diff
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/SIZEOF_TIME_T.bin: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/SIZEOF_TIME_T.bin in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/CheckTypeSize/SIZEOF_TIME_T.bin' will not be represented in diff
dpkg-source: error: cannot represent change to obj-x86_64-linux-gnu/CMakeFiles/TestEndianess.bin: binary file contents changed
dpkg-source: error: add obj-x86_64-linux-gnu/CMakeFiles/TestEndianess.bin in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: warning: executable mode 0755 of 'obj-x86_64-linux-gnu/CMakeFiles/TestEndianess.bin' will not be represented in diff
dpkg-source: warning: newly created empty file 'obj-x86_64-linux-gnu/dist/compatibility_list/compatibility_list.json' will not be represented in diff
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2

I feel dumb for asking for help twice in as many days, but once again I can build this using cmake alone and install it to a custom prefix just fine, so I just have to throw my hands up and say, "I don't know what I'm doing wrong."

Post Reply