I am trying to build on the obs servers but i cannot figure out how to make it do that, can someone help me?
(basically i dont want it to download packages, i want it to happen on the servers)
I am trying to build on the obs servers but i cannot figure out how to make it do that, can someone help me?
(basically i dont want it to download packages, i want it to happen on the servers)
@40476 check the repository settings, are the added and enabled to build? As long as you have a spec file and source uploaded, make a change on a spec file and save it should start to build, else on the repository side you can hit trigger to rebuild.
Can you five me step by step instructions on how to do this?
@40476 care to share your project link so can see what state it’s in.
five
*give
trying to do the badapple thing on my keyboard (boredom struck me)
@40476 So you need to select ‘Add local files’ and upload your spec file and source…
i fixed some things but i dont know what this means
[ 14s] -----------------------------------------------------------------
[ 14s] ----- building badapple.spec (user abuild)
[ 14s] -----------------------------------------------------------------
[ 14s] -----------------------------------------------------------------
[ 14s] setting SOURCE_DATE_EPOCH_MTIME to 1715634838
[ 14s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:40476/openSUSE_Tumbleweed/0362624a66bb7d7766dba194543f0e7d-apple' /home/abuild/rpmbuild/SOURCES/badapple.spec
[ 14s] using SOURCE_DATE_EPOCH with value 1715634837 as build time
[ 14s] Executing(%prep): /usr/bin/bash -e /var/tmp/rpm-tmp.MwVJ4B
[ 14s] + umask 022
[ 14s] + cd /home/abuild/rpmbuild/BUILD
[ 14s] + cd /home/abuild/rpmbuild/BUILD
[ 14s] + rm -rf badapple-0.0.3+3
[ 14s] + /usr/lib/rpm/rpmuncompress -x /home/abuild/rpmbuild/SOURCES/badapple.tar.gz
[ 14s] + STATUS=0
[ 14s] + '[' 0 -ne 0 ']'
[ 14s] + cd badapple-0.0.3+3
[ 14s] /var/tmp/rpm-tmp.MwVJ4B: line 40: cd: badapple-0.0.3+3: No such file or directory
[ 14s] error: Bad exit status from /var/tmp/rpm-tmp.MwVJ4B (%prep)
[ 14s]
[ 14s] RPM build errors:
[ 14s] Bad exit status from /var/tmp/rpm-tmp.MwVJ4B (%prep)
[ 14s] ### VM INTERACTION START ###
[ 14s] [ 10.756197][ T1] sysrq: Power Off
[ 14s] [ 10.756805][ T10] reboot: Power down
[ 14s] ### VM INTERACTION END ###
[ 14s]
[ 14s] h02-ch2c failed "build badapple.spec" at Mon May 13 23:58:53 UTC 2024.
[ 14s]
sorry if I’m taking a while I’m working on two things at once right now
What is badapple-0.0.3+3
@40476 because the Source entry does not match the Version entry…
%setup
%autosetup -p1 -n badapple
This is what it is saying now, I tried make the first letter of the makefile lowercase to match the error but had to change to a zip file since im on a different computer right now
[ 18s] make: *** No targets specified and no makefile found. Stop.
[ 18s] error: Bad exit status from /var/tmp/rpm-tmp.OnuRkK (%build)
@40476 you need to add BuildRequires: unzip
and also, it’s %prep not %setup…
Alright, so now it is building the package but I clearly must have broken something else,
Cloned g510s locally
I renamed every in every file with g510s to bad apple (including filenames)
Changed the clock code to send a wbmp file to the keyboard display
Kate (text editor) did show any warnings other than ones that existed before this happened
(Replied via email, not sure if my first message went through.)
Alright, so now it is building the package but I clearly must have broken something else,
Cloned g510s locally
I renamed every in every file with g510s to bad apple (including filenames)
Changed the clock code to send a wbmp file to the keyboard display
Kate (text editor) did show any warnings other than ones that existed before this happened
i tried fiddling with a few other parameters and managed to add a missing file but still is not finshing
@malcolmlewis What do I need to fix?
[ 13s] update-alternatives: using /usr/bin/unzip-plain to provide /usr/bin/unzip (unzip) in auto mode
[ 13s] update-alternatives: using /usr/bin/funzip-plain to provide /usr/bin/funzip (funzip) in auto mode
[ 13s] update-alternatives: using /usr/bin/unzipsfx-plain to provide /usr/bin/unzipsfx (unzipsfx) in auto mode
[ 13s] update-alternatives: using /usr/bin/zipgrep-plain to provide /usr/bin/zipgrep (zipgrep) in auto mode
[ 13s] build-mkbaselibs-20240313-1.1 ########################################
[ 13s] kernel-obs-build-6.8.9-1.1 ########################################
[ 14s] now finalizing build dir...
[ 14s] ... running 01-add_abuild_user_to_trusted_group
[ 14s] ... running 02-set_timezone_to_utc
[ 14s] ... running 03-set-permissions-secure
[ 14s] ... running 11-hack_uname_version_to_kernel_version
[ 14s] setting SOURCE_DATE_EPOCH_MTIME to 1715634838
[ 14s] -----------------------------------------------------------------
[ 14s] I have the following modifications for badapple.spec:
[ 14s] 20c20
[ 14s] < Release: 0
[ 14s] ---
[ 14s] > Release: 14.1
[ 14s] -----------------------------------------------------------------
[ 14s] ----- building badapple.spec (user abuild)
[ 14s] -----------------------------------------------------------------
[ 14s] -----------------------------------------------------------------
[ 15s] setting SOURCE_DATE_EPOCH_MTIME to 1715634838
[ 15s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages --define 'disturl obs://build.opensuse.org/home:40476/openSUSE_Tumbleweed/0e6fff1792167632da4513a1b861a6fb-apple' /home/abuild/rpmbuild/SOURCES/badapple.spec
[ 15s] using SOURCE_DATE_EPOCH with value 1715634837 as build time
[ 15s] Executing(%prep): /usr/bin/bash -e /var/tmp/rpm-tmp.wj6JFn
[ 15s] + umask 022
[ 15s] + cd /home/abuild/rpmbuild/BUILD
[ 15s] + cd /home/abuild/rpmbuild/BUILD
[ 15s] + rm -rf badapple
[ 15s] + /usr/lib/rpm/rpmuncompress -x /home/abuild/rpmbuild/SOURCES/badapple.zip
[ 15s] + STATUS=0
[ 15s] + '[' 0 -ne 0 ']'
[ 15s] + cd badapple
[ 15s] + rm -rf /home/abuild/rpmbuild/BUILD/badapple-SPECPARTS
[ 15s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILD/badapple-SPECPARTS
[ 15s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[ 15s] + RPM_EC=0
[ 15s] ++ jobs -p
[ 15s] + exit 0
[ 15s] Executing(%build): /usr/bin/bash -e /var/tmp/rpm-tmp.ZgH8fv
[ 15s] + umask 022
[ 15s] + cd /home/abuild/rpmbuild/BUILD
[ 15s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/badapple-1-14.1.x86_64
[ 15s] ++ dirname /home/abuild/rpmbuild/BUILDROOT/badapple-1-14.1.x86_64
[ 15s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT
[ 15s] + /usr/bin/mkdir /home/abuild/rpmbuild/BUILDROOT/badapple-1-14.1.x86_64
[ 15s] + cd badapple
[ 15s] + make
[ 15s] cc -fcommon -Wall `pkg-config --cflags gtk+-3.0 appindicator3-0.1` -c badapple.c -o badapple.o
[ 15s] cc -fcommon -Wall -c badapple-clock.c -o badapple-clock.o
[ 15s] badapple-clock.c: In function ‘digital_clock’:
[ 15s] badapple-clock.c:46:50: warning: multi-character character constant [-Wmultichar]
[ 15s] 46 | g15r_renderString(canvas, (unsigned char *)'nope', 0, G15_TEXT_SMALL, 135, 26);
[ 15s] | ^~~~~~
[ 15s] cc -fcommon -Wall -c badapple-config.c -o badapple-config.o
[ 15s] badapple-config.c: In function ‘check_dir’:
[ 15s] badapple-config.c:144:17: warning: the comparison will always evaluate as ‘false’ for the address of ‘home_path’ will never be NULL [-Waddress]
[ 15s] 144 | if (home_path == NULL) {
[ 15s] | ^~
[ 15s] badapple-config.c:137:8: note: ‘home_path’ declared here
[ 15s] 137 | char home_path[255];
[ 15s] | ^~~~~~~~~
[ 15s] badapple-config.c:150:39: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
[ 15s] 150 | strncpy(full_path, home_path, sizeof(home_path));
[ 15s] | ^
[ 15s] badapple-config.c:151:42: warning: argument to ‘sizeof’ in ‘strncat’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
[ 15s] 151 | strncat(full_path, badapple_dir, sizeof(badapple_dir));
[ 15s] | ^
[ 15s] badapple-config.c: In function ‘load_config’:
[ 15s] badapple-config.c:174:17: warning: the comparison will always evaluate as ‘false’ for the address of ‘home_path’ will never be NULL [-Waddress]
[ 15s] 174 | if (home_path == NULL) {
[ 15s] | ^~
[ 15s] badapple-config.c:167:8: note: ‘home_path’ declared here
[ 15s] 167 | char home_path[255];
[ 15s] | ^~~~~~~~~
[ 15s] badapple-config.c:180:39: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
[ 15s] 180 | strncpy(full_path, home_path, sizeof(home_path));
[ 15s] | ^
[ 15s] badapple-config.c:181:39: warning: argument to ‘sizeof’ in ‘strncat’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
[ 15s] 181 | strncat(full_path, file_name, sizeof(file_name));
[ 15s] | ^
[ 15s] badapple-config.c: In function ‘save_config’:
[ 15s] badapple-config.c:205:17: warning: the comparison will always evaluate as ‘false’ for the address of ‘home_path’ will never be NULL [-Waddress]
[ 15s] 205 | if (home_path == NULL) {
[ 15s] | ^~
[ 15s] badapple-config.c:198:8: note: ‘home_path’ declared here
[ 15s] 198 | char home_path[255];
[ 15s] | ^~~~~~~~~
[ 15s] badapple-config.c:211:39: warning: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
[ 15s] 211 | strncpy(full_path, home_path, sizeof(home_path));
[ 15s] | ^
[ 15s] badapple-config.c:212:39: warning: argument to ‘sizeof’ in ‘strncat’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess]
[ 15s] 212 | strncat(full_path, file_name, sizeof(file_name));
[ 15s] | ^
[ 15s] cc -fcommon -Wall -c badapple-keys.c -o badapple-keys.o
[ 15s] cc -fcommon -Wall -c badapple-list.c -o badapple-list.o
[ 15s] cc -fcommon -Wall -c badapple-misc.c -o badapple-misc.o
[ 15s] cc -fcommon -Wall -c badapple-net.c -o badapple-net.o
[ 15s] badapple-net.c: In function ‘g15_recv’:
[ 15s] badapple-net.c:222:9: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
[ 15s] 222 | memset(msgbuf, 0, 20);
[ 15s] | ^~~~~~
[ 15s] cc -fcommon -Wall `pkg-config --cflags gtk+-3.0` -c badapple-signals.c -o badapple-signals.o
[ 15s] cc -fcommon -Wall `pkg-config --cflags appindicator3-0.1` -c badapple-threads.c -o badapple-threads.o
[ 15s] cc -fcommon -Wall badapple.o badapple-clock.o badapple-config.o badapple-keys.o badapple-list.o badapple-misc.o badapple-net.o badapple-signals.o badapple-threads.o -o badapple -lg15 -lg15render -lpthread -rdynamic `pkg-config --libs gtk+-3.0 appindicator3-0.1`
[ 16s] /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: cannot open output file badapple: Is a directory
[ 16s] collect2: error: ld returned 1 exit status
[ 16s] make: *** [Makefile:31: badapple] Error 1
[ 16s] error: Bad exit status from /var/tmp/rpm-tmp.ZgH8fv (%build)
[ 16s]
[ 16s] RPM build errors:
[ 16s] Bad exit status from /var/tmp/rpm-tmp.ZgH8fv (%build)
[ 16s] ### VM INTERACTION START ###
[ 16s] [ 11.707939][ T1] sysrq: Power Off
[ 16s] [ 11.708572][ T10] reboot: Power down
[ 16s] ### VM INTERACTION END ###
[ 16s]
[ 16s] i02-ch2b failed "build badapple.spec" at Sat May 18 14:30:26 UTC 2024.
[ 16s]
Give your source tarball a version number perhaps…
so i got it to compile but it wouldnt work i am currently in the process of changing a couple things here is the console messages
badapple: waiting for device...
badapple: waiting for device...
badapple: waiting for device...
badapple: waiting for device...
badapple: waiting for device...
badapple: waiting for device...
badapple: waiting for device...
badapple: waiting for device...
badapple: waiting for device...
badapple: found device 046d:c22d
Segmentation fault (core dumped)
usr_40476@localhost:~/Downloads>
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.