profile: Use _IO* but disable deprecation warning.
This fixes a regression introduced in
2f60084f77, whereby the profile derivation
would fail to run on Guile 2.0 (as is the case with "guix package
--bootstrap").
Reported by Christopher Baines.
* guix/profiles.scm (profile-derivation)[builder]: Use _IO* but add
'debug-disable' call.
			
			
This commit is contained in:
		
							parent
							
								
									8638362f13
								
							
						
					
					
						commit
						2815fca142
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -1268,8 +1268,11 @@ are cross-built for TARGET."
 | 
				
			||||||
                         (guix search-paths)
 | 
					                         (guix search-paths)
 | 
				
			||||||
                         (srfi srfi-1))
 | 
					                         (srfi srfi-1))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            (setvbuf (current-output-port) 'line)
 | 
					            ;; Don't complain about _IO* on Guile 2.2.
 | 
				
			||||||
            (setvbuf (current-error-port) 'line)
 | 
					            (debug-disable 'warn-deprecated)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            (setvbuf (current-output-port) _IOLBF)
 | 
				
			||||||
 | 
					            (setvbuf (current-error-port) _IOLBF)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            #+(if locales? set-utf8-locale #t)
 | 
					            #+(if locales? set-utf8-locale #t)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue