Skip to content

An unhandled exception occured, when passing bogus input to bst #2077

@aleixpol

Description

@aleixpol

See elements is not an absolute path

# File generated by convert.py

build-depends:
- freedesktop-sdk.bst:components/gtk3.bst
depends: []
sources: []
kind: script
config:
  commands:
  - install -m755 install-licenses.sh /usr/bin
variables:
  cwd: elements

Error message:

    [00:00:00][7aac01d5][   build:licence-extractor.bst         ] BUG     Build                                                                                                                                                             
                                                                                                                                                                                                                                            
        An unhandled exception occured:                                                                                                                                                                                                     
                                                                                                                                                                                                                                            
        Traceback (most recent call last):                                                                                                                                                                                                  
          File "/usr/lib64/python3.13/site-packages/buildstream/_scheduler/jobs/job.py", line 350, in child_action                                                                                                                                      result = self.child_process()  # pylint: disable=assignment-from-no-return                                                                                                                                                      
          File "/usr/lib64/python3.13/site-packages/buildstream/_scheduler/jobs/elementjob.py", line 81, in child_process                                                                                                                               return self._action_cb(self._element)                                                                                                                                                                                           
                   ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^                                                                                                                                                                                           
          File "/usr/lib64/python3.13/site-packages/buildstream/_scheduler/queues/buildqueue.py", line 55, in _assemble_element                                                                                                                         element._assemble()                                                                                                                                                                                                             
            ~~~~~~~~~~~~~~~~~^^                                                                                                                                                                                                             
          File "/usr/lib64/python3.13/site-packages/buildstream/element.py", line 1695, in _assemble                                                                                                                                        
            self.__configure_sandbox(sandbox)                                                                                                                                                                                               
            ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^                                                                                                                                                                                                         File "/usr/lib64/python3.13/site-packages/buildstream/element.py", line 2681, in __configure_sandbox                                                                                                                              
            self.configure_sandbox(sandbox)                                                                                                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^                                                                                                                                                                                                 
          File "/usr/lib64/python3.13/site-packages/buildstream/scriptelement.py", line 200, in configure_sandbox                                                                                                                           
            sandbox.set_work_directory(self.__cwd)                                                                                                                                                                                          
            ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^                                                                                                                                                                                          
          File "/usr/lib64/python3.13/site-packages/buildstream/sandbox/sandbox.py", line 149, in set_work_directory                                                                                                                        
            assert directory.startswith("/"), "The working directory must be an absolute path"                                                                                                                                              
                   ~~~~~~~~~~~~~~~~~~~~^^^^^                                                                                                                                                                                                
        AssertionError: The working directory must be an absolute path                                                                                                                                                                      

One would expect only an error message (or alternatively making the path absolute relative to where bst is run from or where project.conf is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions