|
|
@@ -6,7 +6,7 @@ The `usm manifest autoprovides` command automatically generates the `provides` s
|
|
|
## Usage
|
|
|
|
|
|
```bash
|
|
|
-usm manifest autoprovides [--replace] [build-path]
|
|
|
+usm manifest autoprovides [--replace] [--debug] [build-path]
|
|
|
```
|
|
|
|
|
|
### Arguments
|
|
|
@@ -14,20 +14,23 @@ usm manifest autoprovides [--replace] [build-path]
|
|
|
|
|
|
### Options
|
|
|
- `--replace`: Update MANIFEST.usm file with generated provides section
|
|
|
+- `--debug`: Disable build progress reporting and inherit file descriptors for subprocesses
|
|
|
|
|
|
## Process
|
|
|
|
|
|
### 1. Build Execution
|
|
|
The command first builds the package using the specified build script:
|
|
|
-- Runs `usm manifest build` with silent output
|
|
|
-- Captures build progress for display
|
|
|
+- Runs `usm manifest build` with silent output (unless --debug is used)
|
|
|
+- Captures build progress for display (disabled with --debug)
|
|
|
- Uses temporary build directory if not specified
|
|
|
+- With --debug: inherits file descriptors and disables progress callbacks
|
|
|
|
|
|
### 2. Installation Simulation
|
|
|
Build output is installed to temporary directory:
|
|
|
- Creates temporary install directory
|
|
|
- Runs package's install script if present
|
|
|
- Uses standard USM installation process
|
|
|
+- With --debug: inherits file descriptors for install subprocess
|
|
|
|
|
|
### 3. Filesystem Scanning
|
|
|
The temporary install directory is scanned recursively:
|
|
|
@@ -95,6 +98,24 @@ Combine options:
|
|
|
usm manifest autoprovides --replace /tmp/myapp-build
|
|
|
```
|
|
|
|
|
|
+### Debug Mode
|
|
|
+Enable debug mode for troubleshooting:
|
|
|
+```bash
|
|
|
+usm manifest autoprovides --debug
|
|
|
+```
|
|
|
+
|
|
|
+### Debug Mode with Replace
|
|
|
+Combine debug and replace options:
|
|
|
+```bash
|
|
|
+usm manifest autoprovides --debug --replace
|
|
|
+```
|
|
|
+
|
|
|
+### All Options Combined
|
|
|
+Use all available options:
|
|
|
+```bash
|
|
|
+usm manifest autoprovides --debug --replace /tmp/myapp-build
|
|
|
+```
|
|
|
+
|
|
|
## Output Format
|
|
|
|
|
|
### Console Output
|
|
|
@@ -209,6 +230,20 @@ If file update fails:
|
|
|
|
|
|
## Advanced Usage
|
|
|
|
|
|
+### Debug Mode Benefits
|
|
|
+The `--debug` flag provides enhanced debugging capabilities:
|
|
|
+- **Full subprocess output**: Inherit file descriptors to see all build/install output
|
|
|
+- **No progress interference**: Disables progress reporting that can obscure error messages
|
|
|
+- **Direct error visibility**: Build and install errors appear immediately without progress overlay
|
|
|
+- **Process monitoring**: Enables direct observation of subprocess behavior
|
|
|
+
|
|
|
+### When to Use Debug Mode
|
|
|
+- Troubleshooting build failures
|
|
|
+- Investigating install script issues
|
|
|
+- Analyzing subprocess output for debugging
|
|
|
+- When progress reporting interferes with error visibility
|
|
|
+- For detailed build/install process examination
|
|
|
+
|
|
|
### Custom Resource Mapping
|
|
|
For non-standard layouts, manually edit generated provides:
|
|
|
```json
|