**** BEGIN LOGGING AT Mon Jun 05 03:00:02 2017 Jun 05 20:20:54 I'm looking at bitbake package-indexer -- is there a way to run the indexer against an alterative directory? (The tmp/deploy/... feed directory changes each time, but I want to do it on a cumulative feed dir so my users can revert.. Jun 05 20:21:10 I'm trying to avoid having to manually run createrepo -- but I'm not seeing a way Jun 05 20:24:40 fray: the rpm indexer implementation is a heavily wrapped "createrepo —update -q ${DEPLOYDIR} Jun 05 20:24:50 so i wouldn't be that bothered about calling it directly Jun 05 20:25:02 the problem is setting up the runtime environment Jun 05 20:25:12 wrapped as in recipe -> rootfs.py -> package.py -> rpmIndexer class Jun 05 20:25:30 does it actually need anything in the environment? Jun 05 20:25:33 yes.. it appears to be based on deployDir.. but what I'm missing is how is it passed in so I can override it.. Jun 05 20:25:43 createrepo is presumably using libraries and such from the environment.. Jun 05 20:25:48 result = create_index("%s --update -q %s" % (createrepo_c, self.deploy_dir)) Jun 05 20:25:54 the rpm5 version and rpm4 versions are different and will need different rpmPython and such Jun 05 20:26:05 which is just result = subprocess.check_output(index_cmd, stderr=subprocess.STDOUT, shell=True).decode("utf-8") Jun 05 20:26:36 oh i see. bitbake build-sysroot first? :) Jun 05 20:26:38 the 'c' version needs the glibc runtime that matches.. and the python version (pre 2.3) needs the mathcing rpm libs/rpmpython.. Jun 05 20:27:38 ERROR: Nothing PROVIDES 'build-sysroot' Jun 05 20:27:41 ;) (morty) Jun 05 20:30:07 oh in that case isn't there a oe-run-native script to do the right thing Jun 05 20:30:23 this is what I'm struggling with Jun 05 20:30:41 I know how to run it manually, but I need to do it in a consistent way -- and would rather not have to rewrite the instructions for each release Jun 05 20:31:45 the script exists in pyro so you'd hope it would still work Jun 05 20:35:59 hm, oe-run-native wants to use the workdir Jun 05 20:36:01 so breaks with rm_work Jun 05 20:37:52 "you would hope Jun 05 20:39:56 ok its broken if you have rm_work Jun 05 20:40:03 if you don't it might work... Jun 05 20:40:17 $ oe-run-native rpm-native createrepo --help does appear to be trying to do the right thing… Jun 05 20:51:20 rburton -- ugh.. (this is on morty) Jun 05 20:51:21 [mhatle@msp-lpggp1 build]$ oe-run-native createrepo --help Jun 05 20:51:28 createrepo: line 2: readlink: command not found Jun 05 20:51:33 createrepo: line 4: dirname: command not found Jun 05 20:51:39 ... etc ... Jun 05 20:51:45 os oe-run-native isn't even working there.. :( Jun 05 20:52:00 how can it not find readlink? Jun 05 20:52:08 ooh Jun 05 20:52:11 because it tramples $PATH Jun 05 20:52:16 I'm guessing it's blows away PATH Jun 05 20:52:16 stupid thing Jun 05 20:52:21 PATH=$OECORE_NATIVE_SYSROOT/usr/bin:$OECORE_NATIVE_SYSROOT/bin:$OECORE_NATIVE_SYSROOT/usr/sbin:$OECORE_NATIVE_SYSROOT/sbin Jun 05 20:52:49 i say just make it extend $PATH and if the user says to run something that isn't in the sysroot then tough Jun 05 20:54:10 but you have to find and source oe-find-native-sysroot first.. :P **** ENDING LOGGING AT Tue Jun 06 03:00:02 2017