Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 159090

Summary: FATURES="test" fails for portage-utils-0.1.22 at src.style
Product: Portage Development Reporter: Xake <kanelxake>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Xake 2006-12-25 12:09:44 UTC
PASS: src.typos
PASS: src.obsolete.funcs
PASS: src.bad.constants
PASS: src.obsolete.headers
PASS: src.use.xfuncs
FAIL: src.style
qfile.c:                        // much faster than using basename(), since no need to strdup
qfile.c:                        // used to cut the number of strcmp() calls
qfile.c:                                        // check the full filepath...
qfile.c:                                                // (e->name == "/foo") ==> dirname == "/"
qfile.c:                                                // dir_name == dirname(CONTENTS)
qfile.c:                                                // real_dir_name == dirname(CONTENTS)
qfile.c:                                                        // dir_name == realpath(dirname(CONTENTS))
qfile.c:                                                        // real_dir_name == realpath(dirname(CONTENTS))
qfile.c:        // Try to get $PWD.  Must be absolute, with no trailing slash
qfile.c:        // Get realpath of $ROOT, with no trailing slash
qfile.c:        // Get a copy of $ROOT, with no trailing slash
qfile.c:        // (this one is just for qfile(...) output)
qfile.c:        // For each argument, we store its basename, its absolute dirname,
qfile.c:        // and the realpath of its dirname.  Dirnames and their realpaths
qfile.c:        // are stored without their $ROOT prefix, but $ROOT is used when
qfile.c:        // checking realpaths.
qfile.c:        // For optimization of qfile(), we also give it an array of the first char
qfile.c:        // of each basename.  This way we avoid numerous strcmp() calls.
qfile.c:        // Finally, if searching for orphans, we need an array to store the results
qfile.c:                // Record basename, but if it is ".", ".." or "/"
qfile.c:                        // If there is no "/" in the argument, then it's over.
qfile.c:                        // (we are searching a simple file name)
qfile.c:                // Make sure we have an absolute path available (with "realpath(ROOT)" prefix)
qfile.c:                        // Get both the dirname and its realpath.  This paths will
qfile.c:                        // have no trailing slash, but if it is the only char (ie.,
qfile.c:                        // when searching for "/foobar").
qfile.c:                        // No basename means we are looking for something like "/foo/bar/.."
qfile.c:                        // Dirname is meaningless here, we can only get realpath of the full
qfile.c:                        // path and then split it.
qfile.c:                // display orphan files
qfile.c:                                found = 0; // ~inverse return code (as soon as an orphan is found, return non-zero)
quse.c:                                 // warnf("err '%s'/%lu <= %lu; line %d\n", buf0, (unsigned long)strlen(buf0), (unsigned long)(search_len+1), lineno);
main.c:// http://tinderbox.dev.gentoo.org/default-linux/arm
main.c:// http://tinderbox.dev.gentoo.org/default-linux/hppa
main.c: // echo $(awk '{print $4,"="}' libq/colors.c  | grep ^* |cut -c 2-| grep ^[A-Z] |tr '\n' ' ') = \"\"\;
qmerge.c:// #define BUSYBOX "/bin/busybox"
qmerge.c:// rewrite using copyfile() utime() stat(), lstat(), read() and perms.
qmerge.c:       // if defined(EBUG) this spits out incorrect versions.
qmerge.c:       // <hack>
qmerge.c:       // </hack>
qmerge.c:       // Walk the rdepends here. Merging what need be.
qmerge.c:                                       // * we dont want to remerge equal versions here */
qmerge.c:                                       // qprintf("globbed: %s\n", globbuf.gl_pathv[g]);
qmerge.c:       // if (((c == 'R') || (c == 'D')) && update_only)
qmerge.c:       //      return;
qmerge.c:               // <hack>
qmerge.c:               // </hack>
qmerge.c:               // Walk the rdepends here. Merging what need be.
qmerge.c:                                               // ratom = atom_explode(resolved);
qmerge.c:                                               // * we dont want to remerge equal versions here */
qmerge.c:       // mkdir(pkg->PF, 0710);
qmerge.c:       system(BUSYBOX " rm -rf ./*"); // this line does funny things to nano's highlighting.
qmerge.c:       // Unmerge the other versions */
qmerge.c:                       (S_ISBLK(st.st_mode))); // block or character device
qmerge.c:               if (S_ISFIFO(st.st_mode));      // FIFO (named pipe)
qmerge.c:               if (S_ISSOCK(st.st_mode));      // socket? (Not in POSIX.1-1996.)
qmerge.c:               // syntax: dir dirname
qmerge.c:               // syntax: obj filename hash mtime
qmerge.c:               if (S_ISREG(st.st_mode)) { // regular file
qmerge.c:                       // utime(&buf[1], &tv);
qmerge.c:               // syntax: sym src -> dst
qmerge.c:               if (S_ISLNK(st.st_mode)) { // (Not in POSIX.1-1996.)
qmerge.c:                       // snprintf(line, sizeof(line), "sym %s -> %s", &buf[1], path);
qmerge.c:                       // we better have one byte here to play with
qmerge.c:                       // if (path[0] != '/')
qmerge.c:                       //      puts("path does not start with /");
qmerge.c:               // qfprintf(stderr, "%s!!!%s %s %s (ambiguous name) specify fully-qualified pkgs\n", RED, NORM, pkgname);
qmerge.c:                       // qprint_tree_node(level, atom, pkg);
qmerge.c:                                       IF_DEBUG(fprintf(stderr, "=== atom_compare(%s, %s) = %d %s\n", name, buf, ret, booga[ret])); // buf(%s) depend(%s)\n", ret, pkg->CATEGORY, pkg->PF, name, pkg->RDEPEND);
qmerge.c:                                                       // printf("[%s == %s] = %d; %s/%s\n", name, buf, ret, CATEGORY, PF);
qmerge.c:                               // follow_rdepends = 0;
qsearch.c:                                                      // hppa/arm dirname(),basename() eats the ptr so we need to copy the variables before
qsearch.c:                                                      // doing operations with them.
tests/atom_explode/test.c://    printf("input -> CATEGORY / [P] PN - PVR [PV] [PR_int]\n");
qcheck.c:
qcheck.c:                                       if (qc_update)
qcheck.c:
libq/virtuals.c:                                                // IF_DEBUG(fprintf(stderr, "%s provided by %s (removing)\n", tmp, v));
libq/virtuals.c:                                        // IF_DEBUG(fprintf(stderr, "%s provided by %s/%s (adding)\n", tmp, atom->CATEGORY, dentry_pkg->d_name));
libq/hash_fd.c://       size_t hashed_count = 0;
PASS: src.style
make[2]: *** [check] Error 1
make[1]: *** [check] Error 1
make: *** [check] Error 2
Comment 1 solar (RETIRED) gentoo-dev 2006-12-25 12:12:31 UTC
This is mostly fixed in the cvs source. 

*** This bug has been marked as a duplicate of 159073 ***
Comment 2 Xake 2006-12-25 12:27:17 UTC
Is there any way to fetch the whole source with cvs?