You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/06/01 13:05:23 UTC

[GitHub] [trafficcontrol] zrhoffman opened a new issue #5899: CDN in a Box Makefile: /bin/sh: line 1: ../../traffic_monitor/build: Is a directory

zrhoffman opened a new issue #5899:
URL: https://github.com/apache/trafficcontrol/issues/5899


   <!--
   ************ STOP!! ************
   If this issue identifies a security vulnerability, DO NOT submit it! Instead, contact
   the Apache Traffic Control Security Team at security@trafficcontrol.apache.org and follow the
   guidelines at https://www.apache.org/security/ regarding vulnerability disclosure.
   
   - For *SUPPORT QUESTIONS*, use the #traffic-control channel on the ASF slack (https://s.apache.org/slack-invite)
   or Traffic Control mailing lists (https://trafficcontrol.apache.org/mailing_lists).
   - Before submitting, please **SEARCH GITHUB** for a similar issue or PR.
   -->
   
   ## I'm submitting a ...
   <!-- delete all those that don't apply -->
   <!--- security vulnerability (STOP!! - see above)-->
   -  bug report
   
   ## Traffic Control components affected ...
   <!-- delete all those that don't apply -->
   -  CDN in a Box (makefile)
   
   ## Current behavior:
   <!-- Describe how the bug manifests -->
   The recipe for makefile target `traffic_monitor/traffic_monitor.rpm` (in the CDN in a Box directory) will fail to build if `/traffic_monitor/build.sh` is newer than `/traffic_monitor/build/` or its contents.
   
   ## Expected behavior:
   <!-- Describe what the behavior would be without the bug -->
   All makefile recipes should succeed.
   
   ## Minimal reproduction of the problem with instructions:
   <!--
   If the current behavior is a bug, please provide the *STEPS TO REPRODUCE* and
   include the applicable TC version.
   -->
   Failure when `traffic_monitor/build.sh` is newer:
   ```shell
   [user@computer cdn-in-a-box]$ touch ../../traffic_monitor/build.sh && make traffic_monitor/traffic_monitor.rpm
   cat ../../traffic_monitor/build.sh >../../traffic_monitor/build
   /bin/sh: line 1: ../../traffic_monitor/build: Is a directory
   make: *** [<builtin>: ../../traffic_monitor/build] Error 1
   ```
   
   Success when `traffic_monitor/build/` is newer:
   ```shell
   [user@computer cdn-in-a-box]$ touch ../../traffic_monitor/build && make traffic_monitor/traffic_monitor.rpm
   "./../../pkg" -v -8 traffic_monitor_build
   Building traffic_monitor_build.
   Pulling traffic_monitor_build ... done
   Creating build_traffic_monitor_build_run ... done
   ++ readlink /trafficcontrol/build/clean_build.sh
   [...]
   ```
   
   ## Anything else:
   <!--
   e.g. stacktraces, related issues, suggestions how to fix (feel free to delete
   this section)
   -->
   <details><summary>Printing debugging information gives some more info on the <code>build</code>/<code>build.sh</code> relationship (click to expand)</summary>
   
   ```makefile
   [user@computer cdn-in-a-box]$ make -d traffic_monitor/traffic_monitor.rpm
   GNU Make 4.3
   Built for x86_64-pc-linux-gnu
   Copyright (C) 1988-2020 Free Software Foundation, Inc.
   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.
   Reading makefiles...
   Reading makefile 'Makefile'...
   Updating makefiles....
    Considering target file 'Makefile'.
    [...]
    No need to remake target 'Makefile'.
   Updating goal targets....
   Considering target file 'traffic_monitor/traffic_monitor.rpm'.
     Considering target file '../../dist/traffic_monitor-6.0.0-11401.60a9ffdc.el8.x86_64.rpm'.
       Considering target file '../../traffic_monitor/build'.
        Looking for an implicit rule for '../../traffic_monitor/build'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.o'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.c'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.cc'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.C'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.cpp'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.p'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.f'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.F'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.m'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.r'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.s'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.S'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.mod'.
        Trying pattern rule with stem 'build'.
        Trying implicit prerequisite '../../traffic_monitor/build.sh'.
        Found an implicit rule for '../../traffic_monitor/build'.
         Considering target file '../../traffic_monitor/build.sh'.
          Looking for an implicit rule for '../../traffic_monitor/build.sh'.
          Trying pattern rule with stem 'build.sh'.
          Trying implicit prerequisite '../../traffic_monitor/build.sh,v'.
          Trying pattern rule with stem 'build.sh'.
          Trying implicit prerequisite '../../traffic_monitor/RCS/build.sh,v'.
          Trying pattern rule with stem 'build.sh'.
          Trying implicit prerequisite '../../traffic_monitor/RCS/build.sh'.
          Trying pattern rule with stem 'build.sh'.
          Trying implicit prerequisite '../../traffic_monitor/s.build.sh'.
          Trying pattern rule with stem 'build.sh'.
          Trying implicit prerequisite '../../traffic_monitor/SCCS/s.build.sh'.
          No implicit rule found for '../../traffic_monitor/build.sh'.
          Finished prerequisites of target file '../../traffic_monitor/build.sh'.
         No need to remake target '../../traffic_monitor/build.sh'.
        Finished prerequisites of target file '../../traffic_monitor/build'.
        Prerequisite '../../traffic_monitor/build.sh' is newer than target '../../traffic_monitor/build'.
       Must remake target '../../traffic_monitor/build'.
   cat ../../traffic_monitor/build.sh >../../traffic_monitor/build 
   Putting child 0x565173503270 (../../traffic_monitor/build) PID 198854 on the chain.
   Live child 0x565173503270 (../../traffic_monitor/build) PID 198854 
   /bin/sh: line 1: ../../traffic_monitor/build: Is a directory
   Reaping losing child 0x565173503270 PID 198854 
   make: *** [<builtin>: ../../traffic_monitor/build] Error 1
   Removing child 0x565173503270 PID 198854 from chain.
   ```
   </summary>
   
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
       https://apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] rawlinp closed issue #5899: CDN in a Box Makefile: /bin/sh: line 1: ../../traffic_monitor/build: Is a directory

Posted by GitBox <gi...@apache.org>.
rawlinp closed issue #5899:
URL: https://github.com/apache/trafficcontrol/issues/5899


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficcontrol] rawlinp closed issue #5899: CDN in a Box Makefile: /bin/sh: line 1: ../../traffic_monitor/build: Is a directory

Posted by GitBox <gi...@apache.org>.
rawlinp closed issue #5899:
URL: https://github.com/apache/trafficcontrol/issues/5899


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org