scanimage -L
mkdir imagescancd imagescanwget http://support.epson.net/linux/src/scanner/imagescanv3/opensuse/imagescan-3.62.0-1epson4opensuse15.1.src.rpmrpmbuild --rebuild imagescan-3.62.0-1epson4opensuse15.1.src.rpm
rpmbuild --rebuild
rpmbuild --rebuild imagescan-3.62.0-1epson4opensuse15.1.src.rpm Installing imagescan-3.62.0-1epson4opensuse15.1.src.rpmwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rooterror: uversion undefined, define to match source archive
rpmbuild --rebuild --define "uversion 3.59.2" imagescan-3.59.2-1epson4opensuse15.0.src.rpmInstalling imagescan-3.59.2-1epson4opensuse15.0.src.rpmwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rooterror: Bad source: /usr/src/packages/SOURCES/utsushi-3.59.2.tar.gz: No such file or directory
localhost:/usr/src/packages/SOURCES # lsgdk-pixbuf-format.patch imagescan.desktopgtkmm-2.20-compat.patch rebranding.patchimagescan.conf utsushi-0.59.2.tar.gz
# rpmbuild --rebuild --define "uversion 0.59.2" imagescan-3.59.2-1epson4opensuse15.0.src.rpmInstalling imagescan-3.59.2-1epson4opensuse15.0.src.rpmwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rooterror: Failed build dependencies: GraphicsMagick is needed by imagescan-3.59.2-1.i586 boost-devel is needed by imagescan-3.59.2-1.i586 gtkmm24-devel is needed by imagescan-3.59.2-1.i586 libGraphicsMagick++-devel is needed by imagescan-3.59.2-1.i586 libjpeg-devel is needed by imagescan-3.59.2-1.i586 libtiff-devel is needed by imagescan-3.59.2-1.i586 libudev-devel is needed by imagescan-3.59.2-1.i586 libusb-1_0-devel is needed by imagescan-3.59.2-1.i586 sane-backends-devel is needed by imagescan-3.59.2-1.i586
# rpmbuild --rebuild --define "uversion 0.59.2" imagescan-3.59.2-1epson4opensuse15.0.src.rpmInstalling imagescan-3.59.2-1epson4opensuse15.0.src.rpmwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootwarning: user build does not exist - using rootExecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.kjLGqO+ umask 022+ cd /usr/src/packages/BUILD+ cd /usr/src/packages/BUILD+ rm -rf utsushi-0.59.2+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/utsushi-0.59.2.tar.gz+ /usr/bin/tar -xof -+ STATUS=0+ '[' 0 -ne 0 ']'+ cd utsushi-0.59.2+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .+ echo 'Patch #0 (rebranding.patch):'Patch #0 (rebranding.patch):+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0patching file READMEpatching file gtkmm/about.xml.inpatching file lib/monitor.cpppatching file lib/run-time.cpp+ sed -i 's/^utsushi-0\.\([^ \t]*\) /imagescan-3.\1/' NEWS+ RPM_EC=0++ jobs -p+ exit 0Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SOTk9P+ umask 022+ cd /usr/src/packages/BUILD+ /usr/bin/rm -rf /usr/src/packages/BUILDROOT/imagescan-3.59.2-1.i386++ dirname /usr/src/packages/BUILDROOT/imagescan-3.59.2-1.i386+ /usr/bin/mkdir -p /usr/src/packages/BUILDROOT+ /usr/bin/mkdir /usr/src/packages/BUILDROOT/imagescan-3.59.2-1.i386+ cd utsushi-0.59.2+ CFLAGS='-O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'+ export CFLAGS+ CXXFLAGS='-O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'+ export CXXFLAGS+ FFLAGS='-O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '+ export FFLAGS+ FCFLAGS='-O2 -g -m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables '+ export FCFLAGS+ LDFLAGS=+ export LDFLAGS+ ./configure --host=i586-suse-linux-gnu --build=i586-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --with-jpeg --with-tiff --with-gtkmm --with-sane --with-magick --with-magick-pp --disable-staticconfigure: loading site script /usr/share/site/i686-pc-linux-gnuchecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /usr/bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether UID '0' is supported by ustar format... yeschecking whether GID '0' is supported by ustar format... yeschecking how to create a ustar tar archive... gnutarchecking whether to enable maintainer-specific portions of Makefiles... yeschecking whether make supports nested variables... (cached) yeschecking for i586-suse-linux-gnu-gcc... nochecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking whether gcc understands -c and -o together... yeschecking for style of include used by make... GNUchecking dependency style of gcc... nonechecking for gcc option to support OpenMP... -fopenmpchecking for i586-suse-linux-gnu-g++... nochecking for i586-suse-linux-gnu-c++... nochecking for i586-suse-linux-gnu-gpp... nochecking for i586-suse-linux-gnu-aCC... nochecking for i586-suse-linux-gnu-CC... nochecking for i586-suse-linux-gnu-cxx... nochecking for i586-suse-linux-gnu-cc++... nochecking for i586-suse-linux-gnu-cl.exe... nochecking for i586-suse-linux-gnu-FCC... nochecking for i586-suse-linux-gnu-KCC... nochecking for i586-suse-linux-gnu-RCC... nochecking for i586-suse-linux-gnu-xlC_r... nochecking for i586-suse-linux-gnu-xlC... nochecking for g++... g++checking whether we are using the GNU C++ compiler... yeschecking whether g++ accepts -g... yeschecking dependency style of g++... nonechecking standard compliance level of g++... 201402Lchecking for i586-suse-linux-gnu-ar... nochecking for i586-suse-linux-gnu-lib... nochecking for i586-suse-linux-gnu-link... nochecking for ar... archecking the archiver (ar) interface... archecking for i586-suse-linux-gnu-pkg-config... /usr/bin/i586-suse-linux-gnu-pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for a sed that does not truncate output... /usr/bin/sedchecking whether NLS is requested... yeschecking for msgfmt... /usr/bin/msgfmtchecking for gmsgfmt... /usr/bin/msgfmtchecking for xgettext... /usr/bin/xgettextchecking for msgmerge... /usr/bin/msgmergechecking build system type... i586-suse-linux-gnuchecking host system type... i586-suse-linux-gnuchecking for ld used by gcc... /usr/i586-suse-linux/bin/ldchecking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yeschecking for shared library run path origin... donechecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /usr/bin/grepchecking for egrep... /usr/bin/grep -Echecking for CFPreferencesCopyAppValue... nochecking for CFLocaleCopyCurrent... nochecking for GNU gettext in libc... yeschecking whether to use NLS... yeschecking where the gettext function comes from... libcchecking how to print strings... printfchecking for a sed that does not truncate output... (cached) /usr/bin/sedchecking for fgrep... /usr/bin/grep -Fchecking for ld used by gcc... /usr/i586-suse-linux/bin/ldchecking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yeschecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -Bchecking the name lister (/usr/bin/nm -B) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 1572864checking whether the shell understands some XSI constructs... yeschecking whether the shell understands "+="... yeschecking how to convert i586-suse-linux-gnu file names to i586-suse-linux-gnu format... func_convert_file_noopchecking how to convert i586-suse-linux-gnu file names to toolchain format... func_convert_file_noopchecking for /usr/i586-suse-linux/bin/ld option to reload object files... -rchecking for i586-suse-linux-gnu-objdump... nochecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for i586-suse-linux-gnu-dlltool... nochecking for dlltool... nochecking how to associate runtime and link libraries... printf %s\nchecking for i586-suse-linux-gnu-ar... archecking for archiver @FILE support... @checking for i586-suse-linux-gnu-strip... nochecking for strip... stripchecking for i586-suse-linux-gnu-ranlib... nochecking for ranlib... ranlibchecking command to parse /usr/bin/nm -B output from gcc object... okchecking for sysroot... nochecking for i586-suse-linux-gnu-mt... nochecking for mt... mtchecking if mt is a manifest tool... nochecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... nochecking for gcc option to produce PIC... -fPIC -DPICchecking if gcc PIC flag -fPIC -DPIC works... yeschecking if gcc static flag -static works... nochecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking for shl_load... nochecking for shl_load in -ldld... nochecking for dlopen... nochecking for dlopen in -ldl... yeschecking whether a program can dlopen itself... yeschecking whether a statically linked program can dlopen itself... yeschecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... nochecking how to run the C++ preprocessor... g++ -Echecking for ld used by g++... /usr/i586-suse-linux/bin/ldchecking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yeschecking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yeschecking for g++ option to produce PIC... -fPIC -DPICchecking if g++ PIC flag -fPIC -DPIC works... yeschecking if g++ static flag -static works... nochecking if g++ supports -c -o file.o... yeschecking if g++ supports -c -o file.o... (cached) yeschecking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yeschecking dynamic linker characteristics... (cached) GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking which extension is used for runtime loadable modules... .sochecking which variable specifies run-time module search path... LD_LIBRARY_PATHchecking for the default library search path... /lib /usr/lib /usr/local/lib /usr/lib/graphviz /usr/lib/graphviz/sharp /usr/lib/graphviz/java /usr/lib/graphviz/perl /usr/lib/graphviz/php /usr/lib/graphviz/ocaml /usr/lib/graphviz/python /usr/lib/graphviz/lua /usr/lib/graphviz/tcl /usr/lib/graphviz/guile /usr/lib/graphviz/ruby /usr/lib/kid3 checking for library containing dlopen... -ldlchecking for dlerror... yeschecking for shl_load... (cached) nochecking for shl_load in -ldld... (cached) nochecking for dld_link in -ldld... nochecking for _ prefix in compiled symbols... nochecking whether deplibs are loaded by dlopen... yeschecking for argz.h... yeschecking for error_t... yeschecking for argz_add... yeschecking for argz_append... yeschecking for argz_count... yeschecking for argz_create_sep... yeschecking for argz_insert... yeschecking for argz_next... yeschecking for argz_stringify... yeschecking if argz actually works... yeschecking whether libtool supports -dlopen/-dlpreopen... yeschecking for ltdl.h... yeschecking whether lt_dlinterface_register is declared... yeschecking for lt_dladvise_preload in -lltdl... yeschecking where to find libltdl headers... checking where to find libltdl library... -lltdlchecking for unistd.h... (cached) yeschecking for dl.h... nochecking for sys/dl.h... nochecking for dld.h... nochecking for mach-o/dyld.h... nochecking for dirent.h... yeschecking for closedir... yeschecking for opendir... yeschecking for readdir... yeschecking for strlcat... nochecking for strlcpy... nochecking for boostlib >= 1.49.0... yeschecking whether the Boost::System library is available... yeschecking for exit in -lboost_system... nochecking for exit in -lboost_system... (cached) noconfigure: error: Could not link against boost_system !error: Bad exit status from /var/tmp/rpm-tmp.SOTk9P (%build)RPM build errors: user build does not exist - using root user build does not exist - using root user build does not exist - using root user build does not exist - using root user build does not exist - using root user build does not exist - using root user build does not exist - using root Bad exit status from /var/tmp/rpm-tmp.SOTk9P (%build)
localhost:/usr/src/packages/BUILD/utsushi-0.59.2
./configure
checking for exit in -lboost_system... nochecking for exit in -lboost_system... (cached) noconfigure: error: Could not link against boost_system !
make
/usr/include/gtk-2.0/gtk/gtktypeutils.h:236:64: error: 'GTypeDebugFlags' is deprecated [-Werror=deprecated-declarations] 236 | void gtk_type_init (GTypeDebugFlags debug_flags); | ^In file included from /usr/include/glib-2.0/gobject/gobject.h:24, from /usr/include/glib-2.0/gobject/gbinding.h:29, from /usr/include/glib-2.0/glib-object.h:23, from /usr/include/glib-2.0/gio/gioenums.h:28, from /usr/include/glib-2.0/gio/giotypes.h:28, from /usr/include/glib-2.0/gio/gio.h:26, from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, from /usr/include/gtk-2.0/gdk/gdk.h:32, from /usr/include/gtk-2.0/gtk/gtk.h:32, from /usr/include/gtkmm-2.4/gtkmm/box.h:44, from /usr/include/gtkmm-2.4/gtkmm/dialog.h:31, from action-dialog.hpp:27, from action-dialog.cpp:25:/usr/include/glib-2.0/gobject/gtype.h:685:3: note: declared here 685 | } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36; | ^~~~~~~~~~~~~~~In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31, from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30, from /usr/include/gtk-2.0/gtk/gtk.h:126, from /usr/include/gtkmm-2.4/gtkmm/box.h:44, from /usr/include/gtkmm-2.4/gtkmm/dialog.h:31, from action-dialog.hpp:27, from action-dialog.cpp:25:/usr/include/gtk-2.0/gtk/gtktooltips.h:73:12: error: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations] 73 | GTimeVal last_popdown; | ^~~~~~~~~~~~In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glibmm-2.4/glibmm/unicode.h:23, from /usr/include/glibmm-2.4/glibmm/ustring.h:21, from /usr/include/gtkmm-2.4/gtkmm/dialog.h:7, from action-dialog.hpp:27, from action-dialog.cpp:25:/usr/include/glib-2.0/glib/gtypes.h:549:26: note: declared here 549 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~In file included from /usr/include/gtkmm-2.4/gtkmm/image.h:33, from action-dialog.cpp:35:/usr/include/gdkmm-2.4/gdkmm/pixbufanimation.h:124:72: error: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations] 124 | Glib::RefPtr<PixbufAnimationIter> get_iter(const GTimeVal* start_time); | ^In file included from /usr/include/glib-2.0/glib/galloca.h:32, from /usr/include/glib-2.0/glib.h:30, from /usr/include/glibmm-2.4/glibmm/unicode.h:23, from /usr/include/glibmm-2.4/glibmm/ustring.h:21, from /usr/include/gtkmm-2.4/gtkmm/dialog.h:7, from action-dialog.hpp:27, from action-dialog.cpp:25:/usr/include/glib-2.0/glib/gtypes.h:549:26: note: declared here 549 | typedef struct _GTimeVal GTimeVal GLIB_DEPRECATED_TYPE_IN_2_62_FOR(GDateTime); | ^~~~~~~~cc1plus: all warnings being treated as errorsmake[2]: *** [Makefile:568: action-dialog.lo] Błąd 1make[2]: Opuszczenie katalogu '/usr/src/packages/BUILD/utsushi-0.59.2/gtkmm'make[1]: *** [Makefile:604: all-recursive] Błąd 1make[1]: Opuszczenie katalogu '/usr/src/packages/BUILD/utsushi-0.59.2'make: *** [Makefile:511: all] Błąd 2
cc1plus: all warnings being treated as errors
cd utsushi-$_utsushiver sed -e 's|-Werror||g' -i configure.ac